Home
last modified time | relevance | path

Searched refs:secctx (Results 1 - 25 of 30) sorted by relevance

12

/kernel/linux/linux-5.10/net/netfilter/
H 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()
H A Dnf_conntrack_standalone.c177 char *secctx; in ct_show_secctx() local
179 ret = security_secid_to_secctx(ct->secmark, &secctx, &len); in ct_show_secctx()
183 seq_printf(s, "secctx=%s ", secctx); in ct_show_secctx()
185 security_release_secctx(secctx, len); in ct_show_secctx()
/kernel/linux/linux-6.6/net/netfilter/
H 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()
H 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()
/kernel/linux/linux-5.10/net/netlabel/
H 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()
H A Dnetlabel_unlabeled.c377 char *secctx = NULL; in netlbl_unlhsh_add() local
442 &secctx, in netlbl_unlhsh_add()
444 audit_log_format(audit_buf, " sec_obj=%s", 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
499 &secctx, &secctx_len) == 0) { in netlbl_unlhsh_remove_addr4()
500 audit_log_format(audit_buf, " sec_obj=%s", secctx); in netlbl_unlhsh_remove_addr4()
501 security_release_secctx(secctx, secctx_len); in netlbl_unlhsh_remove_addr4()
538 char *secctx; in netlbl_unlhsh_remove_addr6() local
560 &secctx, in netlbl_unlhsh_remove_addr6()
1076 char *secctx; netlbl_unlabel_staticlist_gen() local
[all...]
/kernel/linux/linux-6.6/net/netlabel/
H 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()
H A Dnetlabel_unlabeled.c377 char *secctx = NULL; in netlbl_unlhsh_add() local
442 &secctx, in netlbl_unlhsh_add()
444 audit_log_format(audit_buf, " sec_obj=%s", 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()
499 audit_log_format(audit_buf, " sec_obj=%s", secctx); 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, in netlbl_unlhsh_remove_addr6()
1074 char *secctx; netlbl_unlabel_staticlist_gen() local
[all...]
/kernel/linux/linux-5.10/fs/cachefiles/
H 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()
H A Ddaemon.c74 { "secctx", cachefiles_daemon_secctx },
494 * - command: "secctx <ctx>"
498 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()
H A Dbind.c270 kfree(cache->secctx); in cachefiles_daemon_unbind()
H A Dinternal.h88 char *secctx; /* LSM security context */ member
/kernel/linux/linux-6.6/fs/cachefiles/
H 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()
H A Ddaemon.c76 { "secctx", cachefiles_daemon_secctx },
563 * - command: "secctx <ctx>"
567 char *secctx; in cachefiles_daemon_secctx() local
576 if (cache->secctx) { in cachefiles_daemon_secctx()
581 secctx = kstrdup(args, GFP_KERNEL); in cachefiles_daemon_secctx()
582 if (!secctx) in cachefiles_daemon_secctx()
585 cache->secctx = secctx; in cachefiles_daemon_secctx()
811 kfree(cache->secctx); in cachefiles_daemon_unbind()
/kernel/linux/linux-5.10/include/uapi/linux/netfilter/
H A Dxt_SECMARK.h20 char secctx[SECMARK_SECCTX_MAX]; member
25 char secctx[SECMARK_SECCTX_MAX]; member
/kernel/linux/linux-6.6/include/uapi/linux/netfilter/
H A Dxt_SECMARK.h20 char secctx[SECMARK_SECCTX_MAX]; member
25 char secctx[SECMARK_SECCTX_MAX]; member
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/netfilter/
H A Dxt_SECMARK.h27 char secctx[SECMARK_SECCTX_MAX]; member
/kernel/linux/patches/linux-6.6/prebuilts/usr/include/linux/netfilter/
H A Dxt_SECMARK.h27 char secctx[SECMARK_SECCTX_MAX]; member
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/netfilter/
H A Dxt_SECMARK.h14 char secctx[SECMARK_SECCTX_MAX]; member
/kernel/linux/linux-6.6/kernel/
H A Dcred.c696 * @secctx: The LSM security context to generate the security ID from.
703 int set_security_override_from_ctx(struct cred *new, const char *secctx) in set_security_override_from_ctx() argument
708 ret = security_secctx_to_secid(secctx, strlen(secctx), &secid); in set_security_override_from_ctx()
/kernel/linux/linux-5.10/kernel/
H A Dcred.c752 * @secctx: The LSM security context to generate the security ID from.
759 int set_security_override_from_ctx(struct cred *new, const char *secctx) in set_security_override_from_ctx() argument
764 ret = security_secctx_to_secid(secctx, strlen(secctx), &secid); in set_security_override_from_ctx()
/kernel/linux/linux-5.10/include/uapi/linux/android/
H A Dbinder.h310 binder_uintptr_t secctx; member
/kernel/linux/linux-6.6/include/uapi/linux/android/
H A Dbinder.h349 binder_uintptr_t secctx; member
/kernel/linux/patches/linux-6.6/prebuilts/usr/include/linux/android/
H A Dbinder.h158 binder_uintptr_t secctx; member
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/android/
H A Dbinder.h158 binder_uintptr_t secctx; member

Completed in 17 milliseconds

12