Lines Matching refs:modpolicydb
154 policydb_t modpolicydb; in main() local
235 sepol_set_policydb(&modpolicydb); in main()
239 if (read_binary_policy(&modpolicydb, file, argv[0]) == -1) { in main()
243 if (policydb_init(&modpolicydb)) { in main()
248 modpolicydb.policy_type = policy_type; in main()
249 modpolicydb.mls = mlspol; in main()
250 modpolicydb.handle_unknown = handle_unknown; in main()
252 if (read_source_policy(&modpolicydb, file, argv[0]) == -1) { in main()
256 if (hierarchy_check_constraints(NULL, &modpolicydb)) { in main()
262 char *mod_name = modpolicydb.name; in main()
280 if (modpolicydb.policy_type == POLICY_BASE && !cil) { in main()
288 if (link_modules(NULL, &modpolicydb, NULL, 0, 0)) { in main()
292 if (expand_module(NULL, &modpolicydb, &kernpolicydb, 0, 1)) { in main()
299 if (policydb_load_isids(&modpolicydb, &sidtab)) in main()
313 if (write_binary_policy(&modpolicydb, outfp) != 0) { in main()
318 if (sepol_module_policydb_to_cil(outfp, &modpolicydb, 0) != 0) { in main()
330 policydb_destroy(&modpolicydb); in main()