From a0be47ab8b2e1d7778a73a5b5a8122b1881368b5 Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Sun, 30 Jul 2017 18:13:00 +0800 Subject: [PATCH] Move headers --- magiskpolicy.h | 36 ------------------------------------ sepolicy.h | 2 -- 2 files changed, 38 deletions(-) delete mode 100644 magiskpolicy.h diff --git a/magiskpolicy.h b/magiskpolicy.h deleted file mode 100644 index 062e0bb03..000000000 --- a/magiskpolicy.h +++ /dev/null @@ -1,36 +0,0 @@ -/* magiskpolicy.h - Public API for policy patching - */ - -#ifndef _MAGISKPOLICY_H -#define _MAGISKPOLICY_H - -#include - -#define ALL NULL - -// policydb functions -int load_policydb(const char *filename); -int dump_policydb(const char *filename); -void destroy_policydb(); - -// Handy functions -int sepol_allow(char *s, char *t, char *c, char *p); -int sepol_deny(char *s, char *t, char *c, char *p); -int sepol_auditallow(char *s, char *t, char *c, char *p); -int sepol_auditdeny(char *s, char *t, char *c, char *p); -int sepol_typetrans(char *s, char *t, char *c, char *d, char *o); -int sepol_allowxperm(char *s, char *t, char *c, char *range); -int sepol_auditallowxperm(char *s, char *t, char *c, char *range); -int sepol_dontauditxperm(char *s, char *t, char *c, char *range); -int sepol_create(char *s); -int sepol_permissive(char *s); -int sepol_enforce(char *s); -int sepol_attradd(char *s, char *a); -int sepol_exists(char *source); - -// Built in rules -void sepol_min_rules(); -void sepol_med_rules(); -void sepol_full_rules(); - -#endif diff --git a/sepolicy.h b/sepolicy.h index 577cdfa05..fd5d10d10 100644 --- a/sepolicy.h +++ b/sepolicy.h @@ -4,8 +4,6 @@ #ifndef _SEPOLICY_H #define _SEPOLICY_H -#define ALL NULL - #include #include #include