From 77c80e6b2fd049848bfd1bdab67899ad3ac407a7 Mon Sep 17 00:00:00 2001 From: James Morris Date: Mon, 2 Aug 2010 15:49:00 +1000 Subject: 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 --- security/apparmor/ipc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'security/apparmor/ipc.c') diff --git a/security/apparmor/ipc.c b/security/apparmor/ipc.c index 9013a78a166..649fad88869 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, if (!unconfined(tracer_p)) { /* lcred released below */ - struct cred *lcred = get_task_cred(tracee); + const struct cred *lcred = get_task_cred(tracee); struct aa_profile *tracee_p = aa_cred_profile(lcred); error = aa_may_ptrace(tracer, tracer_p, tracee_p, mode); -- cgit v1.2.3