hfsplus-fix-bug-causing-custom-uid-and-gid-being-unable-to-be-assigned-with-mount.patch removed from -mm tree
The quilt patch titled
Subject: hfsplus: fix bug causing custom uid and gid being unable to be assigned with mount
has been removed from the -mm tree. Its filename was
hfsplus-fix-bug-causing-custom-uid-and-gid-being-unable-to-be-assigned-with-mount.patch
This patch was dropped because it was merged into the mm-nonmm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Aditya Garg <[email protected]>
Subject: hfsplus: fix bug causing custom uid and gid being unable to be assigned with mount
Date: Wed, 7 Dec 2022 03:05:40 +0000
Despite specifying UID and GID in mount command, the specified UID and GID were not being assigned. This patch fixes this issue.
---
fs/hfsplus/hfsplus_fs.h | 2 ++ fs/hfsplus/inode.c | 4 ++-- fs/hfsplus/options.c | 4 ++++ 3 files changed, 8 insertions(+), 2 deletions(-)
fs/hfsplus/hfsplus_fs.h renamed from fs/hfsplus/hfsplus_fs.h~hfsplus-fix-bug-causing-custom-uid-and-gid-being-unable-to-be-assigned-with-mount +2 -0
@@ -198,6 +198,8 @@ struct hfsplus_sb_info {#define HFSPLUS_SB_HFSX 3#define HFSPLUS_SB_CASEFOLD 4#define HFSPLUS_SB_NOBARRIER 5 +#define HFSPLUS_SB_UID 6 +#define HFSPLUS_SB_GID 7static inline struct hfsplus_sb_info *HFSPLUS_SB (struct super_block *sb) {
fs/hfsplus/inode.c renamed from fs/hfsplus/inode.c~hfsplus-fix-bug-causing-custom-uid-and-gid-being-unable-to-be-assigned-with-mount +2 -2
@@ -192,11 +192,11 @@ static void hfsplus_get_perms(struct ino mode =be16_to_cpu (perms->mode);i_uid_write (inode,be32_to_cpu (perms->owner)); -if (!i_uid_read (inode) && !mode) +if ((test_bit (HFSPLUS_SB_UID , &sbi->flags)) || (!i_uid_read (inode) && !mode)) inode->i_uid = sbi->uid;i_gid_write (inode,be32_to_cpu (perms->group)); -if (!i_gid_read (inode) && !mode) +if ((test_bit (HFSPLUS_SB_GID , &sbi->flags)) || (!i_gid_read (inode) && !mode)) inode->i_gid = sbi->gid;if (dir) {
fs/hfsplus/options.c renamed from fs/hfsplus/options.c~hfsplus-fix-bug-causing-custom-uid-and-gid-being-unable-to-be-assigned-with-mount +4 -0
@@ -140,6 +140,8 @@ int hfsplus_parse_options(char *input, sif (!uid_valid (sbi->uid)) {pr_err ("invalid uid specified\n" );return 0 ; + }else { +set_bit (HFSPLUS_SB_UID , &sbi->flags); }break ;case opt_gid:
@@ -151,6 +153,8 @@ int hfsplus_parse_options(char *input, sif (!gid_valid (sbi->gid)) {pr_err ("invalid gid specified\n" );return 0 ; + }else { +set_bit (HFSPLUS_SB_GID , &sbi->flags); }break ;case opt_part:
_
Patches currently in -mm which might be from [email protected] are