• Home
  • Raw
  • Download

Lines Matching refs:base

70 void base_role_tests(policydb_t * base)  in base_role_tests()  argument
81 decls[0] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_g_b"))->decl_id; in base_role_tests()
82 test_sym_presence(base, "g_b_role_1", SYM_ROLES, SCOPE_DECL, decls, 1); in base_role_tests()
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()
90 decl = test_find_decl_by_sym(base, SYM_TYPES, "tag_o1_b"); in base_role_tests()
92 test_sym_presence(base, "o1_b_role_1", SYM_ROLES, SCOPE_DECL, decls, 1); 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()
100 void module_role_tests(policydb_t * base) in module_role_tests() argument
112 decls[0] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_g_m1"))->decl_id; in module_role_tests()
113 test_sym_presence(base, "g_m1_role_1", SYM_ROLES, SCOPE_DECL, decls, 1); in module_role_tests()
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()
121 decl = test_find_decl_by_sym(base, SYM_TYPES, "tag_o1_m1"); in module_role_tests()
123 test_sym_presence(base, "o1_m1_role_1", SYM_ROLES, SCOPE_DECL, decls, 1); 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()
134 decls[0] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_g_b"))->decl_id; in module_role_tests()
135 test_sym_presence(base, "g_b_role_2", SYM_ROLES, SCOPE_DECL, decls, 1); 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()
144 decls[0] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_g_b"))->decl_id; in module_role_tests()
145 decls[1] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_g_m1"))->decl_id; in module_role_tests()
146 decls[2] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_g_m2"))->decl_id; in module_role_tests()
147 test_sym_presence(base, "g_b_role_3", SYM_ROLES, SCOPE_DECL, decls, 3); 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()
157 decls[0] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_o1_b"))->decl_id; in module_role_tests()
158 decls[1] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_g_m1"))->decl_id; in module_role_tests()
159 test_sym_presence(base, "o1_b_role_2", SYM_ROLES, SCOPE_DECL, decls, 2); 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()
169 decls[0] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_g_b"))->decl_id; in module_role_tests()
170 decls[1] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_o2_m1"))->decl_id; in module_role_tests()
171 test_sym_presence(base, "g_b_role_4", SYM_ROLES, SCOPE_DECL, decls, 2); 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()
181 decls[0] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_o3_b"))->decl_id; in module_role_tests()
182 decls[1] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_o3_m1"))->decl_id; in module_role_tests()
183 test_sym_presence(base, "o3_b_role_1", SYM_ROLES, SCOPE_DECL, decls, 2); 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()
193 decls[0] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_o4_b"))->decl_id; in module_role_tests()
194 decls[1] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_g_m1"))->decl_id; in module_role_tests()
195 decls[2] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_g_m2"))->decl_id; in module_role_tests()
196 test_sym_presence(base, "o4_b_role_1", SYM_ROLES, SCOPE_DECL, decls, 3); 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()