utils.h 361 Bytes
Newer Older
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 */