apparmor: add outofband transition and use it in xattr match
authorJohn Johansen <john.johansen@canonical.com>
Tue, 30 Jul 2019 09:42:13 +0000 (02:42 -0700)
committerJohn Johansen <john.johansen@canonical.com>
Tue, 21 Jan 2020 14:00:20 +0000 (06:00 -0800)
commit0df34a645bae00c86f383fb063cd3840862837bf
tree1c9c5f5c44683506e63f718ffa51541e802ec1a4
parentf05841a940df995b784b5e3ec6f76141e8337245
apparmor: add outofband transition and use it in xattr match

There are cases where the a special out of band transition that can
not be triggered by input is useful in separating match conditions
in the dfa encoding.

The null_transition is currently used as an out of band transition
for match conditions that can not contain a \0 in their input
but apparmor needs an out of band transition for cases where
the match condition is allowed to contain any input character.

Achieve this by allowing for an explicit transition out of input
range that can only be triggered by code.

Signed-off-by: John Johansen <john.johansen@canonical.com>
security/apparmor/apparmorfs.c
security/apparmor/domain.c
security/apparmor/include/match.h
security/apparmor/match.c