/external/selinux/libselinux/utils/ |
H A D | 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);
|
H A D | 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/ |
H A D | seusers_file.c | 23 semanage_seuser_t * seuser, FILE * str) 26 const char *name = semanage_seuser_get_name(seuser); 27 const char *sename = semanage_seuser_get_sename(seuser); 28 const char *mls = semanage_seuser_get_mlsrange(seuser); 40 ERR(handle, "could not print seuser %s to stream", name); 45 parse_info_t * info, semanage_seuser_t * seuser) 58 if (semanage_seuser_set_name(handle, seuser, str) < 0) 73 if (semanage_seuser_set_sename(handle, seuser, str) < 0) 89 if (semanage_seuser_set_mlsrange(handle, seuser, str) < 0) 105 ERR(handle, "could not parse seuser recor 22 seuser_print(semanage_handle_t * handle, semanage_seuser_t * seuser, FILE * str) argument 44 seuser_parse(semanage_handle_t * handle, parse_info_t * info, semanage_seuser_t * seuser) argument [all...] |
H A D | 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, argument 110 semanage_seuser_get_name(const semanage_seuser_t * seuser) argument 191 semanage_seuser_t *seuser = local [all...] |
H A D | 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); 54 semanage_seuser_audit(semanage_handle_t * handle, const semanage_seuser_t * seuser, const semanage_seuser_t * previous, int audit_type, int success) argument 237 validate_handler(const semanage_seuser_t * seuser, void *varg) argument [all...] |
H A D | genhomedircon.c | 553 const char *seuser, const char *home, 557 {.search_for = TEMPLATE_SEUSER,.replace_with = seuser}, 613 const char *seuser, const char *role_prefix) 618 {.search_for = TEMPLATE_SEUSER,.replace_with = seuser}, 551 write_home_dir_context(genhomedircon_settings_t * s, FILE * out, semanage_list_t * tpl, const char *user, const char *seuser, const char *home, const char *role_prefix, const char *level) argument 611 write_user_context(genhomedircon_settings_t * s, FILE * out, semanage_list_t * tpl, const char *user, const char *seuser, const char *role_prefix) argument
|
/external/selinux/libselinux/src/ |
H A D | 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/ |
H A D | module_to_cil.c | 2966 char *seuser = NULL; local 2987 matched = tokenize(tmp, ':', 3, &user, &seuser, &level); 2990 log_err("Invalid seuser line: %s", line); 2996 cil_printf("(selinuxuserdefault %s (", seuser); 2998 cil_printf("(selinuxuser %s %s (", user, seuser); 3013 free(seuser); 3016 user = seuser = level = NULL; 3028 free(seuser);
|