#include <linux/ctype.h>
#include <linux/errno.h>
#include "include/lib.h"
#include "include/policy_unpack.h"
#include "include/policy_compat.h"
static u32 dfa_map_xindex(u16 mask)
{ … }
#define dfa_user_allow(dfa, state) …
#define dfa_user_xbits(dfa, state) …
#define dfa_user_audit(dfa, state) …
#define dfa_user_quiet(dfa, state) …
#define dfa_user_xindex(dfa, state) …
#define dfa_other_allow(dfa, state) …
#define dfa_other_xbits(dfa, state) …
#define dfa_other_audit(dfa, state) …
#define dfa_other_quiet(dfa, state) …
#define dfa_other_xindex(dfa, state) …
static u32 map_old_perms(u32 old)
{ … }
static void compute_fperms_allow(struct aa_perms *perms, struct aa_dfa *dfa,
aa_state_t state)
{ … }
static struct aa_perms compute_fperms_user(struct aa_dfa *dfa,
aa_state_t state)
{ … }
static struct aa_perms compute_fperms_other(struct aa_dfa *dfa,
aa_state_t state)
{ … }
static struct aa_perms *compute_fperms(struct aa_dfa *dfa,
u32 *size)
{ … }
static struct aa_perms *compute_xmatch_perms(struct aa_dfa *xmatch,
u32 *size)
{ … }
static u32 map_other(u32 x)
{ … }
static u32 map_xbits(u32 x)
{ … }
static struct aa_perms compute_perms_entry(struct aa_dfa *dfa,
aa_state_t state,
u32 version)
{ … }
static struct aa_perms *compute_perms(struct aa_dfa *dfa, u32 version,
u32 *size)
{ … }
static void remap_dfa_accept(struct aa_dfa *dfa, unsigned int factor)
{ … }
int aa_compat_map_xmatch(struct aa_policydb *policy)
{ … }
int aa_compat_map_policy(struct aa_policydb *policy, u32 version)
{ … }
int aa_compat_map_file(struct aa_policydb *policy)
{ … }