Home
last modified time | relevance | path

Searched refs:override_cred (Results 1 – 2 of 2) sorted by relevance

/linux-6.12.1/fs/
Dopen.c414 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()
[all …]
/linux-6.12.1/fs/overlayfs/
Ddir.c560 struct cred *override_cred; in ovl_setup_cred_for_create() local
562 override_cred = prepare_creds(); in ovl_setup_cred_for_create()
563 if (!override_cred) in ovl_setup_cred_for_create()
566 override_cred->fsuid = inode->i_uid; in ovl_setup_cred_for_create()
567 override_cred->fsgid = inode->i_gid; in ovl_setup_cred_for_create()
569 old_cred, override_cred); in ovl_setup_cred_for_create()
571 put_cred(override_cred); in ovl_setup_cred_for_create()
574 put_cred(override_creds(override_cred)); in ovl_setup_cred_for_create()
575 put_cred(override_cred); in ovl_setup_cred_for_create()