]> git.baikalelectronics.ru Git - kernel.git/commit
apparmor: fix ptrace read check
authorJohn Johansen <john.johansen@canonical.com>
Thu, 7 Jun 2018 07:45:30 +0000 (00:45 -0700)
committerJohn Johansen <john.johansen@canonical.com>
Thu, 7 Jun 2018 08:51:02 +0000 (01:51 -0700)
commite2ac5318e56cde4a854c57c5168dec8c37b9bff6
treea35737ad4aff38dbb6f9b228ee1999fb8b51b894
parent5495a743e4c5184cfca9aff737d9601effeb7675
apparmor: fix ptrace read check

The ptrace read check is incorrect resulting in policy that is
broader than it needs to be. Fix the check so that read access
permission can be properly detected when other ptrace flags are
set.

Fixes: 61351207cb78 ("apparmor: move ptrace checks to using labels")
Signed-off-by: John Johansen <john.johansen@canonical.com>
security/apparmor/lsm.c