Lines Matching refs:override_cred
414 struct cred *override_cred; in access_override_creds() local
416 override_cred = prepare_creds(); in access_override_creds()
417 if (!override_cred) in access_override_creds()
426 override_cred->fsuid = override_cred->uid; in access_override_creds()
427 override_cred->fsgid = override_cred->gid; in access_override_creds()
431 kuid_t root_uid = make_kuid(override_cred->user_ns, 0); in access_override_creds()
432 if (!uid_eq(override_cred->uid, root_uid)) in access_override_creds()
433 cap_clear(override_cred->cap_effective); in access_override_creds()
435 override_cred->cap_effective = in access_override_creds()
436 override_cred->cap_permitted; in access_override_creds()
457 override_cred->non_rcu = 1; in access_override_creds()
459 old_cred = override_creds(override_cred); in access_override_creds()
462 put_cred(override_cred); in access_override_creds()