Skip to contentSkip to conversation

mkfs.f2fs: remove IMMUTABLE bit

PATCH In review Jaegeuk Kim via Linux-f2fs-devel 2 participants 3 messages Nov 11, 2024 – Nov 18, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mkfs.f2fs: remove IMMUTABLE bit

The immutable bit disallows selinux permission which gives no way to clear it.

Fixes 8cc4e257ec20 ("mkfs.f2fs: add device aliasing feature")
---
 mkfs/f2fs_format.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
mkfs/f2fs_format.c +1 -2
index 52a1e1864b29..6635eed99813 100644
@@ -1748,8 +1748,7 @@ static int f2fs_write_alias_inodes(void)
 		dev_off++;
 		f2fs_init_inode(sb, raw_node, ino, mkfs_time, 0x81c0);
 
-		raw_node->i.i_flags = cpu_to_le32(F2FS_IMMUTABLE_FL |
-				F2FS_DEVICE_ALIAS_FL);
+		raw_node->i.i_flags = cpu_to_le32(F2FS_DEVICE_ALIAS_FL);
 		raw_node->i.i_inline = F2FS_PIN_FILE;
 		raw_node->i.i_pino = sb->root_ino;
 		filename = c.devices[i].alias_filename;
Signature · 8 lines
2.47.0.277.g8800431eea-goog



_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
Reviewed-by on v1 1/1
#1 lore raw

Thanks,

Quoted 28 lines · On Sun, Nov 10, 2024 at 7:09 PM Jaegeuk Kim via Linux-f2fs-devel…

The immutable bit disallows selinux permission which gives no way to clear it.

Fixes 8cc4e257ec20 ("mkfs.f2fs: add device aliasing feature")
---
 mkfs/f2fs_format.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
mkfs/f2fs_format.c +1 -3
index 52a1e1864b29..6635eed99813 100644
@@ -1748,8 +1748,7 @@ static int f2fs_write_alias_inodes(void)
                dev_off++;
                f2fs_init_inode(sb, raw_node, ino, mkfs_time, 0x81c0);
 
-               raw_node->i.i_flags = cpu_to_le32(F2FS_IMMUTABLE_FL |
-                               F2FS_DEVICE_ALIAS_FL);
+               raw_node->i.i_flags = cpu_to_le32(F2FS_DEVICE_ALIAS_FL);
                raw_node->i.i_inline = F2FS_PIN_FILE;
                raw_node->i.i_pino = sb->root_ino;
                filename = c.devices[i].alias_filename;
--

2.47.0.277.g8800431eea-goog

Quoted 4 lines

_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

author Reviewed-by Chao Yu on v1 1/1
#2 lore raw
In reply to Jaegeuk Kim via Linux-f2fs-devel
Quoted 4 lines · On 2024/11/11 11:04, Jaegeuk Kim via Linux-f2fs-devel wrote:

The immutable bit disallows selinux permission which gives no way to clear it.

Fixes 8cc4e257ec20 ("mkfs.f2fs: add device aliasing feature")

Thanks,

_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel