Home
last modified time | relevance | path

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

/external/selinux/python/audit2allow/
Dsepolgen-ifgen-attr-helper.c36 struct val_to_name { struct
43 struct val_to_name *v = data; in perm_name() argument
59 struct val_to_name v; in render_access_mask()
/external/selinux/libsepol/src/
Dkernel_to_common.h111 int ebitmap_to_strs(struct ebitmap *map, struct strs *strs, char **val_to_name);
112 char *ebitmap_to_str(struct ebitmap *map, char **val_to_name, int sort);
Dutil.c32 struct val_to_name { struct
68 struct val_to_name *v = data; in perm_name()
84 struct val_to_name v; in sepol_av_to_string()
Dkernel_to_common.c357 int ebitmap_to_strs(struct ebitmap *map, struct strs *strs, char **val_to_name) in ebitmap_to_strs() argument
364 rc = strs_add(strs, val_to_name[i]); in ebitmap_to_strs()
373 char *ebitmap_to_str(struct ebitmap *map, char **val_to_name, int sort) in ebitmap_to_str() argument
384 rc = ebitmap_to_strs(map, strs, val_to_name); in ebitmap_to_str()
Dkernel_to_conf.c993 static size_t cats_ebitmap_len(struct ebitmap *cats, char **val_to_name) in cats_ebitmap_len() argument
1009 len += strlen(val_to_name[start]) + 1; in cats_ebitmap_len()
1011 len += strlen(val_to_name[i]) + 1; in cats_ebitmap_len()
1020 static char *cats_ebitmap_to_str(struct ebitmap *cats, char **val_to_name) in cats_ebitmap_to_str() argument
1029 remaining = (int)cats_ebitmap_len(cats, val_to_name); in cats_ebitmap_to_str()
1052 val_to_name[start], sep, val_to_name[i]); in cats_ebitmap_to_str()
1055 len = snprintf(p, remaining, fmt, val_to_name[start]); in cats_ebitmap_to_str()
1507 static char *attrmap_to_str(struct ebitmap *map, char **val_to_name) in attrmap_to_str() argument
1518 rc = ebitmap_to_strs(map, strs, val_to_name); in attrmap_to_str()
Dkernel_to_cil.c996 static size_t cats_ebitmap_len(struct ebitmap *cats, char **val_to_name) in cats_ebitmap_len() argument
1012 len += strlen(val_to_name[start]); in cats_ebitmap_len()
1014 len += strlen(val_to_name[i-1]) + strlen("(range ) "); in cats_ebitmap_len()
1016 len += strlen(val_to_name[i-1]) + 2; in cats_ebitmap_len()
1031 static char *cats_ebitmap_to_str(struct ebitmap *cats, char **val_to_name) in cats_ebitmap_to_str() argument
1039 remaining = (int)cats_ebitmap_len(cats, val_to_name); in cats_ebitmap_to_str()
1063 val_to_name[start], val_to_name[i]); in cats_ebitmap_to_str()
1065 len = snprintf(p, remaining, "%s ", val_to_name[start]); in cats_ebitmap_to_str()
Dmodule_to_cil.c734 char **val_to_name = pdb->sym_val_to_name[type]; in ebitmap_to_cil() local
737 cil_printf("%s ", val_to_name[i]); in ebitmap_to_cil()
822 char **val_to_name; in cil_print_attr_strs() local
827 val_to_name = pdb->p_type_val_to_name; in cil_print_attr_strs()
836 val_to_name = pdb->p_role_val_to_name; in cil_print_attr_strs()
864 cil_printf("%s ", val_to_name[i]); in cil_print_attr_strs()
873 cil_printf("%s ", val_to_name[i]); in cil_print_attr_strs()
/external/selinux/checkpolicy/
Dcheckpolicy.c146 struct val_to_name { struct
153 struct val_to_name *v = p; in find_perm() argument
399 struct val_to_name v; in main()
Dpolicy_define.c1544 struct val_to_name { struct
3046 struct val_to_name *v = p; in role_val_to_name_helper()
3061 struct val_to_name v; in role_val_to_name()