Lines Matching refs:current_mapping
26 static struct selinux_mapping *current_mapping = NULL; variable
43 free(current_mapping); in selinux_set_mapping()
44 current_mapping = NULL; in selinux_set_mapping()
60 current_mapping = (struct selinux_mapping *)calloc(++i, size); in selinux_set_mapping()
61 if (!current_mapping) in selinux_set_mapping()
68 struct selinux_mapping *p_out = current_mapping + j; in selinux_set_mapping()
113 free(current_mapping); in selinux_set_mapping()
114 current_mapping = NULL; in selinux_set_mapping()
128 return current_mapping[tclass].value; in unmap_class()
146 for (i=0; i<current_mapping[tclass].num_perms; i++) in unmap_perm()
148 kperm |= current_mapping[tclass].perms[i]; in unmap_perm()
173 if (current_mapping[i].value == kclass) in map_class()
192 for (i=0; i<current_mapping[tclass].num_perms; i++) in map_perm()
193 if (kperm & current_mapping[tclass].perms[i]) { in map_perm()
195 kperm &= ~current_mapping[tclass].perms[i]; in map_perm()
213 struct selinux_mapping *mapping = ¤t_mapping[tclass]; in map_decision()