Searched refs:scontext_len (Results 1 – 4 of 4) sorted by relevance
/Linux-v5.4/security/selinux/include/ |
D | security.h | 254 char **scontext, u32 *scontext_len); 257 u32 sid, char **scontext, u32 *scontext_len); 260 u32 sid, char **scontext, u32 *scontext_len); 263 const char *scontext, u32 scontext_len, 270 const char *scontext, u32 scontext_len, 274 const char *scontext, u32 scontext_len,
|
/Linux-v5.4/security/selinux/ |
D | avc.c | 709 u32 scontext_len; in avc_audit_post_callback() local 713 &scontext_len); in avc_audit_post_callback() 722 &scontext_len); in avc_audit_post_callback() 737 &scontext_len); in avc_audit_post_callback() 739 if (scontext_len && scontext[scontext_len - 1] == '\0') in avc_audit_post_callback() 740 scontext_len--; in avc_audit_post_callback() 742 audit_log_n_untrustedstring(ab, scontext, scontext_len); in avc_audit_post_callback() 747 &scontext_len); in avc_audit_post_callback() 749 if (scontext_len && scontext[scontext_len - 1] == '\0') in avc_audit_post_callback() 750 scontext_len--; in avc_audit_post_callback() [all …]
|
D | hooks.c | 5056 u32 scontext_len; in selinux_socket_getpeersec_stream() local 5068 &scontext_len); in selinux_socket_getpeersec_stream() 5072 if (scontext_len > len) { in selinux_socket_getpeersec_stream() 5077 if (copy_to_user(optval, scontext, scontext_len)) in selinux_socket_getpeersec_stream() 5081 if (put_user(scontext_len, optlen)) in selinux_socket_getpeersec_stream()
|
/Linux-v5.4/security/selinux/ss/ |
D | services.c | 92 u32 *scontext_len); 1210 char **scontext, u32 *scontext_len) in context_struct_to_string() argument 1216 *scontext_len = 0; in context_struct_to_string() 1219 *scontext_len = context->len; in context_struct_to_string() 1229 *scontext_len += strlen(sym_name(p, SYM_USERS, context->user - 1)) + 1; in context_struct_to_string() 1230 *scontext_len += strlen(sym_name(p, SYM_ROLES, context->role - 1)) + 1; in context_struct_to_string() 1231 *scontext_len += strlen(sym_name(p, SYM_TYPES, context->type - 1)) + 1; in context_struct_to_string() 1232 *scontext_len += mls_compute_context_len(p, context); in context_struct_to_string() 1238 scontextp = kmalloc(*scontext_len, GFP_ATOMIC); in context_struct_to_string() 1269 u32 *scontext_len, int force, in security_sid_to_context_core() argument [all …]
|