aboutsummaryrefslogtreecommitdiffstats
path: root/security/apparmor/ipc.c
diff options
context:
space:
mode:
authorJames Morris <jmorris@namei.org>2010-08-02 01:49:00 -0400
committerJames Morris <jmorris@namei.org>2010-08-02 01:49:00 -0400
commit77c80e6b2fd049848bfd1bdab67899ad3ac407a7 (patch)
tree672ccbe5316698e0ef4dae46ba0029fb234989bf /security/apparmor/ipc.c
parent6371dcd36f649d9d07823f31400618155a20dde1 (diff)
AppArmor: fix build warnings for non-const use of get_task_cred
Fix build warnings for non-const use of get_task_cred. Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'security/apparmor/ipc.c')
-rw-r--r--security/apparmor/ipc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/apparmor/ipc.c b/security/apparmor/ipc.c
index 9013a78a1663..649fad88869b 100644
--- a/security/apparmor/ipc.c
+++ b/security/apparmor/ipc.c
@@ -100,7 +100,7 @@ int aa_ptrace(struct task_struct *tracer, struct task_struct *tracee,
100 100
101 if (!unconfined(tracer_p)) { 101 if (!unconfined(tracer_p)) {
102 /* lcred released below */ 102 /* lcred released below */
103 struct cred *lcred = get_task_cred(tracee); 103 const struct cred *lcred = get_task_cred(tracee);
104 struct aa_profile *tracee_p = aa_cred_profile(lcred); 104 struct aa_profile *tracee_p = aa_cred_profile(lcred);
105 105
106 error = aa_may_ptrace(tracer, tracer_p, tracee_p, mode); 106 error = aa_may_ptrace(tracer, tracer_p, tracee_p, mode);