Home
last modified time | relevance | path

Searched refs:AVTAB_ENABLED (Results 1 – 8 of 8) sorted by relevance

/external/selinux/libsepol/src/
Dconditional.c322 cur->node->key.specified &= ~AVTAB_ENABLED; in evaluate_cond_node()
324 cur->node->key.specified |= AVTAB_ENABLED; in evaluate_cond_node()
331 cur->node->key.specified &= ~AVTAB_ENABLED; in evaluate_cond_node()
333 cur->node->key.specified |= AVTAB_ENABLED; in evaluate_cond_node()
885 if ((uint16_t) (AVTAB_ALLOWED | AVTAB_ENABLED) == in cond_compute_av()
886 (node->key.specified & (AVTAB_ALLOWED | AVTAB_ENABLED))) in cond_compute_av()
888 if ((uint16_t) (AVTAB_AUDITDENY | AVTAB_ENABLED) == in cond_compute_av()
889 (node->key.specified & (AVTAB_AUDITDENY | AVTAB_ENABLED))) in cond_compute_av()
896 if ((uint16_t) (AVTAB_AUDITALLOW | AVTAB_ENABLED) == in cond_compute_av()
897 (node->key.specified & (AVTAB_AUDITALLOW | AVTAB_ENABLED))) in cond_compute_av()
Davtab.c140 key->specified & ~(AVTAB_ENABLED | AVTAB_ENABLED_OLD); in avtab_insert()
185 key->specified & ~(AVTAB_ENABLED | AVTAB_ENABLED_OLD); in avtab_insert_nonunique()
217 key->specified & ~(AVTAB_ENABLED | AVTAB_ENABLED_OLD); in avtab_search()
252 key->specified & ~(AVTAB_ENABLED | AVTAB_ENABLED_OLD); in avtab_search_node()
285 specified &= ~(AVTAB_ENABLED | AVTAB_ENABLED_OLD); in avtab_search_node_next()
491 enabled = (val & AVTAB_ENABLED_OLD) ? AVTAB_ENABLED : 0; in avtab_read_item()
Dexpand.c1777 node->key.specified |= AVTAB_ENABLED; in expand_terule_helper()
1779 node->key.specified &= ~AVTAB_ENABLED; in expand_terule_helper()
1855 node->key.specified |= AVTAB_ENABLED; in expand_avrule_helper()
1857 node->key.specified &= ~AVTAB_ENABLED; in expand_avrule_helper()
3231 if (!node || ((k->specified & AVTAB_ENABLED) != in expand_avtab_insert()
3232 (node->key.specified & AVTAB_ENABLED))) { in expand_avtab_insert()
3243 switch (k->specified & ~AVTAB_ENABLED) { in expand_avtab_insert()
3363 (k->specified & AVTAB_ENABLED) != in expand_cond_insert()
3364 (node->key.specified & AVTAB_ENABLED)) { in expand_cond_insert()
3384 switch (k->specified & ~AVTAB_ENABLED) { in expand_cond_insert()
Dwrite.c129 val = cur->key.specified & ~AVTAB_ENABLED; in avtab_write_item()
130 if (cur->key.specified & AVTAB_ENABLED) in avtab_write_item()
146 val |= (node->key.specified & ~AVTAB_ENABLED); in avtab_write_item()
148 if (node->key.specified & AVTAB_ENABLED) in avtab_write_item()
Dservices.c1428 if (node->key.specified & AVTAB_ENABLED) { in sepol_compute_sid()
/external/selinux/checkpolicy/test/
Ddispol.c94 AVTAB_ENABLED)) in render_av_rule()
98 AVTAB_ENABLED)))) { in render_av_rule()
104 if (key->specified & AVTAB_ENABLED) in render_av_rule()
106 else if (!(key->specified & AVTAB_ENABLED)) in render_av_rule()
/external/selinux/libsepol/include/sepol/policydb/
Davtab.h69 #define AVTAB_ENABLED 0x8000 /* reserved for used in cond_avtab */ macro
/external/selinux/libsepol/cil/src/
Dcil_binary.c4052 c->node->key.specified &= ~AVTAB_ENABLED; in __cil_set_conditional_state_and_flags()
4054 c->node->key.specified |= AVTAB_ENABLED; in __cil_set_conditional_state_and_flags()
4060 c->node->key.specified &= ~AVTAB_ENABLED; in __cil_set_conditional_state_and_flags()
4062 c->node->key.specified |= AVTAB_ENABLED; in __cil_set_conditional_state_and_flags()