Home
last modified time | relevance | path

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

/linux-6.1.9/fs/
Dopen.c374 struct cred *override_cred; in access_override_creds() local
376 override_cred = prepare_creds(); in access_override_creds()
377 if (!override_cred) in access_override_creds()
380 override_cred->fsuid = override_cred->uid; in access_override_creds()
381 override_cred->fsgid = override_cred->gid; in access_override_creds()
385 kuid_t root_uid = make_kuid(override_cred->user_ns, 0); in access_override_creds()
386 if (!uid_eq(override_cred->uid, root_uid)) in access_override_creds()
387 cap_clear(override_cred->cap_effective); in access_override_creds()
389 override_cred->cap_effective = in access_override_creds()
390 override_cred->cap_permitted; in access_override_creds()
[all …]
/linux-6.1.9/fs/overlayfs/
Ddir.c576 struct cred *override_cred; in ovl_create_or_link() local
597 override_cred = prepare_creds(); in ovl_create_or_link()
598 if (!override_cred) in ovl_create_or_link()
613 override_cred->fsuid = inode->i_uid; in ovl_create_or_link()
614 override_cred->fsgid = inode->i_gid; in ovl_create_or_link()
617 override_cred); in ovl_create_or_link()
619 put_cred(override_cred); in ovl_create_or_link()
622 put_cred(override_creds(override_cred)); in ovl_create_or_link()
623 put_cred(override_cred); in ovl_create_or_link()