Home | History | Annotate | Download | only in src

Lines Matching refs:policydb

8 #include <sepol/policydb/policydb.h>
35 static int load_users(struct policydb *policydb, const char *path)
87 usrdatum = hashtab_search(policydb->p_users.table, q);
112 usrdatum->s.value = ++policydb->p_users.nprim;
114 if (hashtab_insert(policydb->p_users.table,
163 roldatum = hashtab_search(policydb->p_roles.table, q);
184 if (policydb->mls) {
227 if (mls_context_to_sid(policydb, oldc, &r, &context) <
273 if (mls_context_to_sid(policydb, oldc, &r, &context) <
294 struct policydb policydb;
298 if (policydb_init(&policydb))
300 if (policydb_from_image(NULL, data, len, &policydb) < 0)
305 if (load_users(&policydb, path) < 0)
309 if (policydb_to_image(NULL, &policydb, newdata, newlen) < 0)
312 policydb_destroy(&policydb);
316 policydb_destroy(&policydb);
322 int hidden sepol_genusers_policydb(policydb_t * policydb, const char *usersdir)
328 if (load_users(policydb, path) < 0) {
333 if (policydb_reindex_users(policydb) < 0) {