Fix build warnings for non-const use of get_task_cred.
Signed-off-by: James Morris <jmorris@namei.org>
                                     struct aa_profile *to_profile)
 {
        struct task_struct *tracer;
-       struct cred *cred = NULL;
+       const struct cred *cred = NULL;
        struct aa_profile *tracerp = NULL;
        int error = 0;
 
 
 
        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);