Merge tag 'net-next-6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev...
[linux.git] / rust / helpers / security.c
blob239e5b4745fe811ddebb33b586aed959d54424d2
1 // SPDX-License-Identifier: GPL-2.0
3 #include <linux/security.h>
5 #ifndef CONFIG_SECURITY
6 void rust_helper_security_cred_getsecid(const struct cred *c, u32 *secid)
8 security_cred_getsecid(c, secid);
11 int rust_helper_security_secid_to_secctx(u32 secid, char **secdata, u32 *seclen)
13 return security_secid_to_secctx(secid, secdata, seclen);
16 void rust_helper_security_release_secctx(char *secdata, u32 seclen)
18 security_release_secctx(secdata, seclen);
20 #endif