]> git.baikalelectronics.ru Git - kernel.git/commit
apparmor: fail task profile update if current_cred isn't real_cred
authorJohn Johansen <john.johansen@canonical.com>
Mon, 16 Jan 2017 08:42:59 +0000 (00:42 -0800)
committerJohn Johansen <john.johansen@canonical.com>
Mon, 16 Jan 2017 09:18:45 +0000 (01:18 -0800)
commit22e80847a13b278091a03c1e736bc22b95a5adfe
treeb3a7316e235e2281d0e02a958dc6d29b63ada8f7
parenta8b06efdb6e8f7e60b89a2689510e5abc9b05110
apparmor: fail task profile update if current_cred isn't real_cred

Trying to update the task cred while the task current cred is not the
real cred will result in an error at the cred layer. Avoid this by
failing early and delaying the update.

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