Home
last modified time | relevance | path

Searched refs:secdata (Results 1 – 5 of 5) sorted by relevance

/security/apparmor/
Dsecid.c70 int apparmor_secid_to_secctx(u32 secid, char **secdata, u32 *seclen) in apparmor_secid_to_secctx() argument
81 if (secdata) in apparmor_secid_to_secctx()
82 len = aa_label_asxprint(secdata, root_ns, label, in apparmor_secid_to_secctx()
98 int apparmor_secctx_to_secid(const char *secdata, u32 seclen, u32 *secid) in apparmor_secctx_to_secid() argument
102 label = aa_label_strn_parse(&root_ns->unconfined->label, secdata, in apparmor_secctx_to_secid()
111 void apparmor_release_secctx(char *secdata, u32 seclen) in apparmor_release_secctx() argument
113 kfree(secdata); in apparmor_release_secctx()
/security/apparmor/include/
Dsecid.h25 int apparmor_secid_to_secctx(u32 secid, char **secdata, u32 *seclen);
26 int apparmor_secctx_to_secid(const char *secdata, u32 seclen, u32 *secid);
27 void apparmor_release_secctx(char *secdata, u32 seclen);
/security/
Dsecurity.c1916 int security_secid_to_secctx(u32 secid, char **secdata, u32 *seclen) in security_secid_to_secctx() argument
1918 return call_int_hook(secid_to_secctx, -EOPNOTSUPP, secid, secdata, in security_secid_to_secctx()
1923 int security_secctx_to_secid(const char *secdata, u32 seclen, u32 *secid) in security_secctx_to_secid() argument
1926 return call_int_hook(secctx_to_secid, 0, secdata, seclen, secid); in security_secctx_to_secid()
1930 void security_release_secctx(char *secdata, u32 seclen) in security_release_secctx() argument
1932 call_void_hook(release_secctx, secdata, seclen); in security_release_secctx()
/security/smack/
Dsmack_lsm.c4458 static int smack_secid_to_secctx(u32 secid, char **secdata, u32 *seclen) in smack_secid_to_secctx() argument
4462 if (secdata) in smack_secid_to_secctx()
4463 *secdata = skp->smk_known; in smack_secid_to_secctx()
4476 static int smack_secctx_to_secid(const char *secdata, u32 seclen, u32 *secid) in smack_secctx_to_secid() argument
4478 struct smack_known *skp = smk_find_entry(secdata); in smack_secctx_to_secid()
/security/selinux/
Dhooks.c6464 static int selinux_secid_to_secctx(u32 secid, char **secdata, u32 *seclen) in selinux_secid_to_secctx() argument
6467 secdata, seclen); in selinux_secid_to_secctx()
6470 static int selinux_secctx_to_secid(const char *secdata, u32 seclen, u32 *secid) in selinux_secctx_to_secid() argument
6472 return security_context_to_sid(&selinux_state, secdata, seclen, in selinux_secctx_to_secid()
6476 static void selinux_release_secctx(char *secdata, u32 seclen) in selinux_release_secctx() argument
6478 kfree(secdata); in selinux_release_secctx()