Home
last modified time | relevance | path

Searched refs:usercon (Results 1 – 5 of 5) sorted by relevance

/external/selinux/libselinux/src/
Dquery_user_context.c38 int query_user_context(char ** list, char ** usercon) in query_user_context() argument
57 *usercon = strdup(list[choice]); in query_user_context()
58 if (!(*usercon)) in query_user_context()
63 *usercon = strdup(list[0]); in query_user_context()
64 if (!(*usercon)) in query_user_context()
67 *usercon = strdup(list[0]); in query_user_context()
68 if (!(*usercon)) in query_user_context()
/external/selinux/libselinux/utils/
Dgetdefaultcon.c22 char * usercon = NULL, *cur_context = NULL; in main() local
71 ret=get_default_context_with_rolelevel(seuser, role, level,cur_context,&usercon); in main()
73 ret=get_default_context_with_level(seuser, level, cur_context,&usercon); in main()
79 …rintf("%s: %s from %s %s %s %s -> %s\n", argv[0], user, cur_context, seuser, role, level, usercon); in main()
81 printf("%s\n", usercon); in main()
89 free(usercon); in main()
/external/selinux/libsepol/src/
Dmls.h65 context_struct_t * usercon, int mls);
Dmls.c512 context_struct_t * usercon, int mls) in mls_setup_user_range() argument
520 mls_level_t *usercon_sen = &(usercon->range.level[0]); in mls_setup_user_range()
521 mls_level_t *usercon_clr = &(usercon->range.level[1]); in mls_setup_user_range()
Dservices.c2166 context_struct_t *fromcon, usercon; in sepol_get_user_sids() local
2188 usercon.user = user->s.value; in sepol_get_user_sids()
2201 usercon.role = i + 1; in sepol_get_user_sids()
2205 usercon.type = j + 1; in sepol_get_user_sids()
2206 if (usercon.type == fromcon->type) in sepol_get_user_sids()
2210 (fromcon, user, &usercon, policydb->mls)) in sepol_get_user_sids()
2213 rc = context_struct_compute_av(fromcon, &usercon, in sepol_get_user_sids()
2219 rc = sepol_sidtab_context_to_sid(sidtab, &usercon, in sepol_get_user_sids()