Home
last modified time | relevance | path

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

/linux-6.6.21/security/selinux/include/
Dsecurity.h264 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,
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/
Davc.c701 u32 scontext_len; in avc_audit_post_callback() local
706 &scontext_len); in avc_audit_post_callback()
731 &scontext_len); in avc_audit_post_callback()
733 if (scontext_len && scontext[scontext_len - 1] == '\0') in avc_audit_post_callback()
734 scontext_len--; in avc_audit_post_callback()
736 audit_log_n_untrustedstring(ab, scontext, scontext_len); in avc_audit_post_callback()
741 &scontext_len); in avc_audit_post_callback()
743 if (scontext_len && scontext[scontext_len - 1] == '\0') in avc_audit_post_callback()
744 scontext_len--; in avc_audit_post_callback()
746 audit_log_n_untrustedstring(ab, scontext, scontext_len); in avc_audit_post_callback()
Dhooks.c5138 u32 scontext_len; in selinux_socket_getpeersec_stream() local
5150 &scontext_len); in selinux_socket_getpeersec_stream()
5153 if (scontext_len > len) { in selinux_socket_getpeersec_stream()
5158 if (copy_to_sockptr(optval, scontext, scontext_len)) in selinux_socket_getpeersec_stream()
5161 if (copy_to_sockptr(optlen, &scontext_len, sizeof(scontext_len))) in selinux_socket_getpeersec_stream()
/linux-6.6.21/security/selinux/ss/
Dservices.c80 u32 *scontext_len);
86 u32 *scontext_len);
1215 char **scontext, u32 *scontext_len) in context_struct_to_string() argument
1221 *scontext_len = 0; in context_struct_to_string()
1224 *scontext_len = context->len; in context_struct_to_string()
1234 *scontext_len += strlen(sym_name(p, SYM_USERS, context->user - 1)) + 1; in context_struct_to_string()
1235 *scontext_len += strlen(sym_name(p, SYM_ROLES, context->role - 1)) + 1; in context_struct_to_string()
1236 *scontext_len += strlen(sym_name(p, SYM_TYPES, context->type - 1)) + 1; in context_struct_to_string()
1237 *scontext_len += mls_compute_context_len(p, context); in context_struct_to_string()
1243 scontextp = kmalloc(*scontext_len, GFP_ATOMIC); in context_struct_to_string()
[all …]