aboutsummaryrefslogtreecommitdiffstats
path: root/tools/sepolicy-analyze/utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/sepolicy-analyze/utils.h')
-rw-r--r--tools/sepolicy-analyze/utils.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/sepolicy-analyze/utils.h b/tools/sepolicy-analyze/utils.h
new file mode 100644
index 0000000..83f5a78
--- /dev/null
+++ b/tools/sepolicy-analyze/utils.h
@@ -0,0 +1,16 @@
+#ifndef UTILS_H
+#define UTILS_H
+
+#include <stdbool.h>
+#include <stdint.h>
+#include <sepol/policydb/avtab.h>
+#include <sepol/policydb/policydb.h>
+
+
+extern bool USAGE_ERROR;
+
+void display_allow(policydb_t *policydb, avtab_key_t *key, int idx, uint32_t perms);
+
+int load_policy(char *filename, policydb_t * policydb, struct policy_file *pf);
+
+#endif /* UTILS_H */