Home
last modified time | relevance | path

Searched refs:secctx (Results 1 – 13 of 13) sorted by relevance

/linux/net/netfilter/
A Dxt_SECMARK.c47 info->secctx[SECMARK_SECCTX_MAX - 1] = '\0'; in checkentry_lsm()
50 err = security_secctx_to_secid(info->secctx, strlen(info->secctx), in checkentry_lsm()
55 info->secctx); in checkentry_lsm()
61 info->secctx); in checkentry_lsm()
126 memcpy(newinfo.secctx, info->secctx, SECMARK_SECCTX_MAX); in secmark_tg_check_v0()
A Dnf_conntrack_standalone.c180 char *secctx; in ct_show_secctx() local
182 ret = security_secid_to_secctx(ct->secmark, &secctx, &len); in ct_show_secctx()
186 seq_printf(s, "secctx=%s ", secctx); in ct_show_secctx()
188 security_release_secctx(secctx, len); in ct_show_secctx()
A Dnf_conntrack_netlink.c343 char *secctx; in ctnetlink_dump_secctx() local
345 ret = security_secid_to_secctx(ct->secmark, &secctx, &len); in ctnetlink_dump_secctx()
354 if (nla_put_string(skb, CTA_SECCTX_NAME, secctx)) in ctnetlink_dump_secctx()
360 security_release_secctx(secctx, len); in ctnetlink_dump_secctx()
/linux/net/netlabel/
A Dnetlabel_user.c87 char *secctx; in netlbl_audit_start_common() local
103 &secctx, in netlbl_audit_start_common()
105 audit_log_format(audit_buf, " subj=%s", secctx); in netlbl_audit_start_common()
106 security_release_secctx(secctx, secctx_len); in netlbl_audit_start_common()
A Dnetlabel_unlabeled.c377 char *secctx = NULL; in netlbl_unlhsh_add() local
442 &secctx, in netlbl_unlhsh_add()
445 security_release_secctx(secctx, secctx_len); in netlbl_unlhsh_add()
476 char *secctx; in netlbl_unlhsh_remove_addr4() local
498 &secctx, &secctx_len) == 0) { in netlbl_unlhsh_remove_addr4()
500 security_release_secctx(secctx, secctx_len); in netlbl_unlhsh_remove_addr4()
537 char *secctx; in netlbl_unlhsh_remove_addr6() local
558 &secctx, &secctx_len) == 0) { in netlbl_unlhsh_remove_addr6()
1074 char *secctx; in netlbl_unlabel_staticlist_gen() local
1136 secctx); in netlbl_unlabel_staticlist_gen()
[all …]
/linux/fs/cachefiles/
A Dsecurity.c21 _enter("{%s}", cache->secctx); in cachefiles_get_security_ID()
29 if (cache->secctx) { in cachefiles_get_security_ID()
30 ret = set_security_override_from_ctx(new, cache->secctx); in cachefiles_get_security_ID()
A Ddaemon.c498 char *secctx; in cachefiles_daemon_secctx() local
507 if (cache->secctx) { in cachefiles_daemon_secctx()
512 secctx = kstrdup(args, GFP_KERNEL); in cachefiles_daemon_secctx()
513 if (!secctx) in cachefiles_daemon_secctx()
516 cache->secctx = secctx; in cachefiles_daemon_secctx()
A Dbind.c274 kfree(cache->secctx); in cachefiles_daemon_unbind()
A Dinternal.h88 char *secctx; /* LSM security context */ member
/linux/include/uapi/linux/netfilter/
A Dxt_SECMARK.h20 char secctx[SECMARK_SECCTX_MAX]; member
25 char secctx[SECMARK_SECCTX_MAX]; member
/linux/kernel/
A Dcred.c796 int set_security_override_from_ctx(struct cred *new, const char *secctx) in set_security_override_from_ctx() argument
801 ret = security_secctx_to_secid(secctx, strlen(secctx), &secid); in set_security_override_from_ctx()
/linux/include/uapi/linux/android/
A Dbinder.h313 binder_uintptr_t secctx; member
/linux/drivers/android/
A Dbinder.c2470 char *secctx = NULL; in binder_transaction() local
2725 ret = security_secid_to_secctx(secid, &secctx, &secctx_sz); in binder_transaction()
2759 if (secctx) { in binder_transaction()
2769 secctx, secctx_sz); in binder_transaction()
2774 security_release_secctx(secctx, secctx_sz); in binder_transaction()
2775 secctx = NULL; in binder_transaction()
3115 if (secctx) in binder_transaction()
3116 security_release_secctx(secctx, secctx_sz); in binder_transaction()
4135 tr.secctx = t->security_ctx; in binder_thread_read()

Completed in 42 milliseconds