aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--security/apparmor/domain.c2
-rw-r--r--security/apparmor/ipc.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/security/apparmor/domain.c b/security/apparmor/domain.c
index 08bbe6397a7f..c825c6e0b636 100644
--- a/security/apparmor/domain.c
+++ b/security/apparmor/domain.c
@@ -62,7 +62,7 @@ static int may_change_ptraced_domain(struct task_struct *task,
62 struct aa_profile *to_profile) 62 struct aa_profile *to_profile)
63{ 63{
64 struct task_struct *tracer; 64 struct task_struct *tracer;
65 struct cred *cred = NULL; 65 const struct cred *cred = NULL;
66 struct aa_profile *tracerp = NULL; 66 struct aa_profile *tracerp = NULL;
67 int error = 0; 67 int error = 0;
68 68
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);