Home
last modified time | relevance | path

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

/security/selinux/include/
Dsecurity.h162 u32 *scontext_len);
164 int security_sid_to_context_force(u32 sid, char **scontext, u32 *scontext_len);
166 int security_context_to_sid(const char *scontext, u32 scontext_len,
169 int security_context_to_sid_default(const char *scontext, u32 scontext_len,
172 int security_context_to_sid_force(const char *scontext, u32 scontext_len,
/security/selinux/ss/
Dservices.c93 u32 *scontext_len);
1185 static int context_struct_to_string(struct context *context, char **scontext, u32 *scontext_len) in context_struct_to_string() argument
1191 *scontext_len = 0; in context_struct_to_string()
1194 *scontext_len = context->len; in context_struct_to_string()
1204 *scontext_len += strlen(sym_name(&policydb, SYM_USERS, context->user - 1)) + 1; in context_struct_to_string()
1205 *scontext_len += strlen(sym_name(&policydb, SYM_ROLES, context->role - 1)) + 1; in context_struct_to_string()
1206 *scontext_len += strlen(sym_name(&policydb, SYM_TYPES, context->type - 1)) + 1; in context_struct_to_string()
1207 *scontext_len += mls_compute_context_len(context); in context_struct_to_string()
1213 scontextp = kmalloc(*scontext_len, GFP_ATOMIC); in context_struct_to_string()
1246 u32 *scontext_len, int force) in security_sid_to_context_core() argument
[all …]
/security/selinux/
Davc.c149 u32 scontext_len; in avc_dump_query() local
151 rc = security_sid_to_context(ssid, &scontext, &scontext_len); in avc_dump_query()
159 rc = security_sid_to_context(tsid, &scontext, &scontext_len); in avc_dump_query()
Dhooks.c4567 u32 scontext_len; in selinux_socket_getpeersec_stream() local
4577 err = security_sid_to_context(peer_sid, &scontext, &scontext_len); in selinux_socket_getpeersec_stream()
4581 if (scontext_len > len) { in selinux_socket_getpeersec_stream()
4586 if (copy_to_user(optval, scontext, scontext_len)) in selinux_socket_getpeersec_stream()
4590 if (put_user(scontext_len, optlen)) in selinux_socket_getpeersec_stream()