Magisk/native/jni/magiskpolicy/sepolicy.h

20 lines
687 B
C
Raw Normal View History

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