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/
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.h105 int ebitmap_to_strs(struct ebitmap *map, struct strs *strs, char **val_to_name);
106 char *ebitmap_to_str(struct ebitmap *map, char **val_to_name, int sort);
Dkernel_to_common.c351 int ebitmap_to_strs(struct ebitmap *map, struct strs *strs, char **val_to_name) in ebitmap_to_strs() argument
360 rc = strs_add(strs, val_to_name[i]); in ebitmap_to_strs()
369 char *ebitmap_to_str(struct ebitmap *map, char **val_to_name, int sort) in ebitmap_to_str() argument
380 rc = ebitmap_to_strs(map, strs, val_to_name); in ebitmap_to_str()
Dkernel_to_conf.c957 static size_t cats_ebitmap_len(struct ebitmap *cats, char **val_to_name) in cats_ebitmap_len() argument
976 len += strlen(val_to_name[start]) + 1; in cats_ebitmap_len()
978 len += strlen(val_to_name[i]) + 1; in cats_ebitmap_len()
987 static char *cats_ebitmap_to_str(struct ebitmap *cats, char **val_to_name) in cats_ebitmap_to_str() argument
996 remaining = (int)cats_ebitmap_len(cats, val_to_name); in cats_ebitmap_to_str()
1022 val_to_name[start], sep, val_to_name[i]); in cats_ebitmap_to_str()
1025 len = snprintf(p, remaining, fmt, val_to_name[start]); in cats_ebitmap_to_str()
1479 static char *attrmap_to_str(struct ebitmap *map, char **val_to_name) in attrmap_to_str() argument
1490 rc = ebitmap_to_strs(map, strs, val_to_name); in attrmap_to_str()
Dkernel_to_cil.c972 static size_t cats_ebitmap_len(struct ebitmap *cats, char **val_to_name) in cats_ebitmap_len() argument
991 len += strlen(val_to_name[start]); in cats_ebitmap_len()
993 len += strlen(val_to_name[i-1]) + strlen("(range ) "); in cats_ebitmap_len()
995 len += strlen(val_to_name[i-1]) + 2; in cats_ebitmap_len()
1010 static char *cats_ebitmap_to_str(struct ebitmap *cats, char **val_to_name) in cats_ebitmap_to_str() argument
1018 remaining = (int)cats_ebitmap_len(cats, val_to_name); in cats_ebitmap_to_str()
1045 val_to_name[start], val_to_name[i]); in cats_ebitmap_to_str()
1047 len = snprintf(p, remaining, "%s ", val_to_name[start]); in cats_ebitmap_to_str()
Dmodule_to_cil.c722 char **val_to_name = pdb->sym_val_to_name[type]; in ebitmap_to_cil() local
728 cil_printf("%s ", val_to_name[i]); in ebitmap_to_cil()
813 char **val_to_name; in cil_print_attr_strs() local
818 val_to_name = pdb->p_type_val_to_name; in cil_print_attr_strs()
827 val_to_name = pdb->p_role_val_to_name; in cil_print_attr_strs()
858 cil_printf("%s ", val_to_name[i]); in cil_print_attr_strs()
870 cil_printf("%s ", val_to_name[i]); in cil_print_attr_strs()
/external/selinux/checkpolicy/
Dcheckpolicy.c143 struct val_to_name { struct
150 struct val_to_name *v = p; in find_perm() argument
395 struct val_to_name v; in main()
Dpolicy_define.c1539 struct val_to_name { struct
3056 struct val_to_name *v = p; in role_val_to_name_helper()
3071 struct val_to_name v; in role_val_to_name()