1 // SPDX-License-Identifier: GPL-2.0
2 
3 #include <linux/security.h>
4 
5 #ifndef CONFIG_SECURITY
rust_helper_security_cred_getsecid(const struct cred * c,u32 * secid)6 void rust_helper_security_cred_getsecid(const struct cred *c, u32 *secid)
7 {
8 	security_cred_getsecid(c, secid);
9 }
10 
rust_helper_security_secid_to_secctx(u32 secid,struct lsm_context * cp)11 int rust_helper_security_secid_to_secctx(u32 secid, struct lsm_context *cp)
12 {
13 	return security_secid_to_secctx(secid, cp);
14 }
15 
rust_helper_security_release_secctx(struct lsm_context * cp)16 void rust_helper_security_release_secctx(struct lsm_context *cp)
17 {
18 	security_release_secctx(cp);
19 }
20 #endif
21