Staging
v0.8.1
https://github.com/torvalds/linux
Revision a5b2c5b2ad5853591a6cac6134cd0f599a720865 authored by Kees Cook on 31 May 2011, 18:31:41 UTC, committed by James Morris on 01 June 2011, 03:07:03 UTC
When invalid parameters are passed to apparmor_setprocattr a NULL deref
oops occurs when it tries to record an audit message. This is because
it is passing NULL for the profile parameter for aa_audit. But aa_audit
now requires that the profile passed is not NULL.

Fix this by passing the current profile on the task that is trying to
setprocattr.

Signed-off-by: Kees Cook <kees@ubuntu.com>
Signed-off-by: John Johansen <john.johansen@canonical.com>
Cc: stable@kernel.org
Signed-off-by: James Morris <jmorris@namei.org>
1 parent e12ca23
History
Tip revision: a5b2c5b2ad5853591a6cac6134cd0f599a720865 authored by Kees Cook on 31 May 2011, 18:31:41 UTC
AppArmor: fix oops in apparmor_setprocattr
Tip revision: a5b2c5b
File Mode Size
README -rw-r--r-- 3.6 KB
hotplug-script -rw-r--r-- 443 bytes

README

back to top