/linux-6.6.21/include/trace/events/ |
D | avc.h | 17 char *scontext, 22 TP_ARGS(sad, scontext, tcontext, tclass), 29 __string(scontext, scontext) 40 __assign_str(scontext, scontext); 46 __get_str(scontext), __get_str(tcontext), __get_str(tclass)
|
/linux-6.6.21/security/selinux/ss/ |
D | services.c | 79 char **scontext, 85 char **scontext, 89 struct context *scontext, 265 struct context *scontext, in constraint_expr_eval() argument 299 val1 = scontext->user; in constraint_expr_eval() 303 val1 = scontext->type; in constraint_expr_eval() 307 val1 = scontext->role; in constraint_expr_eval() 331 l1 = &(scontext->range.level[0]); in constraint_expr_eval() 335 l1 = &(scontext->range.level[0]); in constraint_expr_eval() 339 l1 = &(scontext->range.level[1]); in constraint_expr_eval() [all …]
|
D | mls.c | 91 char **scontext) in mls_sid_to_context() argument 101 scontextp = *scontext; in mls_sid_to_context() 158 *scontext = scontextp; in mls_sid_to_context() 235 char *scontext, in mls_context_to_sid() argument 278 rangep[0] = scontext; in mls_context_to_sid() 279 rangep[1] = strchr(scontext, '-'); in mls_context_to_sid() 490 struct context *scontext, in mls_compute_sid() argument 508 rtr.source_type = scontext->type; in mls_compute_sid() 523 return mls_context_cpy_low(newcontext, scontext); in mls_compute_sid() 525 return mls_context_cpy_high(newcontext, scontext); in mls_compute_sid() [all …]
|
D | mls.h | 33 char **scontext); 40 char *scontext, 56 struct context *scontext,
|
/linux-6.6.21/arch/riscv/kvm/ |
D | vcpu_sbi.c | 141 struct kvm_vcpu_sbi_context *scontext = &vcpu->arch.sbi_context; in riscv_vcpu_set_sbi_ext_single() local 165 scontext->ext_status[sext->ext_idx] = in riscv_vcpu_set_sbi_ext_single() 177 struct kvm_vcpu_sbi_context *scontext = &vcpu->arch.sbi_context; in riscv_vcpu_get_sbi_ext_single() local 198 *reg_val = scontext->ext_status[sext->ext_idx] != in riscv_vcpu_get_sbi_ext_single() 326 struct kvm_vcpu_sbi_context *scontext = &vcpu->arch.sbi_context; in kvm_vcpu_sbi_find_ext() local 337 scontext->ext_status[entry->ext_idx] == in kvm_vcpu_sbi_find_ext() 340 if (scontext->ext_status[entry->ext_idx] == in kvm_vcpu_sbi_find_ext() 344 scontext->ext_status[entry->ext_idx] = in kvm_vcpu_sbi_find_ext() 349 scontext->ext_status[entry->ext_idx] = in kvm_vcpu_sbi_find_ext()
|
/linux-6.6.21/security/selinux/include/ |
D | security.h | 264 int security_sid_to_context(u32 sid, char **scontext, u32 *scontext_len); 266 int security_sid_to_context_force(u32 sid, char **scontext, u32 *scontext_len); 268 int security_sid_to_context_inval(u32 sid, char **scontext, u32 *scontext_len); 270 int security_context_to_sid(const char *scontext, u32 scontext_len, 273 int security_context_str_to_sid(const char *scontext, u32 *out_sid, gfp_t gfp); 275 int security_context_to_sid_default(const char *scontext, u32 scontext_len, 278 int security_context_to_sid_force(const char *scontext, u32 scontext_len,
|
/linux-6.6.21/security/selinux/ |
D | avc.c | 698 char *scontext = NULL; in avc_audit_post_callback() local 705 rc = security_sid_to_context(sad->ssid, &scontext, in avc_audit_post_callback() 710 audit_log_format(ab, " scontext=%s", scontext); in avc_audit_post_callback() 725 trace_selinux_audited(sad, scontext, tcontext, tclass); in avc_audit_post_callback() 727 kfree(scontext); in avc_audit_post_callback() 730 rc = security_sid_to_context_inval(sad->ssid, &scontext, in avc_audit_post_callback() 732 if (!rc && scontext) { in avc_audit_post_callback() 733 if (scontext_len && scontext[scontext_len - 1] == '\0') in avc_audit_post_callback() 736 audit_log_n_untrustedstring(ab, scontext, scontext_len); in avc_audit_post_callback() 737 kfree(scontext); in avc_audit_post_callback() [all …]
|
D | hooks.c | 5137 char *scontext = NULL; in selinux_socket_getpeersec_stream() local 5149 err = security_sid_to_context(peer_sid, &scontext, in selinux_socket_getpeersec_stream() 5158 if (copy_to_sockptr(optval, scontext, scontext_len)) in selinux_socket_getpeersec_stream() 5163 kfree(scontext); in selinux_socket_getpeersec_stream()
|
/linux-6.6.21/drivers/infiniband/hw/hfi1/ |
D | pio.c | 1833 static void set_threshold(struct hfi1_devdata *dd, int scontext, int i) in set_threshold() argument 1837 thres = min(sc_percent_to_threshold(dd->kernel_send_context[scontext], in set_threshold() 1839 sc_mtu_to_threshold(dd->kernel_send_context[scontext], in set_threshold() 1842 sc_set_cr_threshold(dd->kernel_send_context[scontext], thres); in set_threshold() 1877 int scontext = 1; in pio_map_init() local 1905 int first_scontext = scontext; in pio_map_init() 1922 if (dd->kernel_send_context[scontext]) { in pio_map_init() 1924 dd->kernel_send_context[scontext]; in pio_map_init() 1925 set_threshold(dd, scontext, i); in pio_map_init() 1927 if (++scontext >= first_scontext + in pio_map_init() [all …]
|
/linux-6.6.21/tools/perf/Documentation/ |
D | security.txt | 163 …audit[1318098]: AVC avc: denied { open } for pid=1318098 comm="perf" scontext=unconfined_u:unco…
|