Home
last modified time | relevance | path

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

/external/selinux/libsepol/src/
Dmls.c171 char *scontextp; in mls_sid_to_context() local
178 scontextp = *scontext; in mls_sid_to_context()
180 *scontextp = ':'; in mls_sid_to_context()
181 scontextp++; in mls_sid_to_context()
186 strcpy(scontextp, in mls_sid_to_context()
189 scontextp += in mls_sid_to_context()
202 *scontextp++ = ':'; in mls_sid_to_context()
205 *scontextp++ = ','; in mls_sid_to_context()
206 strcpy(scontextp, in mls_sid_to_context()
208 scontextp += in mls_sid_to_context()
[all …]
/external/selinux/mcstrans/src/
Dmls_level.c8 char *scontextp, *p, *lptr; in mls_level_from_string() local
18 scontextp = p = mls_context; in mls_level_from_string()
26 if (*scontextp != 's') in mls_level_from_string()
28 l->sens = atoi(scontextp + 1); in mls_level_from_string()
33 scontextp = p; in mls_level_from_string()
41 if ((lptr = strchr(scontextp, '.')) != NULL) { in mls_level_from_string()
46 if (*scontextp != 'c') in mls_level_from_string()
48 int bit = atoi(scontextp + 1); in mls_level_from_string()