ee62756a7c
Test: check sepolicy-analyze tool can work well sepolicy-analyze out/target/product/<board>/root/sepolicy typecmp -e sepolicy-analyze out/target/product/<board>/root/sepolicy typecmp -d sepolicy-analyze out/target/product/<board>/root/sepolicy dups sepolicy-analyze out/target/product/<board>/root/sepolicy permissive sepolicy-analyze out/target/product/<board>/root/sepolicy booleans sepolicy-analyze out/target/product/<board>/root/sepolicy attribute <name> Change-Id: I09d30967f00062c6a807ae4711ccc87b0fd6064c
16 lines
362 B
C
16 lines
362 B
C
#ifndef UTILS_H
|
|
#define UTILS_H
|
|
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
#include <sepol/policydb/avtab.h>
|
|
#include <sepol/policydb/policydb.h>
|
|
|
|
|
|
extern bool USAGE_ERROR;
|
|
|
|
void display_allow(policydb_t *policydb, avtab_key_t *key, int idx, uint32_t perms);
|
|
|
|
bool load_policy(char *filename, policydb_t * policydb, struct policy_file *pf);
|
|
|
|
#endif /* UTILS_H */
|