Home
last modified time | relevance | path

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

/linux-6.6.21/fs/
Dopen.c405 struct cred *override_cred; in access_override_creds() local
407 override_cred = prepare_creds(); in access_override_creds()
408 if (!override_cred) in access_override_creds()
417 override_cred->fsuid = override_cred->uid; in access_override_creds()
418 override_cred->fsgid = override_cred->gid; in access_override_creds()
422 kuid_t root_uid = make_kuid(override_cred->user_ns, 0); in access_override_creds()
423 if (!uid_eq(override_cred->uid, root_uid)) in access_override_creds()
424 cap_clear(override_cred->cap_effective); in access_override_creds()
426 override_cred->cap_effective = in access_override_creds()
427 override_cred->cap_permitted; in access_override_creds()
[all …]
/linux-6.6.21/fs/overlayfs/
Ddir.c559 struct cred *override_cred; in ovl_create_or_link() local
580 override_cred = prepare_creds(); in ovl_create_or_link()
581 if (!override_cred) in ovl_create_or_link()
596 override_cred->fsuid = inode->i_uid; in ovl_create_or_link()
597 override_cred->fsgid = inode->i_gid; in ovl_create_or_link()
600 override_cred); in ovl_create_or_link()
602 put_cred(override_cred); in ovl_create_or_link()
605 put_cred(override_creds(override_cred)); in ovl_create_or_link()
606 put_cred(override_cred); in ovl_create_or_link()