Lines Matching refs:cred
11 * cred or task context but instead creates a new one. Ideally the task
12 * should return to the previous cred if it has not been modified.
19 #include "include/cred.h"
50 struct cred *new;
78 * be careful switching cred label, when racing replacement it
79 * is possible that the cred labels's->proxy->label is the reference
81 * dropping the reference on the cred's label
120 struct cred *new;
160 struct cred *new;
226 static int profile_ptrace_perm(const struct cred *cred,
235 ad->subj_cred = cred;
243 static int profile_tracee_perm(const struct cred *cred,
252 return profile_ptrace_perm(cred, tracee, tracer, request, ad);
255 static int profile_tracer_perm(const struct cred *cred,
264 return profile_ptrace_perm(cred, tracer, tracee, request, ad);
273 ad->error = aa_capable(cred, &tracer->label, CAP_SYS_PTRACE,
281 * @tracer_cred: cred of task doing the tracing (NOT NULL)
283 * @tracee_cred: cred of task to be traced
289 int aa_may_ptrace(const struct cred *tracer_cred, struct aa_label *tracer,
290 const struct cred *tracee_cred, struct aa_label *tracee,