projects/linux·commit 5c6cce92

Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/security-testing-2.6

5c6cce92 · Linus Torvalds <[email protected]> · 2011-06-01 16:35:37 +09:00

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/security-testing-2.6:
  AppArmor: fix oops in apparmor_setprocattr
Commit
5c6cce92bc8aee751aafe82c5d9caf7553226a3d
Parents
603d04b2 · a5b2c5b2

Merge commit. Changes below are compared with the first parent: 603d04b2.

Changes

1 files changed · +2 −1

FileStatusAddDelContent
security/apparmor/lsm.cmodified+2−1View file

security/apparmor/lsm.c

View file
diff --git a/security/apparmor/lsm.c b/security/apparmor/lsm.c
index ae3a698..ec1bcec 100644
--- a/security/apparmor/lsm.c
+++ b/security/apparmor/lsm.c
@@ -593,7 +593,8 @@ static int apparmor_setprocattr(struct task_struct *task, char *name,
sa.aad.op = OP_SETPROCATTR;
sa.aad.info = name;
sa.aad.error = -EINVAL;
- return aa_audit(AUDIT_APPARMOR_DENIED, NULL, GFP_KERNEL,
+ return aa_audit(AUDIT_APPARMOR_DENIED,
+ __aa_current_profile(), GFP_KERNEL,
&sa, NULL);
}
} else if (strcmp(name, "exec") == 0) {