/linux/security/apparmor/ |
A D | secid.c | 70 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()
|
/linux/security/apparmor/include/ |
A D | secid.h | 25 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);
|
/linux/include/net/ |
A D | scm.h | 95 char *secdata; in scm_passec() local 100 err = security_secid_to_secctx(scm->secid, &secdata, &seclen); in scm_passec() 103 put_cmsg(msg, SOL_SOCKET, SCM_SECURITY, seclen, secdata); in scm_passec() 104 security_release_secctx(secdata, seclen); in scm_passec()
|
/linux/net/netfilter/ |
A D | nfnetlink_queue.c | 304 static u32 nfqnl_get_sk_secctx(struct sk_buff *skb, char **secdata) in nfqnl_get_sk_secctx() argument 314 security_secid_to_secctx(skb->secmark, secdata, &seclen); in nfqnl_get_sk_secctx() 393 char *secdata = NULL; in nfqnl_build_packet_message() local 462 seclen = nfqnl_get_sk_secctx(entskb, &secdata); in nfqnl_build_packet_message() 595 if (seclen && nla_put(skb, NFQA_SECCTX, seclen, secdata)) in nfqnl_build_packet_message() 624 security_release_secctx(secdata, seclen); in nfqnl_build_packet_message() 633 security_release_secctx(secdata, seclen); in nfqnl_build_packet_message()
|
/linux/include/linux/ |
A D | security.h | 468 int security_secid_to_secctx(u32 secid, char **secdata, u32 *seclen); 469 int security_secctx_to_secid(const char *secdata, u32 seclen, u32 *secid); 470 void security_release_secctx(char *secdata, u32 seclen); 1322 static inline int security_secid_to_secctx(u32 secid, char **secdata, u32 *seclen) in security_secid_to_secctx() argument 1327 static inline int security_secctx_to_secid(const char *secdata, in security_secctx_to_secid() argument 1334 static inline void security_release_secctx(char *secdata, u32 seclen) in security_release_secctx() argument
|
A D | lsm_hook_defs.h | 262 LSM_HOOK(int, -EOPNOTSUPP, secid_to_secctx, u32 secid, char **secdata, 264 LSM_HOOK(int, 0, secctx_to_secid, const char *secdata, u32 seclen, u32 *secid) 265 LSM_HOOK(void, LSM_RET_VOID, release_secctx, char *secdata, u32 seclen)
|
/linux/security/ |
A D | security.c | 2081 int security_secid_to_secctx(u32 secid, char **secdata, u32 *seclen) in security_secid_to_secctx() argument 2091 rc = hp->hook.secid_to_secctx(secid, secdata, seclen); in security_secid_to_secctx() 2100 int security_secctx_to_secid(const char *secdata, u32 seclen, u32 *secid) in security_secctx_to_secid() argument 2103 return call_int_hook(secctx_to_secid, 0, secdata, seclen, secid); in security_secctx_to_secid() 2107 void security_release_secctx(char *secdata, u32 seclen) in security_release_secctx() argument 2109 call_void_hook(release_secctx, secdata, seclen); in security_release_secctx()
|
/linux/net/ipv4/ |
A D | ip_sockglue.c | 133 char *secdata; in ip_cmsg_recv_security() local 141 err = security_secid_to_secctx(secid, &secdata, &seclen); in ip_cmsg_recv_security() 145 put_cmsg(msg, SOL_IP, SCM_SECURITY, seclen, secdata); in ip_cmsg_recv_security() 146 security_release_secctx(secdata, seclen); in ip_cmsg_recv_security()
|
/linux/security/smack/ |
A D | smack_lsm.c | 4571 static int smack_secid_to_secctx(u32 secid, char **secdata, u32 *seclen) in smack_secid_to_secctx() argument 4575 if (secdata) in smack_secid_to_secctx() 4576 *secdata = skp->smk_known; in smack_secid_to_secctx() 4589 static int smack_secctx_to_secid(const char *secdata, u32 seclen, u32 *secid) in smack_secctx_to_secid() argument 4591 struct smack_known *skp = smk_find_entry(secdata); in smack_secctx_to_secid()
|
/linux/security/selinux/ |
A D | hooks.c | 6593 static int selinux_secid_to_secctx(u32 secid, char **secdata, u32 *seclen) in selinux_secid_to_secctx() argument 6596 secdata, seclen); in selinux_secid_to_secctx() 6599 static int selinux_secctx_to_secid(const char *secdata, u32 seclen, u32 *secid) in selinux_secctx_to_secid() argument 6601 return security_context_to_sid(&selinux_state, secdata, seclen, in selinux_secctx_to_secid() 6605 static void selinux_release_secctx(char *secdata, u32 seclen) in selinux_release_secctx() argument 6607 kfree(secdata); in selinux_release_secctx()
|