Home
last modified time | relevance | path

Searched refs:bool_val_to_struct (Results 1 – 3 of 3) sorted by relevance

/Linux-v5.4/security/selinux/ss/
Dconditional.c37 s[sp] = p->bool_val_to_struct[cur->bool - 1]->state; in cond_evaluate_expr()
121 p->bool_val_to_struct = NULL; in cond_policydb_init()
169 kfree(p->bool_val_to_struct); in cond_policydb_destroy()
176 kfree(p->bool_val_to_struct); in cond_init_bool_indexes()
177 p->bool_val_to_struct = kmalloc_array(p->p_bools.nprim, in cond_init_bool_indexes()
178 sizeof(*p->bool_val_to_struct), in cond_init_bool_indexes()
180 if (!p->bool_val_to_struct) in cond_init_bool_indexes()
204 p->bool_val_to_struct[booldatum->value - 1] = booldatum; in cond_index_bool()
Dpolicydb.h271 struct cond_bool_datum **bool_val_to_struct; member
Dservices.c2831 (*values)[i] = policydb->bool_val_to_struct[i]->state; in security_get_bools()
2870 if (!!values[i] != policydb->bool_val_to_struct[i]->state) { in security_set_bools()
2876 policydb->bool_val_to_struct[i]->state, in security_set_bools()
2881 policydb->bool_val_to_struct[i]->state = 1; in security_set_bools()
2883 policydb->bool_val_to_struct[i]->state = 0; in security_set_bools()
2921 rc = policydb->bool_val_to_struct[index]->state; in security_get_bool_value()