Lines Matching refs:role
55 static void only_dominates_self(policydb_t * p, role_datum_t * role) in only_dominates_self() argument
61 ebitmap_for_each_bit(&role->dominates, tnode, i) { in only_dominates_self()
64 CU_ASSERT(i == role->s.value - 1); in only_dominates_self()
73 role_datum_t *role; in base_role_tests() local
85 role = test_role_type_set(base, "g_b_role_1", NULL, types, 1, 0); in base_role_tests()
87 only_dominates_self(base, role); in base_role_tests()
95 role = test_role_type_set(base, "o1_b_role_1", decl, types, 1, 0); in base_role_tests()
97 only_dominates_self(base, role); in base_role_tests()
102 role_datum_t *role; in module_role_tests() local
116 role = test_role_type_set(base, "g_m1_role_1", NULL, types, 1, 0); in module_role_tests()
118 only_dominates_self(base, role); in module_role_tests()
126 role = test_role_type_set(base, "o1_m1_role_1", decl, types, 1, 0); in module_role_tests()
128 only_dominates_self(base, role); in module_role_tests()
139 role = test_role_type_set(base, "g_b_role_2", NULL, types, 2, 0); in module_role_tests()
141 only_dominates_self(base, role); in module_role_tests()
152 role = test_role_type_set(base, "g_b_role_3", NULL, types, 3, 0); in module_role_tests()
154 only_dominates_self(base, role); in module_role_tests()
162 role = test_role_type_set(base, "o1_b_role_2", NULL, types, 1, 0); in module_role_tests()
164 …role = test_role_type_set(base, "o1_b_role_2", test_find_decl_by_sym(base, SYM_TYPES, "tag_o1_b"),… in module_role_tests()
166 only_dominates_self(base, role); in module_role_tests()
174 role = test_role_type_set(base, "g_b_role_4", NULL, types, 1, 0); in module_role_tests()
176 …role = test_role_type_set(base, "g_b_role_4", test_find_decl_by_sym(base, SYM_TYPES, "tag_o2_m1"),… in module_role_tests()
178 only_dominates_self(base, role); in module_role_tests()
186 …role = test_role_type_set(base, "o3_b_role_1", test_find_decl_by_sym(base, SYM_TYPES, "tag_o3_b"),… in module_role_tests()
188 …role = test_role_type_set(base, "o3_b_role_1", test_find_decl_by_sym(base, SYM_TYPES, "tag_o3_m1")… in module_role_tests()
190 only_dominates_self(base, role); in module_role_tests()
199 …role = test_role_type_set(base, "o4_b_role_1", test_find_decl_by_sym(base, SYM_TYPES, "tag_o4_b"),… in module_role_tests()
202 role = test_role_type_set(base, "o4_b_role_1", NULL, types, 2, 0); in module_role_tests()
204 only_dominates_self(base, role); in module_role_tests()