diff options
author | Michael Jeanson <mjeanson@efficios.com> | 2024-05-23 03:10:07 +0200 |
---|---|---|
committer | Namjae Jeon <linkinjeon@kernel.org> | 2024-07-15 14:44:28 +0200 |
commit | 224821766f4355cfa63f825660f5922e670d6fc6 (patch) | |
tree | 1c0b170b6230a0034b770e8aec5028913487fb07 /fs/exfat/super.c | |
parent | Linux 6.10 (diff) | |
download | linux-224821766f4355cfa63f825660f5922e670d6fc6.tar.xz linux-224821766f4355cfa63f825660f5922e670d6fc6.zip |
exfat: handle idmapped mounts
Pass the idmapped mount information to the different helper
functions. Adapt the uid/gid checks in exfat_setattr to use the
vfsuid/vfsgid helpers.
Based on the fat implementation in commit 4b7899368108
("fat: handle idmapped mounts") by Christian Brauner.
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Reviewed-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'fs/exfat/super.c')
-rw-r--r-- | fs/exfat/super.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/exfat/super.c b/fs/exfat/super.c index 3d5ea2cfad66..1f2b3b0c4923 100644 --- a/fs/exfat/super.c +++ b/fs/exfat/super.c @@ -788,7 +788,7 @@ static struct file_system_type exfat_fs_type = { .init_fs_context = exfat_init_fs_context, .parameters = exfat_parameters, .kill_sb = exfat_kill_sb, - .fs_flags = FS_REQUIRES_DEV, + .fs_flags = FS_REQUIRES_DEV | FS_ALLOW_IDMAP, }; static void exfat_inode_init_once(void *foo) |