aboutsummaryrefslogtreecommitdiffstats
path: root/tools/sepolicy-analyze/utils.h
blob: 83f5a78a3f3c2b3aaa6564c6c8f469ee3a20bfcf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#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);

int load_policy(char *filename, policydb_t * policydb, struct policy_file *pf);

#endif /* UTILS_H */