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
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 966 bytes
.mailmap -rw-r--r-- 4.2 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 91.9 KB
Kbuild -rw-r--r-- 2.4 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 189.8 KB
Makefile -rw-r--r-- 52.6 KB
README -rw-r--r-- 17.1 KB
REPORTING-BUGS -rw-r--r-- 3.3 KB

README

back to top