Skip to content

Commit

Permalink
libcomposefs: drop using "ro" option
Browse files Browse the repository at this point in the history
MS_RDONLY is enough to mount the image as read-only.

Signed-off-by: Giuseppe Scrivano <[email protected]>
  • Loading branch information
giuseppe committed Jul 30, 2024
1 parent 3a87868 commit 0a0d50f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libcomposefs/lcfs-mount.c
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ static errint_t lcfs_mount_erofs(const char *source, const char *target,
return -ENOTSUP;

res = mount(source, target, "erofs", MS_RDONLY,
image_has_acls ? "ro" : "ro,noacl");
image_has_acls ? NULL : "noacl");
if (res < 0)
return -errno;

Expand Down

0 comments on commit 0a0d50f

Please sign in to comment.