Skip to content

Commit

Permalink
/lib/modules should be mutable
Browse files Browse the repository at this point in the history
The mount point of the modules filesystem can have new entries added to
it, so it should be mutable.  OverlayFS currently seems to ignore the
immutable attribute on the lower directory, but this might be an
OverlayFS bug, so don't rely on it.  The immutable attribute is honored
on subdirectories.
  • Loading branch information
DemiMarie committed Jan 11, 2022
1 parent b637f76 commit a9c159e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion genfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ static int real_main(const char *const filesystem, const char *const uname) {
.uname_or_label = uname,
};
process_dirent(fs, "", EXT2_ROOT_INO, 0, "",
label_modules_object, mark_immutable);
label_modules_object, false);
if ((err = ext2fs_dir_iterate2(fs, EXT2_ROOT_INO, 0, NULL,
root_iterate_callback, &data)))
genfs_err(err, "processing /");
Expand Down

0 comments on commit a9c159e

Please sign in to comment.