Home
last modified time | relevance | path

Searched refs:basemod (Results 1 – 3 of 3) sorted by relevance

/third_party/selinux/libsepol/tests/
Dtest-cond.c30 static policydb_t basemod; variable
37 policydb_destroy(&basemod); in cond_test_init()
41 if (test_load_policy(&basemod, POLICY_BASE, 1, "test-cond", "refpolicy-base.conf")) in cond_test_init()
44 if (link_modules(NULL, &basemod, NULL, 0, 0)) { in cond_test_init()
49 if (expand_module(NULL, &basemod, &base_expanded, 0, 1)) { in cond_test_init()
57 policydb_destroy(&basemod); in cond_test_init()
64 policydb_destroy(&basemod); in cond_test_cleanup()
Dtest-neverallow.c93 policydb_t basemod, base_expanded; in test_neverallow_basic() local
132 if (test_load_policy(&basemod, POLICY_BASE, mls, "test-neverallow", "policy.conf")) in test_neverallow_basic()
135 if (link_modules(NULL, &basemod, NULL, 0, 0)) in test_neverallow_basic()
138 if (expand_module(NULL, &basemod, &base_expanded, 0, 0)) in test_neverallow_basic()
153 policydb_destroy(&basemod); in test_neverallow_basic()
Dtest-expander.c51 static policydb_t basemod; variable
142 rc = expander_policy_init(&basemod, 0, NULL, &base_expanded, &small_base_file); in expander_test_init()
177 policydb_destroy(&basemod); in expander_test_cleanup()