Home | History | Annotate | Download | only in test

Lines Matching defs:policydb

30 #include <sepol/policydb/policydb.h>
31 #include <sepol/policydb/services.h>
32 #include <sepol/policydb/conditional.h>
33 #include <sepol/policydb/flask.h>
34 #include <sepol/policydb/link.h>
35 #include <sepol/policydb/module.h>
36 #include <sepol/policydb/util.h>
37 #include <sepol/policydb/polcaps.h>
57 static policydb_t policydb;
302 display_id(&policydb, fp, SYM_TYPES, type->s.value - 1, "");
321 display_id(&policydb, fp, SYM_TYPES, i, "");
327 display_id(&policydb, fp, SYM_TYPES, type->s.value - 1, "");
506 display_id(&policydb, fp, SYM_ROLES, role->s.value - 1, "");
508 display_type_set(&role->types, 0, &policydb, fp);
601 display_expr(&policydb, cond->expr, out_fp);
608 &policydb, out_fp);
615 &policydb, out_fp);
674 avrule_block_t *block = policydb.global;
847 policydb_init(&policydb);
848 if (read_policy(argv[1], &policydb)) {
855 if (policydb.policy_type != POLICY_BASE &&
856 policydb.policy_type != POLICY_MOD) {
862 if (policydb_index_classes(&policydb)) {
867 if (policydb_index_others(NULL, &policydb, 1)) {
872 if (policydb.policy_type == POLICY_BASE) {
876 printf("Module name: %s\n", policydb.name);
877 printf("Module version: %s\n", policydb.version);
890 &policydb, out_fp);
895 &policydb, out_fp);
898 display_users(&policydb, out_fp);
901 display_bools(&policydb, out_fp);
905 (policydb.p_roles.table, role_display_callback,
910 if (display_types(&policydb, out_fp)) {
918 &policydb, out_fp);
923 &policydb, out_fp);
929 display_initial_sids(&policydb, out_fp);
934 &policydb, out_fp);
939 &policydb, out_fp);
942 display_policycaps(&policydb, out_fp);
946 display_handle_unknown(&policydb, out_fp);
966 &policydb, out_fp);
969 link_module(&policydb, out_fp);
972 policydb_destroy(&policydb);