]> git.proxmox.com Git - mirror_ubuntu-hirsute-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)
commit86aea56f14929ff1c05eca1776e9068e907429d5
treea07652c9a5e08fc4a63713d07722240d062f383f
parent19fe43a54fb67b6cc8857e65c78e1dc8aa2e97a3
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