]> git.karo-electronics.de Git - linux-beck.git/commit
apparmor: fix oops in profile_unpack() when policy_db is not present
authorJohn Johansen <john.johansen@canonical.com>
Wed, 15 Jun 2016 07:00:55 +0000 (10:00 +0300)
committerJohn Johansen <john.johansen@canonical.com>
Tue, 12 Jul 2016 15:43:10 +0000 (08:43 -0700)
commit5f20fdfed16bc599a325a145bf0123a8e1c9beea
treefa700aadf27b4e0f454918b6dd06c7a40133173c
parent3197f5adf539a3ee6331f433a51483f8c842f890
apparmor: fix oops in profile_unpack() when policy_db is not present

BugLink: http://bugs.launchpad.net/bugs/1592547
If unpack_dfa() returns NULL due to the dfa not being present,
profile_unpack() is not checking if the dfa is not present (NULL).

Signed-off-by: John Johansen <john.johansen@canonical.com>
security/apparmor/policy_unpack.c