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
|
|
|
|
2020-05-21 06:48:02 -07:00
|
|
|
// Internal C APIs, do not use directly
|
|
|
|
int create_domain(policydb_t *db, const char *d);
|
|
|
|
int set_domain_state(policydb_t *db, const char *s, int state);
|
|
|
|
int add_typeattribute(policydb_t *db, const char *type, const char *attr);
|
|
|
|
int add_rule(policydb_t *db, const char *s, const char *t, const char *c, const char *p, int effect,
|
|
|
|
int n);
|
|
|
|
int add_xperm_rule(policydb_t *db, const char *s, const char *t, const char *c, const char *range,
|
|
|
|
int effect, int n);
|
|
|
|
int add_type_rule(policydb_t *db, const char *s, const char *t, const char *c, const char *d,
|
|
|
|
int effect);
|
|
|
|
int add_filename_trans(policydb_t *db, const char *s, const char *t, const char *c, const char *d,
|
|
|
|
const char *o);
|
|
|
|
int add_genfscon(policydb_t *db, const char *name, const char *path, const char *context);
|
|
|
|
void strip_dontaudit(policydb_t *db);
|
2017-04-15 19:26:29 +08:00
|
|
|
|
2020-05-21 06:48:02 -07:00
|
|
|
void statement_help();
|
2018-11-08 04:20:16 -05:00
|
|
|
|
2019-06-30 19:09:31 -07:00
|
|
|
__END_DECLS
|