android_system_sepolicy/tests/include/sepol_wrap.h
Jeff Vander Stoep 1b8284444c Assert types labeled in genfs_contexts have correct attributes
Types in sysfs should have the sysfs_type attribute, types in
debugfs and tracefs should have the debugfs_type attribute.

TODO: Test that files in procfs have the proc_type attribute.
TODO: Assert these tests in CTS.

Bug: 74182216
Test: build - these are build-time tests.
Change-Id: Icf0ff2a26c05f94da421ba23df0b92d8eef906bf
2018-03-23 14:34:46 -07:00

26 lines
840 B
C

#ifdef __cplusplus
extern "C" {
#endif
int get_allow_rule(char *out, size_t len, void *policydbp, void *avtab_iterp);
void *load_policy(const char *policy_path);
void destroy_policy(void *policydbp);
void *init_avtab(void *policydbp);
void *init_cond_avtab(void *policydbp);
void destroy_avtab(void *avtab_iterp);
void *init_expanded_avtab(void *policydbp);
void *init_expanded_cond_avtab(void *policydbp);
void destroy_expanded_avtab(void *avtab_iterp);
int get_type(char *out, size_t max_size, void *policydbp, void *type_iterp);
void *init_type_iter(void *policydbp, const char *type, bool is_attr);
void destroy_type_iter(void *type_iterp);
void *init_genfs_iter(void *policydbp);
int get_genfs(char *out, size_t max_size, void *policydbp, void *genfs_iterp);
void destroy_genfs_iter(void *genfs_iterp);
#ifdef __cplusplus
}
#endif