]> git.baikalelectronics.ru Git - kernel.git/commit
apparmor: Fix logical error in verify_header()
authorChristos Gkekas <chris.gekas@gmail.com>
Sat, 8 Jul 2017 19:50:21 +0000 (20:50 +0100)
committerJohn Johansen <john.johansen@canonical.com>
Fri, 22 Sep 2017 20:00:57 +0000 (13:00 -0700)
commitbf449099f6a37b9ada3327db3a08331bcab61429
treea07652c9a5e08fc4a63713d07722240d062f383f
parenta039bbc451ec64a4eecbb89e11bda5437e21848a
apparmor: Fix logical error in verify_header()

verify_header() is currently checking whether interface version is less
than 5 *and* greater than 7, which always evaluates to false. Instead it
should check whether it is less than 5 *or* greater than 7.

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