Searched refs:booldatum (Results 1 - 2 of 2) sorted by relevance

/linux-4.4.14/security/selinux/ss/
H A Dconditional.c196 struct cond_bool_datum *booldatum; cond_index_bool() local
199 booldatum = datum; cond_index_bool()
202 if (!booldatum->value || booldatum->value > p->p_bools.nprim) cond_index_bool()
206 if (flex_array_put_ptr(fa, booldatum->value - 1, key, cond_index_bool()
209 p->bool_val_to_struct[booldatum->value - 1] = booldatum; cond_index_bool()
224 struct cond_bool_datum *booldatum; cond_read_bool() local
229 booldatum = kzalloc(sizeof(struct cond_bool_datum), GFP_KERNEL); cond_read_bool()
230 if (!booldatum) cond_read_bool()
237 booldatum->value = le32_to_cpu(buf[0]); cond_read_bool()
238 booldatum->state = le32_to_cpu(buf[1]); cond_read_bool()
241 if (!bool_isvalid(booldatum)) cond_read_bool()
254 rc = hashtab_insert(h, key, booldatum); cond_read_bool()
260 cond_destroy_bool(key, booldatum, NULL); cond_read_bool()
496 struct cond_bool_datum *booldatum = datum; cond_write_bool() local
504 buf[0] = cpu_to_le32(booldatum->value); cond_write_bool()
505 buf[1] = cpu_to_le32(booldatum->state); cond_write_bool()
H A Dservices.c2701 struct cond_bool_datum *booldatum; security_preserve_bools() local
2708 booldatum = hashtab_search(p->p_bools.table, bnames[i]); security_preserve_bools()
2709 if (booldatum) security_preserve_bools()
2710 booldatum->state = bvalues[i]; security_preserve_bools()

Completed in 249 milliseconds