Magisk/native/jni/magiskpolicy/sepolicy.h

21 lines
762 B
C
Raw Normal View History

2019-07-01 02:09:31 +00:00
#pragma once
2017-04-15 11:26:29 +00:00
#include <sepol/policydb/policydb.h>
2019-07-01 02:09:31 +00:00
__BEGIN_DECLS
2018-11-08 09:20:16 +00:00
// Global policydb
2019-11-19 10:20:18 +00:00
extern policydb_t *magisk_policydb;
2017-04-15 11:26:29 +00:00
2018-11-08 09:20:16 +00:00
int create_domain(const char *d);
int set_domain_state(const char *s, int state);
2019-11-19 10:20:18 +00:00
int add_typeattribute(const char *type, const char *attr);
2018-11-08 09:20:16 +00:00
int add_rule(const char *s, const char *t, const char *c, const char *p, int effect, int n);
int add_xperm_rule(const char *s, const char *t, const char *c, const char *range, int effect, int n);
int add_type_rule(const char *s, const char *t, const char *c, const char *d, int effect);
2019-11-19 07:04:47 +00:00
int add_filename_trans(const char *s, const char *t, const char *c, const char *d, const char *o);
int add_genfscon(const char *name, const char *path, const char *context);
2019-11-19 10:20:18 +00:00
void strip_dontaudit();
2018-11-08 09:20:16 +00:00
2019-07-01 02:09:31 +00:00
__END_DECLS