/external/selinux/libselinux/utils/ |
getseuser.c | 10 char *seuser = NULL, *level = NULL; local 19 rc = getseuserbyname(argv[1], &seuser, &level); 25 printf("seuser: %s, level %s\n", seuser, level); 26 n = get_ordered_context_list_with_level(seuser, level, argv[2], 34 free(seuser);
|
getdefaultcon.c | 23 char *user = NULL, *level = NULL, *role=NULL, *seuser=NULL, *dlevel=NULL; local 68 if ((ret = getseuser(user, service, &seuser, &dlevel)) == 0) { 71 ret=get_default_context_with_rolelevel(seuser, role, level,cur_context,&usercon); 73 ret=get_default_context_with_level(seuser, level, cur_context,&usercon); 79 printf("%s: %s from %s %s %s %s -> %s\n", argv[0], user, cur_context, seuser, role, level, usercon); 86 free(seuser);
|
/external/selinux/libsemanage/src/ |
seuser_record.c | 27 * seuser ("role set") */ 48 ERR(handle, "out of memory, could not create seuser key"); 60 const semanage_seuser_t * seuser, 64 if (semanage_seuser_key_create(handle, seuser->name, key_ptr) < 0) 70 ERR(handle, "could not extract seuser key from record"); 84 int semanage_seuser_compare(const semanage_seuser_t * seuser, 88 return strcmp(seuser->name, key->name); 93 int semanage_seuser_compare2(const semanage_seuser_t * seuser, 97 return strcmp(seuser->name, seuser2->name); 102 static int semanage_seuser_compare2_qsort(const semanage_seuser_t ** seuser, 191 semanage_seuser_t *seuser = local [all...] |
seusers_local.c | 55 const semanage_seuser_t * seuser, 70 if (seuser) { 71 name = semanage_seuser_get_name(seuser); 72 sename = semanage_seuser_get_sename(seuser); 73 mls = semanage_seuser_get_mlsrange(seuser); 174 semanage_seuser_t *seuser = NULL; local 177 semanage_seuser_query(handle, key, &seuser); 178 if (semanage_seuser_audit(handle, NULL, seuser, AUDIT_ROLE_REMOVE, rc == 0) < 0) 180 if (seuser) 181 semanage_seuser_free(seuser); [all...] |
/external/selinux/libselinux/src/ |
seusers.c | 20 char *luser = NULL, *seuser = NULL, *level = NULL; local 54 seuser = strdup(start); 55 if (!seuser) 58 if (!strcmp(seuser, "")) 80 *seuserp = seuser; 86 free(seuser); 179 char *seuser = NULL; local 195 rc = process_seusers(buffer, &username, &seuser, &level, 211 groupseuser = seuser; 216 defaultseuser = seuser; 272 char *seuser = NULL; local [all...] |
/external/selinux/libsepol/src/ |
module_to_cil.c | 2966 char *seuser = NULL; local [all...] |