Lines Matching refs:node
565 static int __cil_post_db_count_helper(struct cil_tree_node *node, uint32_t *finished, void *extra_args)
569 switch(node->flavor) {
571 struct cil_block *blk = node->data;
581 struct cil_class *class = node->data;
582 if (class->datum.nodes->head->data == node) {
589 struct cil_type *type = node->data;
590 if (type->datum.nodes->head->data == node) {
599 struct cil_typeattribute *attr = node->data;
600 if (attr->datum.nodes->head->data == node) {
608 struct cil_role *role = node->data;
609 if (role->datum.nodes->head->data == node) {
617 struct cil_user *user = node->data;
618 if (user->datum.nodes->head->data == node) {
673 static int __cil_post_db_array_helper(struct cil_tree_node *node, uint32_t *finished, void *extra_args)
677 switch(node->flavor) {
679 struct cil_block *blk = node->data;
689 struct cil_type *type = node->data;
697 struct cil_role *role = node->data;
705 struct cil_user *user= node->data;
713 cil_list_append(db->userprefixes, CIL_USERPREFIX, node->data);
717 cil_list_prepend(db->selinuxusers, CIL_SELINUXUSER, node->data);
721 cil_list_append(db->selinuxusers, CIL_SELINUXUSERDEFAULT, node->data);
731 sort->array[i] = node->data;
742 sort->array[i] = node->data;
753 sort->array[i] = node->data;
764 sort->array[i] = node->data;
775 sort->array[i] = node->data;
786 sort->array[i] = node->data;
797 sort->array[i] = node->data;
808 sort->array[i] = node->data;
819 sort->array[i] = node->data;
830 sort->array[i] = node->data;
841 sort->array[i] = node->data;
852 sort->array[i] = node->data;
863 sort->array[i] = node->data;
892 struct cil_tree_node *node = datum->nodes->head->data;
896 if (node->flavor == CIL_TYPEATTRIBUTE) {
903 } else if (node->flavor == CIL_TYPEALIAS) {
944 struct cil_tree_node *node = datum->nodes->head->data;
950 if (node->flavor == CIL_USERATTRIBUTE) {
992 struct cil_tree_node *node = datum->nodes->head->data;
996 if (node->flavor == CIL_ROLEATTRIBUTE) {
1143 struct cil_tree_node *node = datum->nodes->head->data;
1147 if (node->flavor == CIL_CATSET) {
1162 } else if (node->flavor == CIL_CATALIAS) {
1505 static int __cil_post_db_neverallow_attr_helper(struct cil_tree_node *node, uint32_t *finished, __attribute__((unused)) void *extra_args)
1507 switch (node->flavor) {
1509 struct cil_block *blk = node->data;
1520 struct cil_typeattribute *attr = node->data;
1534 static int __cil_post_db_attr_helper(struct cil_tree_node *node, uint32_t *finished, void *extra_args)
1539 switch (node->flavor) {
1541 struct cil_block *blk = node->data;
1552 struct cil_typeattribute *attr = node->data;
1561 struct cil_roleattribute *attr = node->data;
1569 struct cil_avrule *rule = node->data;
1577 struct cil_permissionx *permx = node->data;
1583 struct cil_userattribute *attr = node->data;
1604 struct cil_tree_node *node = datum->nodes->head->data;
1611 if (node->flavor == CIL_TYPE) {
1617 } else if (node->flavor == CIL_TYPEALIAS) {
1624 } else if (node->flavor == CIL_TYPEATTRIBUTE) {
1635 static int __cil_post_db_roletype_helper(struct cil_tree_node *node, uint32_t *finished, void *extra_args)
1640 switch (node->flavor) {
1642 struct cil_block *blk = node->data;
1653 struct cil_roletype *roletype = node->data;
1695 struct cil_tree_node *node = datum->nodes->head->data;
1704 if (node->flavor == CIL_ROLE) {
1710 } else if (node->flavor == CIL_ROLEATTRIBUTE) {
1721 static int __cil_post_db_userrole_helper(struct cil_tree_node *node, uint32_t *finished, void *extra_args)
1735 switch (node->flavor) {
1737 blk = node->data;
1748 userrole = node->data;
1815 static int __cil_post_db_cat_helper(struct cil_tree_node *node, uint32_t *finished, void *extra_args)
1820 switch (node->flavor) {
1822 struct cil_block *blk = node->data;
1833 struct cil_catset *catset = node->data;
1841 struct cil_senscat *senscat = node->data;
1849 rc = __evaluate_level_expression(node->data, db);
1856 rc = __evaluate_levelrange_expression(node->data, db);
1863 struct cil_user *user = node->data;
1876 struct cil_selinuxuser *selinuxuser = node->data;
1884 struct cil_rangetransition *rangetrans = node->data;
1892 struct cil_context *context = node->data;
1900 struct cil_sidcontext *sidcontext = node->data;
1908 struct cil_filecon *filecon = node->data;
1918 struct cil_ibpkeycon *ibpkeycon = node->data;
1926 struct cil_ibendportcon *ibendportcon = node->data;
1934 struct cil_portcon *portcon = node->data;
1942 struct cil_nodecon *nodecon = node->data;
1950 struct cil_genfscon *genfscon = node->data;
1958 struct cil_netifcon *netifcon = node->data;
1970 struct cil_pirqcon *pirqcon = node->data;
1978 struct cil_iomemcon *iomemcon = node->data;
1986 struct cil_ioportcon *ioportcon = node->data;
1994 struct cil_pcidevicecon *pcidevicecon = node->data;
2002 struct cil_devicetreecon *devicetreecon = node->data;
2010 struct cil_fsuse *fsuse = node->data;
2190 static int __cil_post_db_classperms_helper(struct cil_tree_node *node, uint32_t *finished, void *extra_args)
2195 switch (node->flavor) {
2197 struct cil_block *blk = node->data;
2207 rc = __evaluate_map_class(node->data, db);
2214 struct cil_classpermission *cp = node->data;
2222 struct cil_avrule *avrule = node->data;
2231 struct cil_constrain *constrain = node->data;
2248 static int __cil_post_report_conflict(struct cil_tree_node *node, uint32_t *finished, void *extra_args)
2252 if (node->flavor == CIL_BLOCK) {
2253 struct cil_block *blk = node->data;
2257 } else if (node->flavor == CIL_MACRO) {
2259 } else if (node->flavor == li->flavor) {
2260 if (node->data == li->data) {
2261 char *path = cil_tree_get_cil_path(node);
2262 cil_log(CIL_WARN, " at %s:%d\n", path, node->line);