Go to the source code of this file.
#define ACCEPT1_FLAGS |
( |
|
X | ) |
((X) & 0x3f) |
#define byte_to_byte |
( |
|
X | ) |
(X) |
#define DFA_FLAG_VERIFY_STATES 0x1000 |
#define DFA_VALID_PERM2_MASK 0xffffffff |
#define DFA_VALID_PERM_MASK 0xffffffff |
Value:do { \
for (__i = 0; __i <
LEN; __i++) { \
__t[__i] = NTOHX(__b[__i]); \
} \
} while (0)
Definition at line 99 of file match.h.
#define YYTD_ID_ACCEPT2 6 |
#define YYTH_DEF_RECURSE 0x1 /* DEF Table is recursive */ |
#define YYTH_MAGIC 0x1B5E783D |
The format used for transition tables is based on the GNU flex table file format (–tables-file option; see Table File Format in the flex info pages and the flex sources for documentation). The magic number used in the header is 0x1B5E783D instead of 0xF13C57B1 though, because the YY_ID_CHK (check) and YY_ID_DEF (default) tables are used slightly differently (see the apparmor-parser package).
Definition at line 36 of file match.h.
aa_dfa_free_kref - free aa_dfa by kref (called by aa_put_dfa) : kref callback for freeing of a dfa (NOT NULL)
Definition at line 184 of file match.c.
aa_dfa_match - traverse to find state stops at : the dfa to match against (NOT NULL) : the state of the dfa to start matching in : the null terminated string of bytes to match against the dfa (NOT NULL)
aa_dfa_match will match against the dfa and return the state it finished matching in. The final state can be used to look up the accepting label, or as the start state of a continuing match.
Returns: final state reached after input is consumed
Definition at line 349 of file match.c.
aa_dfa_match_len - traverse to find state stops at : the dfa to match against (NOT NULL) : the state of the dfa to start matching in : the string of bytes to match against the dfa (NOT NULL) : length of the string of bytes to match
aa_dfa_match_len will match against the dfa and return the state it finished matching in. The final state can be used to look up the accepting label, or as the start state of a continuing match.
This function will happily match again the 0 byte and only finishes when input is consumed.
Returns: final state reached after input is consumed
Definition at line 299 of file match.c.
aa_dfa_next - step one character to the next state in the dfa : the dfa to tranverse (NOT NULL) : the state to start in
: the input character to transition on
aa_dfa_match will step through the dfa by one input character
Returns: state reach after input
Definition at line 397 of file match.c.
aa_dfa_unpack - unpack the binary tables of a serialized dfa : aligned serialized stream of data to unpack (NOT NULL) : size of data to unpack : flags controlling what type of accept tables are acceptable
Unpack a dfa that has been serialized. To find information on the dfa format look in Documentation/security/apparmor.txt Assumes the dfa stream has been aligned on a 8 byte boundary
Returns: an unpacked dfa ready for matching or ERR_PTR on failure
Definition at line 202 of file match.c.