diff options
author | Sergey Bugaev <bugaevc@serenityos.org> | 2020-05-28 18:03:58 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-05-29 07:53:30 +0200 |
commit | 4b300e085d3fcad038b180ab90a9546bdfcc1335 (patch) | |
tree | 5c123b7077c2e3b0765d695a96273fceab7a6736 /Userland/chroot.cpp | |
parent | fdb71cdf8fa6c48b226e2242fbfdd75216e2f442 (diff) | |
download | serenity-4b300e085d3fcad038b180ab90a9546bdfcc1335.zip |
Userland+SystemMonitor: Recognize the MS_RDONLY mount flag
Diffstat (limited to 'Userland/chroot.cpp')
-rw-r--r-- | Userland/chroot.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/chroot.cpp b/Userland/chroot.cpp index a739b8bbbc..d658fa80ef 100644 --- a/Userland/chroot.cpp +++ b/Userland/chroot.cpp @@ -57,6 +57,8 @@ int main(int argc, char** argv) flags |= MS_NOEXEC; else if (part == "nosuid") flags |= MS_NOSUID; + else if (part == "ro") + flags |= MS_RDONLY; else if (part == "bind") fprintf(stderr, "Ignoring -o bind, as it doesn't make sense for chroot\n"); else |