20 lines
687 B
C
Raw Normal View History

2019-06-30 19:09:31 -07:00
#pragma once
2017-04-15 19:26:29 +08:00
#include <sepol/policydb/policydb.h>
2019-06-30 19:09:31 -07:00
__BEGIN_DECLS
2018-11-08 04:20:16 -05:00
// Global policydb
2019-11-19 05:20:18 -05:00
extern policydb_t *magisk_policydb;
2017-04-15 19:26:29 +08:00
2018-11-08 04:20:16 -05:00
int create_domain(const char *d);
int set_domain_state(const char *s, int state);
2019-11-19 05:20:18 -05:00
int add_typeattribute(const char *type, const char *attr);
2018-11-08 04:20:16 -05: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 02:04:47 -05:00
int add_filename_trans(const char *s, const char *t, const char *c, const char *d, const char *o);
2019-11-19 05:20:18 -05:00
void strip_dontaudit();
2018-11-08 04:20:16 -05:00
2019-06-30 19:09:31 -07:00
__END_DECLS