Lines Matching defs: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
123 struct cred *new;
163 struct cred *new;
229 static int profile_ptrace_perm(const struct cred *cred,
238 ad->subj_cred = cred;
246 static int profile_tracee_perm(const struct cred *cred,
255 return profile_ptrace_perm(cred, tracee, tracer, request, ad);
258 static int profile_tracer_perm(const struct cred *cred,
267 return profile_ptrace_perm(cred, tracer, tracee, request, ad);
276 ad->error = aa_capable(cred, &tracer->label, CAP_SYS_PTRACE,
290 int aa_may_ptrace(const struct cred *tracer_cred, struct aa_label *tracer,
291 const struct cred *tracee_cred, struct aa_label *tracee,