Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\apparmor\match.c Create Date:2022-07-28 19:51:04
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:verify_table_headers - verify that the tables headers are as expected*@tables - array of dfa tables to check (NOT NULL)*@flags: flags controlling what type of accept table are acceptable* Assumes dfa has gone through the first pass verification done by

Proto:static int verify_table_headers(struct table_header **tables, int flags)

Type:int

Parameter:

TypeParameterName
struct table_header **tables
intflags
147  error = -EPROTO
150  If Not ( tables[YYTD_ID_DEF] && tables[YYTD_ID_BASE] && tables[YYTD_ID_NXT] && tables[YYTD_ID_CHK]) Then Go to out
155  state_count = td_lolen
156  If ACCEPT & ACCEPT2 tables gets 6 dedicated flags, YYTD_DATAX define the* first flags(flags) Then
157  If Not tables[The YYTD_ID are one less than flex table mappings. The flex id* has 1 subtracted at table load time, this allows us to directly use the* ID's as indexes.] Then Go to out
159  If state_count != td_lolen Then Go to out
162  If ACCEPT2_FLAGS(flags) Then
163  If Not tables[YYTD_ID_ACCEPT2] Then Go to out
165  If state_count != td_lolen Then Go to out
168  If state_count != td_lolen Then Go to out
172  trans_count = td_lolen
173  If trans_count != td_lolen Then Go to out
177  If tables[YYTD_ID_EC] && td_lolen != 256 Then Go to out
180  error = 0
181  out :
182  Return error
Caller
NameDescribe
aa_dfa_unpackaa_dfa_unpack - unpack the binary tables of a serialized dfa*@blob: aligned serialized stream of data to unpack (NOT NULL)*@size: size of data to unpack*@flags: flags controlling what type of accept tables are acceptable