Searched refs:vfsuid (Results 1 – 10 of 10) sorted by relevance
/linux-6.1.9/include/linux/ |
D | mnt_idmapping.h | 81 static inline bool vfsuid_eq_kuid(vfsuid_t vfsuid, kuid_t kuid) in vfsuid_eq_kuid() argument 83 return vfsuid_valid(vfsuid) && __vfsuid_val(vfsuid) == __kuid_val(kuid); in vfsuid_eq_kuid() 276 vfsuid_t vfsuid) in from_vfsuid() argument 281 return AS_KUIDT(vfsuid); in from_vfsuid() 282 uid = from_kuid(mnt_userns, AS_KUIDT(vfsuid)); in from_vfsuid() 331 vfsuid_t vfsuid) in vfsuid_has_fsmapping() argument 333 return uid_valid(from_vfsuid(mnt_userns, fs_userns, vfsuid)); in vfsuid_has_fsmapping() 344 static inline kuid_t vfsuid_into_kuid(vfsuid_t vfsuid) in vfsuid_into_kuid() argument 346 return AS_KUIDT(vfsuid); in vfsuid_into_kuid()
|
/linux-6.1.9/fs/ |
D | attr.c | 36 vfsuid_t vfsuid = i_uid_into_vfsuid(mnt_userns, inode); in chown_ok() local 37 if (vfsuid_eq_kuid(vfsuid, current_fsuid()) && in chown_ok() 38 vfsuid_eq(ia_vfsuid, vfsuid)) in chown_ok() 42 if (!vfsuid_valid(vfsuid) && in chown_ok() 64 vfsuid_t vfsuid = i_uid_into_vfsuid(mnt_userns, inode); in chgrp_ok() local 65 if (vfsuid_eq_kuid(vfsuid, current_fsuid())) { in chgrp_ok()
|
D | posix_acl.c | 367 vfsuid_t vfsuid; in posix_acl_permission() local 376 vfsuid = i_uid_into_vfsuid(mnt_userns, inode); in posix_acl_permission() 377 if (vfsuid_eq_kuid(vfsuid, current_fsuid())) in posix_acl_permission() 381 vfsuid = make_vfsuid(mnt_userns, fs_userns, in posix_acl_permission() 383 if (vfsuid_eq_kuid(vfsuid, current_fsuid())) in posix_acl_permission() 743 vfsuid_t vfsuid; in posix_acl_getxattr_idmapped_mnt() local 759 vfsuid = make_vfsuid(mnt_userns, fs_userns, uid); in posix_acl_getxattr_idmapped_mnt() 761 vfsuid_into_kuid(vfsuid))); in posix_acl_getxattr_idmapped_mnt()
|
/linux-6.1.9/fs/ksmbd/ |
D | smbacl.h | 217 vfsuid_t vfsuid; in posix_acl_uid_translate() local 220 vfsuid = make_vfsuid(mnt_userns, &init_user_ns, pace->e_uid); in posix_acl_uid_translate() 223 return from_kuid(&init_user_ns, vfsuid_into_kuid(vfsuid)); in posix_acl_uid_translate()
|
D | ndr.c | 348 vfsuid_t vfsuid; in ndr_encode_posix_acl() local 377 vfsuid = i_uid_into_vfsuid(user_ns, inode); in ndr_encode_posix_acl() 378 ret = ndr_write_int64(n, from_kuid(&init_user_ns, vfsuid_into_kuid(vfsuid))); in ndr_encode_posix_acl()
|
D | oplock.c | 1612 vfsuid_t vfsuid = i_uid_into_vfsuid(user_ns, inode); in create_posix_rsp_buf() local 1655 id_to_sid(from_kuid_munged(&init_user_ns, vfsuid_into_kuid(vfsuid)), in create_posix_rsp_buf()
|
D | smb2pdu.c | 2483 vfsuid_t vfsuid = i_uid_into_vfsuid(mnt_userns, inode); in ksmbd_acls_fattr() local 2486 fattr->cf_uid = vfsuid_into_kuid(vfsuid); in ksmbd_acls_fattr() 4727 vfsuid_t vfsuid = i_uid_into_vfsuid(user_ns, inode); in find_file_posix_info() local 4753 id_to_sid(from_kuid_munged(&init_user_ns, vfsuid_into_kuid(vfsuid)), in find_file_posix_info()
|
/linux-6.1.9/fs/xfs/ |
D | xfs_itable.c | 69 vfsuid_t vfsuid; in xfs_bulkstat_one_int() local 86 vfsuid = i_uid_into_vfsuid(mnt_userns, inode); in xfs_bulkstat_one_int() 94 buf->bs_uid = from_kuid(sb_userns, vfsuid_into_kuid(vfsuid)); in xfs_bulkstat_one_int()
|
D | xfs_iops.c | 561 vfsuid_t vfsuid = i_uid_into_vfsuid(mnt_userns, inode); in xfs_vn_getattr() local 573 stat->uid = vfsuid_into_kuid(vfsuid); in xfs_vn_getattr()
|
/linux-6.1.9/fs/overlayfs/ |
D | inode.c | 470 vfsuid_t vfsuid; in ovl_idmap_posix_acl() local 476 vfsuid = make_vfsuid(mnt_userns, fs_userns, e->e_uid); in ovl_idmap_posix_acl() 477 e->e_uid = vfsuid_into_kuid(vfsuid); in ovl_idmap_posix_acl()
|