]> Git Repo - J-linux.git/blob - rust/helpers/security.c
Merge tag 'vfs-6.13-rc7.fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs
[J-linux.git] / rust / helpers / security.c
1 // SPDX-License-Identifier: GPL-2.0
2
3 #include <linux/security.h>
4
5 #ifndef CONFIG_SECURITY
6 void rust_helper_security_cred_getsecid(const struct cred *c, u32 *secid)
7 {
8         security_cred_getsecid(c, secid);
9 }
10
11 int rust_helper_security_secid_to_secctx(u32 secid, char **secdata, u32 *seclen)
12 {
13         return security_secid_to_secctx(secid, secdata, seclen);
14 }
15
16 void rust_helper_security_release_secctx(char *secdata, u32 seclen)
17 {
18         security_release_secctx(secdata, seclen);
19 }
20 #endif
This page took 0.026813 seconds and 4 git commands to generate.