Lines Matching refs:dfa
111 /* FIXME: split perms from dfa and match this to description
141 * map old dfa inline permissions to new format
143 #define dfa_user_allow(dfa, state) (((ACCEPT_TABLE(dfa)[state]) & 0x7f) | \
144 ((ACCEPT_TABLE(dfa)[state]) & 0x80000000))
145 #define dfa_user_audit(dfa, state) ((ACCEPT_TABLE2(dfa)[state]) & 0x7f)
146 #define dfa_user_quiet(dfa, state) (((ACCEPT_TABLE2(dfa)[state]) >> 7) & 0x7f)
147 #define dfa_user_xindex(dfa, state) \
148 (dfa_map_xindex(ACCEPT_TABLE(dfa)[state] & 0x3fff))
150 #define dfa_other_allow(dfa, state) ((((ACCEPT_TABLE(dfa)[state]) >> 14) & \
152 ((ACCEPT_TABLE(dfa)[state]) & 0x80000000))
153 #define dfa_other_audit(dfa, state) (((ACCEPT_TABLE2(dfa)[state]) >> 14) & 0x7f)
154 #define dfa_other_quiet(dfa, state) \
155 ((((ACCEPT_TABLE2(dfa)[state]) >> 7) >> 14) & 0x7f)
156 #define dfa_other_xindex(dfa, state) \
157 dfa_map_xindex((ACCEPT_TABLE(dfa)[state] >> 14) & 0x3fff)
166 * @dfa: dfa to match path names and conditionals against
167 * @perms: permission table indexed by the matched state accept entry of @dfa
170 * File permission are determined by matching a path against @dfa and then
177 struct aa_dfa *dfa;
183 struct aa_perms aa_compute_fperms(struct aa_dfa *dfa, unsigned int state,
185 unsigned int aa_str_perms(struct aa_dfa *dfa, unsigned int start,
206 aa_put_dfa(rules->dfa);