diff mbox series

[f2fs-dev] mkfs.f2fs: remove IMMUTABLE bit

Message ID 20241111030456.2572093-1-jaegeuk@kernel.org (mailing list archive)
State New
Headers show
Series [f2fs-dev] mkfs.f2fs: remove IMMUTABLE bit | expand

Commit Message

Jaegeuk Kim Nov. 11, 2024, 3:04 a.m. UTC
The immutable bit disallows selinux permission which gives no way to clear it.

Fixes: 8cc4e257ec20 ("mkfs.f2fs: add device aliasing feature")
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
---
 mkfs/f2fs_format.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Comments

Daeho Jeong Nov. 11, 2024, 5:07 p.m. UTC | #1
Reviewed-by: Daeho Jeong <daehojeong@google.com>

Thanks,

On Sun, Nov 10, 2024 at 7:09 PM Jaegeuk Kim via Linux-f2fs-devel
<linux-f2fs-devel@lists.sourceforge.net> wrote:
>
> The immutable bit disallows selinux permission which gives no way to clear it.
>
> Fixes: 8cc4e257ec20 ("mkfs.f2fs: add device aliasing feature")
> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
> ---
>  mkfs/f2fs_format.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/mkfs/f2fs_format.c b/mkfs/f2fs_format.c
> index 52a1e1864b29..6635eed99813 100644
> --- a/mkfs/f2fs_format.c
> +++ b/mkfs/f2fs_format.c
> @@ -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
>
>
>
> _______________________________________________
> Linux-f2fs-devel mailing list
> Linux-f2fs-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
Chao Yu Nov. 18, 2024, 1:24 a.m. UTC | #2
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")
> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>

Reviewed-by: Chao Yu <chao@kernel.org>

Thanks,
diff mbox series

Patch

diff --git a/mkfs/f2fs_format.c b/mkfs/f2fs_format.c
index 52a1e1864b29..6635eed99813 100644
--- a/mkfs/f2fs_format.c
+++ b/mkfs/f2fs_format.c
@@ -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;