]> git.proxmox.com Git - mirror_ubuntu-artful-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)
committerSeth Forshee <seth.forshee@canonical.com>
Tue, 5 Sep 2017 12:34:45 +0000 (07:34 -0500)
commit981bb872b2363697f392e739734e2f081b46ab3e
tree6feebb9ecb80c8623e136949330ee34b4c76c900
parentfacca57d0c49fc9e021f6ced586cd4ec155496f9
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>
(cherry picked from commit c54a2175e3a6bf6c697d249bba1aa729e06c7ba8 linux-next)
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
security/apparmor/policy_unpack.c