Home
last modified time | relevance | path

Searched refs:tables (Results 1 – 4 of 4) sorted by relevance

/security/apparmor/
A Dmatch.c109 if (!(tables[YYTD_ID_DEF] && tables[YYTD_ID_BASE] && in verify_table_headers()
110 tables[YYTD_ID_NXT] && tables[YYTD_ID_CHK])) in verify_table_headers()
116 if (!tables[YYTD_ID_ACCEPT]) in verify_table_headers()
122 if (!tables[YYTD_ID_ACCEPT2]) in verify_table_headers()
136 if (tables[YYTD_ID_EC] && tables[YYTD_ID_EC]->td_lolen != 256) in verify_table_headers()
233 kvfree(dfa->tables[i]); in dfa_free()
234 dfa->tables[i] = NULL; in dfa_free()
463 if (dfa->tables[YYTD_ID_EC]) { in aa_dfa_match_len()
502 if (dfa->tables[YYTD_ID_EC]) { in aa_dfa_match()
536 if (dfa->tables[YYTD_ID_EC]) { in aa_dfa_next()
[all …]
A Dpolicy_compat.c159 state_count = dfa->tables[YYTD_ID_BASE]->td_lolen; in compute_fperms()
183 state_count = xmatch->tables[YYTD_ID_BASE]->td_lolen; in compute_xmatch_perms()
258 state_count = dfa->tables[YYTD_ID_BASE]->td_lolen; in compute_perms()
285 unsigned int state_count = dfa->tables[YYTD_ID_BASE]->td_lolen; in remap_dfa_accept()
A Dpolicy_unpack.c779 if (pdb->perms && !pdb->dfa->tables[YYTD_ID_ACCEPT2]) { in unpack_pdb()
781 u32 noents = pdb->dfa->tables[YYTD_ID_ACCEPT]->td_lolen; in unpack_pdb()
782 u16 tdflags = pdb->dfa->tables[YYTD_ID_ACCEPT]->td_flags; in unpack_pdb()
785 pdb->dfa->tables[YYTD_ID_ACCEPT2] = kvzalloc(tsize, GFP_KERNEL); in unpack_pdb()
786 if (!pdb->dfa->tables[YYTD_ID_ACCEPT2]) { in unpack_pdb()
790 pdb->dfa->tables[YYTD_ID_ACCEPT2]->td_lolen = noents; in unpack_pdb()
791 pdb->dfa->tables[YYTD_ID_ACCEPT2]->td_flags = tdflags; in unpack_pdb()
1217 for (i = 0; i < dfa->tables[YYTD_ID_ACCEPT]->td_lolen; i++) { in verify_dfa_accept_index()
/security/apparmor/include/
A Dmatch.h92 #define DEFAULT_TABLE(DFA) ((u32 *)((DFA)->tables[YYTD_ID_DEF]->td_data))
93 #define BASE_TABLE(DFA) ((u32 *)((DFA)->tables[YYTD_ID_BASE]->td_data))
94 #define NEXT_TABLE(DFA) ((u32 *)((DFA)->tables[YYTD_ID_NXT]->td_data))
95 #define CHECK_TABLE(DFA) ((u32 *)((DFA)->tables[YYTD_ID_CHK]->td_data))
96 #define EQUIV_TABLE(DFA) ((u8 *)((DFA)->tables[YYTD_ID_EC]->td_data))
97 #define ACCEPT_TABLE(DFA) ((u32 *)((DFA)->tables[YYTD_ID_ACCEPT]->td_data))
98 #define ACCEPT_TABLE2(DFA) ((u32 *)((DFA)->tables[YYTD_ID_ACCEPT2]->td_data))
104 struct table_header *tables[YYTD_ID_TSIZE]; member

Completed in 9 milliseconds