Home
last modified time | relevance | path

Searched refs:val_to_name (Results 1 – 9 of 9) sorted by relevance

/third_party/selinux/libsepol/src/
Dutil.c33 struct val_to_name { struct
72 struct val_to_name *v = data; in perm_name()
88 struct val_to_name v; in sepol_av_to_string()
Dkernel_to_common.h111 int ebitmap_to_strs(const struct ebitmap *map, struct strs *strs, char **val_to_name);
112 char *ebitmap_to_str(const struct ebitmap *map, char **val_to_name, int sort);
Dkernel_to_common.c363 int ebitmap_to_strs(const struct ebitmap *map, struct strs *strs, char **val_to_name) in ebitmap_to_strs() argument
370 if (!val_to_name[i]) in ebitmap_to_strs()
373 rc = strs_add(strs, val_to_name[i]); in ebitmap_to_strs()
382 char *ebitmap_to_str(const struct ebitmap *map, char **val_to_name, int sort) in ebitmap_to_str() argument
393 rc = ebitmap_to_strs(map, strs, val_to_name); in ebitmap_to_str()
Dkernel_to_conf.c1019 static size_t cats_ebitmap_len(struct ebitmap *cats, char **val_to_name) in cats_ebitmap_len() argument
1035 len += strlen(val_to_name[start]) + 1; in cats_ebitmap_len()
1037 len += strlen(val_to_name[i]) + 1; in cats_ebitmap_len()
1046 static char *cats_ebitmap_to_str(struct ebitmap *cats, char **val_to_name) in cats_ebitmap_to_str() argument
1054 remaining = (int)cats_ebitmap_len(cats, val_to_name); in cats_ebitmap_to_str()
1080 val_to_name[start], sep, val_to_name[i]); in cats_ebitmap_to_str()
1083 val_to_name[start]); in cats_ebitmap_to_str()
1556 static char *attrmap_to_str(struct ebitmap *map, char **val_to_name) in attrmap_to_str() argument
1567 rc = ebitmap_to_strs(map, strs, val_to_name); in attrmap_to_str()
Dkernel_to_cil.c1019 static size_t cats_ebitmap_len(struct ebitmap *cats, char **val_to_name) in cats_ebitmap_len() argument
1035 len += strlen(val_to_name[start]); in cats_ebitmap_len()
1037 len += strlen(val_to_name[i-1]) + strlen("(range ) "); in cats_ebitmap_len()
1039 len += strlen(val_to_name[i-1]) + 2; in cats_ebitmap_len()
1054 static char *cats_ebitmap_to_str(struct ebitmap *cats, char **val_to_name) in cats_ebitmap_to_str() argument
1061 remaining = (int)cats_ebitmap_len(cats, val_to_name); in cats_ebitmap_to_str()
1088 val_to_name[start], in cats_ebitmap_to_str()
1089 val_to_name[i]); in cats_ebitmap_to_str()
1092 val_to_name[start], in cats_ebitmap_to_str()
1093 val_to_name[i]); in cats_ebitmap_to_str()
[all …]
Dpolicydb_validate.c24 static int create_gap_ebitmap(char **val_to_name, uint32_t nprim, ebitmap_t *gaps) in create_gap_ebitmap() argument
31 if (!val_to_name[i]) { in create_gap_ebitmap()
40 static int validate_init(validate_t *flavor, char **val_to_name, uint32_t nprim) in validate_init() argument
43 if (create_gap_ebitmap(val_to_name, nprim, &flavor->gaps)) in validate_init()
Dmodule_to_cil.c738 char **val_to_name = pdb->sym_val_to_name[type]; in ebitmap_to_cil() local
741 cil_printf("%s ", val_to_name[i]); in ebitmap_to_cil()
826 char **val_to_name; in cil_print_attr_strs() local
831 val_to_name = pdb->p_type_val_to_name; in cil_print_attr_strs()
840 val_to_name = pdb->p_role_val_to_name; in cil_print_attr_strs()
868 cil_printf("%s ", val_to_name[i]); in cil_print_attr_strs()
877 cil_printf("%s ", val_to_name[i]); in cil_print_attr_strs()
/third_party/selinux/checkpolicy/
Dcheckpolicy.c146 struct val_to_name { struct
153 struct val_to_name *v = p; in find_perm() argument
397 struct val_to_name v; in main()
Dpolicy_define.c1534 struct val_to_name { struct
3047 struct val_to_name *v = p; in role_val_to_name_helper()
3062 struct val_to_name v; in role_val_to_name()