]> git.baikalelectronics.ru Git - kernel.git/commit
apparmor: ensure that dfa state tables have entries
authorJohn Johansen <john.johansen@canonical.com>
Tue, 31 Mar 2020 06:37:54 +0000 (23:37 -0700)
committerJohn Johansen <john.johansen@canonical.com>
Wed, 8 Apr 2020 11:42:48 +0000 (04:42 -0700)
commit208150eb0a0252af2f680d7b51c0b8a03a377ead
treeb7554ab191015fca33af785fc7affbf33fae7f91
parente4b13ca5ace1cd3780a0601c1322c12101140f0a
apparmor: ensure that dfa state tables have entries

Currently it is possible to specify a state machine table with 0 length,
this is not valid as optional tables are specified by not defining
the table as present. Further this allows by-passing the base tables
range check against the next/check tables.

Fixes: dc7325b12839 ("apparmor: dfa split verification of table headers")
Reported-by: Mike Salvatore <mike.salvatore@canonical.com>
Signed-off-by: John Johansen <john.johansen@canonical.com>
security/apparmor/match.c