Home
last modified time | relevance | path

Searched refs:scontext_len (Results 1 – 4 of 4) sorted by relevance

/linux-6.1.9/security/selinux/include/
Dsecurity.h319 char **scontext, u32 *scontext_len);
322 u32 sid, char **scontext, u32 *scontext_len);
325 u32 sid, char **scontext, u32 *scontext_len);
328 const char *scontext, u32 scontext_len,
335 const char *scontext, u32 scontext_len,
339 const char *scontext, u32 scontext_len,
/linux-6.1.9/security/selinux/ss/
Dservices.c86 u32 *scontext_len);
92 u32 *scontext_len);
1232 char **scontext, u32 *scontext_len) in context_struct_to_string() argument
1238 *scontext_len = 0; in context_struct_to_string()
1241 *scontext_len = context->len; in context_struct_to_string()
1251 *scontext_len += strlen(sym_name(p, SYM_USERS, context->user - 1)) + 1; in context_struct_to_string()
1252 *scontext_len += strlen(sym_name(p, SYM_ROLES, context->role - 1)) + 1; in context_struct_to_string()
1253 *scontext_len += strlen(sym_name(p, SYM_TYPES, context->type - 1)) + 1; in context_struct_to_string()
1254 *scontext_len += mls_compute_context_len(p, context); in context_struct_to_string()
1260 scontextp = kmalloc(*scontext_len, GFP_ATOMIC); in context_struct_to_string()
[all …]
/linux-6.1.9/security/selinux/
Davc.c714 u32 scontext_len; in avc_audit_post_callback() local
719 &scontext_len); in avc_audit_post_callback()
744 &scontext_len); in avc_audit_post_callback()
746 if (scontext_len && scontext[scontext_len - 1] == '\0') in avc_audit_post_callback()
747 scontext_len--; in avc_audit_post_callback()
749 audit_log_n_untrustedstring(ab, scontext, scontext_len); in avc_audit_post_callback()
754 &scontext_len); in avc_audit_post_callback()
756 if (scontext_len && scontext[scontext_len - 1] == '\0') in avc_audit_post_callback()
757 scontext_len--; in avc_audit_post_callback()
759 audit_log_n_untrustedstring(ab, scontext, scontext_len); in avc_audit_post_callback()
Dhooks.c5127 u32 scontext_len; in selinux_socket_getpeersec_stream() local
5139 &scontext_len); in selinux_socket_getpeersec_stream()
5143 if (scontext_len > len) { in selinux_socket_getpeersec_stream()
5148 if (copy_to_user(optval, scontext, scontext_len)) in selinux_socket_getpeersec_stream()
5152 if (put_user(scontext_len, optlen)) in selinux_socket_getpeersec_stream()