Lines Matching refs:kind
976 int __cil_insert_type_rule(policydb_t *pdb, uint32_t kind, uint32_t src, uint32_t tgt, uint32_t obj, uint32_t res, cond_node_t *cond_node, enum cil_flavor cond_flavor)
987 switch (kind) {
1058 uint16_t kind = cil_rule->rule_kind;
1096 rc = __cil_insert_type_rule(pdb, kind, sepol_src->s.value, sepol_tgt->s.value, sepol_obj->s.value, sepol_result->s.value, cond_node, cond_flavor);
1271 int __cil_insert_avrule(policydb_t *pdb, uint32_t kind, uint32_t src, uint32_t tgt, uint32_t obj, uint32_t data, cond_node_t *cond_node, enum cil_flavor cond_flavor)
1282 switch (kind) {
1304 if (kind == CIL_AVRULE_DONTAUDIT)
1318 int __cil_avrule_expand_helper(policydb_t *pdb, uint16_t kind, struct cil_symtab_datum *src, struct cil_symtab_datum *tgt, struct cil_classperms *cp, cond_node_t *cond_node, enum cil_flavor cond_flavor)
1337 if (kind == CIL_AVRULE_DONTAUDIT) {
1347 rc = __cil_insert_avrule(pdb, kind, sepol_src->s.value, sepol_tgt->s.value, sepol_class->s.value, data, cond_node, cond_flavor);
1359 int __cil_avrule_expand(policydb_t *pdb, uint16_t kind, struct cil_symtab_datum *src, struct cil_symtab_datum *tgt, struct cil_list *classperms, cond_node_t *cond_node, enum cil_flavor cond_flavor)
1368 rc = __cil_avrule_expand_helper(pdb, kind, src, tgt, cp, cond_node, cond_flavor);
1376 rc = __cil_avrule_expand(pdb, kind, src, tgt, cmp->classperms, cond_node, cond_flavor);
1385 rc = __cil_avrule_expand(pdb, kind, src, tgt, cp->classperms, cond_node, cond_flavor);
1401 uint16_t kind = cil_avrule->rule_kind;
1427 rc = __cil_avrule_expand(pdb, kind, src, src, classperms, cond_node, cond_flavor);
1435 rc = __cil_avrule_expand(pdb, kind, src, tgt, classperms, cond_node, cond_flavor);
1610 int __cil_avrulex_ioctl_to_hashtable(hashtab_t h, uint16_t kind, uint32_t src, uint32_t tgt, uint32_t obj, ebitmap_t *xperms)
1617 switch (kind) {
1665 int __cil_avrulex_to_hashtable_helper(policydb_t *pdb, uint16_t kind, struct cil_symtab_datum *src, struct cil_symtab_datum *tgt, struct cil_permissionx *permx, struct cil_args_binary *args)
1686 switch (permx->kind) {
1688 rc = __cil_avrulex_ioctl_to_hashtable(args->avrulex_ioctl_table, kind, sepol_src->s.value, sepol_tgt->s.value, sepol_obj->s.value, permx->perms);
1708 uint16_t kind;
1723 kind = cil_avrulex->rule_kind;
1735 rc = __cil_avrulex_to_hashtable_helper(pdb, kind, src, src, cil_avrulex->perms.x.permx, args);
1741 rc = __cil_avrulex_to_hashtable_helper(pdb, kind, src, tgt, cil_avrulex->perms.x.permx, args);
4164 switch (permx->kind) {
4227 static avrule_t *__cil_init_sepol_avrule(uint32_t kind, struct cil_tree_node *node)
4232 avrule->specified = kind;
4300 switch (px->kind) {
4316 static void __cil_print_rule(const char *pad, const char *kind, struct cil_avrule *avrule)
4318 cil_log(CIL_ERR,"%s(%s ", pad, kind);
4389 uint32_t kind;
4395 kind = AVRULE_NEVERALLOW;
4397 kind = AVRULE_XPERMS_NEVERALLOW;
4400 rule = __cil_init_sepol_avrule(kind, node);