/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 76 AA_BUG(!seclen); in apparmor_secid_to_secctx() 93 *seclen = len; in apparmor_secid_to_secctx() 98 int apparmor_secctx_to_secid(const char *secdata, u32 seclen, u32 *secid) in apparmor_secctx_to_secid() argument 103 seclen, GFP_KERNEL, false, false); in apparmor_secctx_to_secid() 111 void apparmor_release_secctx(char *secdata, u32 seclen) in apparmor_release_secctx() argument
|
/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 | 96 u32 seclen; 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/drivers/media/dvb-core/ |
A D | dvb_demux.c | 162 return feed->cb.sec(feed->feed.sec.secbuf, feed->feed.sec.seclen, in dvb_dmx_swfilter_sectionfilter() 182 demux->check_crc32(feed, sec->secbuf, sec->seclen)) { in dvb_dmx_swfilter_section_feed() 193 sec->seclen = 0; in dvb_dmx_swfilter_section_feed() 219 sec->tsfeedp = sec->secbufp = sec->seclen = 0; in dvb_dmx_swfilter_section_new() 246 u16 limit, seclen, n; in dvb_dmx_swfilter_section_copy_dump() local 276 seclen = section_length(sec->secbuf); in dvb_dmx_swfilter_section_copy_dump() 277 if (seclen <= 0 || seclen > DMX_MAX_SECTION_SIZE in dvb_dmx_swfilter_section_copy_dump() 278 || seclen + sec->secbufp > limit) in dvb_dmx_swfilter_section_copy_dump() 280 sec->seclen = seclen; in dvb_dmx_swfilter_section_copy_dump() 402 feed->feed.sec.seclen = feed->feed.sec.secbufp = 0; in dvb_dmx_swfilter_packet_type() [all …]
|
/linux/net/netfilter/ |
A D | nfnetlink_queue.c | 306 u32 seclen = 0; in nfqnl_get_sk_secctx() local 318 return seclen; in nfqnl_get_sk_secctx() 394 u32 seclen = 0; in nfqnl_build_packet_message() local 462 seclen = nfqnl_get_sk_secctx(entskb, &secdata); in nfqnl_build_packet_message() 463 if (seclen) in nfqnl_build_packet_message() 464 size += nla_total_size(seclen); in nfqnl_build_packet_message() 595 if (seclen && nla_put(skb, NFQA_SECCTX, seclen, secdata)) in nfqnl_build_packet_message() 623 if (seclen) in nfqnl_build_packet_message() 624 security_release_secctx(secdata, seclen); in nfqnl_build_packet_message() 632 if (seclen) in nfqnl_build_packet_message() [all …]
|
/linux/drivers/platform/x86/dell/dell-wmi-sysman/ |
A D | sysman.c | 96 u32 *seclen = sectype + 1; in populate_security_buffer() local 99 *seclen = strlen(authentication); in populate_security_buffer() 103 memcpy(auth, authentication, *seclen); in populate_security_buffer()
|
/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 1328 u32 seclen, 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 | 263 u32 *seclen) 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/include/media/ |
A D | demux.h | 175 u16 secbufp, seclen, tsfeedp; member
|
/linux/drivers/s390/crypto/ |
A D | zcrypt_ccamisc.h | 105 u16 seclen; /* section length */ member
|
/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 | 134 u32 seclen, secid; 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/net/sunrpc/auth_gss/ |
A D | auth_gss.c | 163 unsigned int seclen; in gss_fill_context() local 203 p = simple_get_bytes(p, end, &seclen, sizeof(seclen)); in gss_fill_context() 206 q = (const void *)((const char *)p + seclen); in gss_fill_context() 211 ret = gss_import_sec_context(p, seclen, gm, &ctx->gc_gss_ctx, NULL, GFP_NOFS); in gss_fill_context()
|
/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
|
/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 4577 *seclen = strlen(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
|