Home
last modified time | relevance | path

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

/security/apparmor/
Dmatch.c147 static int verify_table_headers(struct table_header **tables, int flags) in verify_table_headers() argument
153 if (!(tables[YYTD_ID_DEF] && tables[YYTD_ID_BASE] && in verify_table_headers()
154 tables[YYTD_ID_NXT] && tables[YYTD_ID_CHK])) in verify_table_headers()
158 state_count = tables[YYTD_ID_BASE]->td_lolen; in verify_table_headers()
160 if (!tables[YYTD_ID_ACCEPT]) in verify_table_headers()
162 if (state_count != tables[YYTD_ID_ACCEPT]->td_lolen) in verify_table_headers()
166 if (!tables[YYTD_ID_ACCEPT2]) in verify_table_headers()
168 if (state_count != tables[YYTD_ID_ACCEPT2]->td_lolen) in verify_table_headers()
171 if (state_count != tables[YYTD_ID_DEF]->td_lolen) in verify_table_headers()
175 trans_count = tables[YYTD_ID_NXT]->td_lolen; in verify_table_headers()
[all …]
Dpolicy_unpack.c1016 for (i = 0; i < dfa->tables[YYTD_ID_ACCEPT]->td_lolen; i++) { in verify_dfa_xindex()
/security/apparmor/include/
Dmatch.h90 #define DEFAULT_TABLE(DFA) ((u16 *)((DFA)->tables[YYTD_ID_DEF]->td_data))
91 #define BASE_TABLE(DFA) ((u32 *)((DFA)->tables[YYTD_ID_BASE]->td_data))
92 #define NEXT_TABLE(DFA) ((u16 *)((DFA)->tables[YYTD_ID_NXT]->td_data))
93 #define CHECK_TABLE(DFA) ((u16 *)((DFA)->tables[YYTD_ID_CHK]->td_data))
94 #define EQUIV_TABLE(DFA) ((u8 *)((DFA)->tables[YYTD_ID_EC]->td_data))
95 #define ACCEPT_TABLE(DFA) ((u32 *)((DFA)->tables[YYTD_ID_ACCEPT]->td_data))
96 #define ACCEPT_TABLE2(DFA) ((u32 *)((DFA)->tables[YYTD_ID_ACCEPT2]->td_data))
102 struct table_header *tables[YYTD_ID_TSIZE]; member