Searched refs:override_cred (Results 1 – 2 of 2) sorted by relevance
360 struct cred *override_cred; in do_faccessat() local370 override_cred = prepare_creds(); in do_faccessat()371 if (!override_cred) in do_faccessat()374 override_cred->fsuid = override_cred->uid; in do_faccessat()375 override_cred->fsgid = override_cred->gid; in do_faccessat()379 kuid_t root_uid = make_kuid(override_cred->user_ns, 0); in do_faccessat()380 if (!uid_eq(override_cred->uid, root_uid)) in do_faccessat()381 cap_clear(override_cred->cap_effective); in do_faccessat()383 override_cred->cap_effective = in do_faccessat()384 override_cred->cap_permitted; in do_faccessat()[all …]
540 struct cred *override_cred; in ovl_create_or_link() local560 override_cred = prepare_creds(); in ovl_create_or_link()561 if (override_cred) { in ovl_create_or_link()562 override_cred->fsuid = inode->i_uid; in ovl_create_or_link()563 override_cred->fsgid = inode->i_gid; in ovl_create_or_link()568 override_cred); in ovl_create_or_link()570 put_cred(override_cred); in ovl_create_or_link()574 hold_cred = override_creds(override_cred); in ovl_create_or_link()575 put_cred(override_cred); in ovl_create_or_link()