Home | History | Annotate | Download | only in tests

Lines Matching refs:policydb

27 #include <sepol/policydb/policydb.h>
28 #include <sepol/policydb/link.h>
29 #include <sepol/policydb/expand.h>
30 #include <sepol/policydb/conditional.h>
37 static policydb_t policydb;
46 * Description: Initialize the policydb (policy data base structure)
51 if (policydb_init(&policydb)) {
66 * Description: Destroys policydb structure
70 policydb_destroy(&policydb);
122 * A binary policy is read into the policydb structure, the
132 /* Reset policydb for re-use */
133 policydb_destroy(&policydb);
137 if (read_binary_policy(POLICY_BIN_HI, &policydb) != 0) {
144 policydb.mls = mls ? 1 : 0;
146 for (hi = policydb.policyvers; hi >= POLICYDB_VERSION_MIN; hi--) {
148 version = policydb.policyvers;
154 policydb.policyvers = lo;
157 if (write_binary_policy(POLICY_BIN_LO, &policydb) != 0) {
184 policydb.policyvers = version;
200 * Description: Get a filename, open file and read binary policy into policydb
238 * Description: open file and write the binary policy from policydb structure.