Lines Matching defs:policydb
18 #include <sepol/policydb.h>
37 sepol_policydb_t *policydb;
48 sepol_policydb_free(dbase->policydb);
94 sepol_policydb_t *policydb = NULL;
107 if (sepol_policydb_create(&policydb) < 0) {
108 ERR(handle, "could not create policydb object");
113 * ENOENT is not fatal - we just create an empty policydb */
121 /* If the file was opened successfully, read a policydb */
132 if (sepol_policydb_read(policydb, pf) < 0)
144 /* Update the database policydb */
145 dbase->policydb = policydb;
152 sepol_policydb_free(policydb);
197 tmp_dbase->policydb = NULL;
220 /* Attach to a shared policydb.
225 sepol_policydb_t * policydb)
230 dbase->policydb = policydb;
247 if (dbase->rptable->add(handle->sepolh, dbase->policydb, key, data) < 0)
263 if (dbase->rptable->set(handle->sepolh, dbase->policydb, key, data) < 0)
281 dbase->policydb, key, data) < 0)
325 dbase->policydb, key, response) < 0)
341 dbase->policydb, key, response) < 0)
357 dbase->policydb, response) < 0)
374 dbase->policydb, fn, arg) < 0)
416 dbase->policydb, &tmp_count) < 0)
429 dbase->policydb, list_handler,