Searched refs:scontextp (Results 1 - 2 of 2) sorted by relevance

/linux-4.1.27/security/selinux/ss/
H A Dmls.c91 char *scontextp, *nm; mls_sid_to_context() local
99 scontextp = *scontext; mls_sid_to_context()
101 *scontextp = ':'; mls_sid_to_context()
102 scontextp++; mls_sid_to_context()
105 strcpy(scontextp, sym_name(&policydb, SYM_LEVELS, mls_sid_to_context()
107 scontextp += strlen(scontextp); mls_sid_to_context()
118 *scontextp++ = '.'; ebitmap_for_each_positive_bit()
120 *scontextp++ = ','; ebitmap_for_each_positive_bit()
122 strcpy(scontextp, nm); ebitmap_for_each_positive_bit()
123 scontextp += strlen(nm); ebitmap_for_each_positive_bit()
126 *scontextp++ = ':'; ebitmap_for_each_positive_bit()
128 *scontextp++ = ','; ebitmap_for_each_positive_bit()
130 strcpy(scontextp, nm); ebitmap_for_each_positive_bit()
131 scontextp += strlen(nm); ebitmap_for_each_positive_bit()
139 *scontextp++ = '.';
141 *scontextp++ = ',';
143 strcpy(scontextp, nm);
144 scontextp += strlen(nm);
152 *scontextp++ = '-';
156 *scontext = scontextp;
243 char *scontextp, *p, *rngptr; mls_context_to_sid() local
273 scontextp = p = *scontext; mls_context_to_sid()
282 levdatum = hashtab_search(pol->p_levels.table, scontextp); mls_context_to_sid()
293 scontextp = p; mls_context_to_sid()
301 rngptr = strchr(scontextp, '.'); mls_context_to_sid()
308 scontextp); mls_context_to_sid()
347 scontextp = p; mls_context_to_sid()
H A Dservices.c1014 char *scontextp; context_struct_to_string() local
1040 scontextp = kmalloc(*scontext_len, GFP_ATOMIC); context_struct_to_string()
1041 if (!scontextp) context_struct_to_string()
1043 *scontext = scontextp; context_struct_to_string()
1048 sprintf(scontextp, "%s:%s:%s", context_struct_to_string()
1052 scontextp += strlen(sym_name(&policydb, SYM_USERS, context->user - 1)) + context_struct_to_string()
1056 mls_sid_to_context(context, &scontextp); context_struct_to_string()
1058 *scontextp = 0; context_struct_to_string()
1084 char *scontextp; security_sid_to_context_core() local
1089 scontextp = kmalloc(*scontext_len, GFP_ATOMIC); security_sid_to_context_core()
1090 if (!scontextp) { security_sid_to_context_core()
1094 strcpy(scontextp, initial_sid_to_string[sid]); security_sid_to_context_core()
1095 *scontext = scontextp; security_sid_to_context_core()
1155 char *scontextp, *p, oldc; string_to_context_struct() local
1163 scontextp = (char *) scontext; string_to_context_struct()
1166 p = scontextp; string_to_context_struct()
1175 usrdatum = hashtab_search(pol->p_users.table, scontextp); string_to_context_struct()
1182 scontextp = p; string_to_context_struct()
1191 role = hashtab_search(pol->p_roles.table, scontextp); string_to_context_struct()
1197 scontextp = p; string_to_context_struct()
1203 typdatum = hashtab_search(pol->p_types.table, scontextp); string_to_context_struct()

Completed in 87 milliseconds