/linux/security/apparmor/ |
H A D | secid.c | 64 int apparmor_secid_to_secctx(u32 secid, char **secdata, u32 *seclen) in apparmor_secid_to_secctx() argument 71 AA_BUG(!seclen); in apparmor_secid_to_secctx() 88 *seclen = len; in apparmor_secid_to_secctx() 93 int apparmor_secctx_to_secid(const char *secdata, u32 seclen, u32 *secid) in apparmor_secctx_to_secid() argument 98 seclen, GFP_KERNEL, false, false); in apparmor_secctx_to_secid() 106 void apparmor_release_secctx(char *secdata, u32 seclen) in apparmor_release_secctx() argument
|
/linux/security/apparmor/include/ |
H A D | secid.h | 28 int apparmor_secid_to_secctx(u32 secid, char **secdata, u32 *seclen); 29 int apparmor_secctx_to_secid(const char *secdata, u32 seclen, u32 *secid); 30 void apparmor_release_secctx(char *secdata, u32 seclen);
|
/linux/drivers/media/dvb-core/ |
H A D | dvb_demux.c | 152 return feed->cb.sec(feed->feed.sec.secbuf, feed->feed.sec.seclen, in dvb_dmx_swfilter_sectionfilter() 172 demux->check_crc32(feed, sec->secbuf, sec->seclen)) { in dvb_dmx_swfilter_section_feed() 183 sec->seclen = 0; in dvb_dmx_swfilter_section_feed() 209 sec->tsfeedp = sec->secbufp = sec->seclen = 0; in dvb_dmx_swfilter_section_new() 236 u16 limit, seclen; in dvb_dmx_swfilter_section_copy_dump() local 266 seclen = section_length(sec->secbuf); in dvb_dmx_swfilter_section_copy_dump() 267 if (seclen <= 0 || seclen > DMX_MAX_SECTION_SIZE in dvb_dmx_swfilter_section_copy_dump() 268 || seclen + sec->secbufp > limit) in dvb_dmx_swfilter_section_copy_dump() 270 sec->seclen = seclen; in dvb_dmx_swfilter_section_copy_dump() 280 sec->secbufp += seclen; /* secbufp and secbuf moving together is */ in dvb_dmx_swfilter_section_copy_dump() [all …]
|
/linux/include/net/ |
H A D | scm.h | 109 u32 seclen; in scm_passec() local 113 err = security_secid_to_secctx(scm->secid, &secdata, &seclen); in scm_passec() 116 put_cmsg(msg, SOL_SOCKET, SCM_SECURITY, seclen, secdata); in scm_passec() 117 security_release_secctx(secdata, seclen); in scm_passec()
|
/linux/net/netfilter/ |
H A D | nfnetlink_queue.c | 475 u32 seclen = 0; in nfqnl_get_sk_secctx() local 483 security_secid_to_secctx(skb->secmark, secdata, &seclen); in nfqnl_get_sk_secctx() 487 return seclen; in nfqnl_get_sk_secctx() 571 u32 seclen = 0; in nfqnl_build_packet_message() local 645 seclen = nfqnl_get_sk_secctx(entskb, &secdata); in nfqnl_build_packet_message() 646 if (seclen) in nfqnl_build_packet_message() 647 size += nla_total_size(seclen); in nfqnl_build_packet_message() 785 if (seclen && nla_put(skb, NFQA_SECCTX, seclen, secdata)) in nfqnl_build_packet_message() 813 if (seclen) in nfqnl_build_packet_message() 814 security_release_secctx(secdata, seclen); in nfqnl_build_packet_message() [all …]
|
/linux/include/media/ |
H A D | demux.h | 175 u16 secbufp, seclen, tsfeedp; member
|
/linux/drivers/s390/crypto/ |
H A D | zcrypt_ccamisc.h | 105 u16 seclen; /* section length */ member
|
/linux/include/linux/ |
H A D | lsm_hook_defs.h | 296 u32 *seclen) 297 LSM_HOOK(int, 0, secctx_to_secid, const char *secdata, u32 seclen, u32 *secid) 298 LSM_HOOK(void, LSM_RET_VOID, release_secctx, char *secdata, u32 seclen)
|
/linux/net/ipv4/ |
H A D | ip_sockglue.c | 132 u32 seclen, secid; in ip_cmsg_recv_security() local 139 err = security_secid_to_secctx(secid, &secdata, &seclen); in ip_cmsg_recv_security() 143 put_cmsg(msg, SOL_IP, SCM_SECURITY, seclen, secdata); in ip_cmsg_recv_security() 144 security_release_secctx(secdata, seclen); in ip_cmsg_recv_security()
|
/linux/security/ |
H A D | security.c | 4310 int security_secid_to_secctx(u32 secid, char **secdata, u32 *seclen) in security_secid_to_secctx() argument 4312 return call_int_hook(secid_to_secctx, secid, secdata, seclen); in security_secid_to_secctx() 4326 int security_secctx_to_secid(const char *secdata, u32 seclen, u32 *secid) in security_secctx_to_secid() argument 4329 return call_int_hook(secctx_to_secid, secdata, seclen, secid); in security_secctx_to_secid() 4340 void security_release_secctx(char *secdata, u32 seclen) in security_release_secctx() argument 4342 call_void_hook(release_secctx, secdata, seclen); in security_release_secctx()
|
/linux/net/sunrpc/auth_gss/ |
H A D | auth_gss.c | 180 unsigned int seclen; in gss_fill_context() local 220 p = simple_get_bytes(p, end, &seclen, sizeof(seclen)); in gss_fill_context() 223 q = (const void *)((const char *)p + seclen); in gss_fill_context() 228 ret = gss_import_sec_context(p, seclen, gm, &ctx->gc_gss_ctx, NULL, GFP_KERNEL); in gss_fill_context()
|
/linux/security/selinux/ |
H A D | hooks.c | 6602 static int selinux_secid_to_secctx(u32 secid, char **secdata, u32 *seclen) in selinux_secid_to_secctx() argument 6605 secdata, seclen); in selinux_secid_to_secctx() 6608 static int selinux_secctx_to_secid(const char *secdata, u32 seclen, u32 *secid) in selinux_secctx_to_secid() argument 6610 return security_context_to_sid(secdata, seclen, in selinux_secctx_to_secid() 6614 static void selinux_release_secctx(char *secdata, u32 seclen) in selinux_release_secctx() argument
|
/linux/security/smack/ |
H A D | smack_lsm.c | 4821 static int smack_secid_to_secctx(u32 secid, char **secdata, u32 *seclen) in smack_secid_to_secctx() argument 4827 *seclen = strlen(skp->smk_known); in smack_secid_to_secctx() 4839 static int smack_secctx_to_secid(const char *secdata, u32 seclen, u32 *secid) in smack_secctx_to_secid() argument
|