Home
last modified time | relevance | path

Searched refs:xmatch (Results 1 – 5 of 5) sorted by relevance

/linux/security/apparmor/
H A Dpolicy_compat.c174 static struct aa_perms *compute_xmatch_perms(struct aa_dfa *xmatch, in compute_xmatch_perms() argument
181 AA_BUG(!xmatch); in compute_xmatch_perms()
183 state_count = xmatch->tables[YYTD_ID_BASE]->td_lolen; in compute_xmatch_perms()
192 perms[state].allow = dfa_user_allow(xmatch, state); in compute_xmatch_perms()
H A Ddomain.c325 state = aa_dfa_outofband_transition(attach->xmatch->dfa, state); in aa_xattrs_match()
339 state = aa_dfa_null_transition(attach->xmatch->dfa, in aa_xattrs_match()
342 state = aa_dfa_match_len(attach->xmatch->dfa, state, in aa_xattrs_match()
344 perms = aa_lookup_perms(attach->xmatch, state); in aa_xattrs_match()
351 state = aa_dfa_outofband_transition(attach->xmatch->dfa, state); in aa_xattrs_match()
420 if (attach->xmatch->dfa) { in find_attach()
425 state = aa_dfa_leftmatch(attach->xmatch->dfa, in find_attach()
426 attach->xmatch->start[AA_CLASS_XMATCH], in find_attach()
428 perms = aa_lookup_perms(attach->xmatch, state); in find_attach()
H A Dpolicy_unpack.c769 /* default start state for xmatch and file dfa */ in unpack_pdb()
897 /* xmatch is optional and may be NULL */ in unpack_profile()
898 error = unpack_pdb(e, &profile->attach.xmatch, false, false, &info); in unpack_profile()
900 info = "bad xmatch"; in unpack_profile()
904 /* neither xmatch_len not xmatch_perms are optional if xmatch is set */ in unpack_profile()
905 if (profile->attach.xmatch->dfa) { in unpack_profile()
907 info = "missing xmatch len"; in unpack_profile()
911 profile->attach.xmatch->start[AA_CLASS_XMATCH] = DFA_START; in unpack_profile()
912 if (!profile->attach.xmatch->perms) { in unpack_profile()
913 error = aa_compat_map_xmatch(profile->attach.xmatch); in unpack_profile()
[all...]
H A Dpolicy.c239 aa_put_pdb(attach->xmatch); in free_attachment()
658 profile->attach.xmatch = aa_get_pdb(nullpdb); in aa_alloc_null()
H A Dapparmorfs.c1107 else if (profile->attach.xmatch->dfa) in seq_profile_attach_show()