diff options
author | int16 <jakewestrip@live.com> | 2022-03-09 22:36:22 +1100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-03-22 12:20:19 +0100 |
commit | a4d96c159cef1e3fa014f89c20ed68265fa0d7ea (patch) | |
tree | 9983dd4c4312fce1ea788673becd27d27f66c8e8 /Userland/Utilities/mount.cpp | |
parent | 4307c4480e7e4e59ea652503b346c9f1bce9cf2e (diff) | |
download | serenity-a4d96c159cef1e3fa014f89c20ed68265fa0d7ea.zip |
Mount: Implement wxallowed mount option
Diffstat (limited to 'Userland/Utilities/mount.cpp')
-rw-r--r-- | Userland/Utilities/mount.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Userland/Utilities/mount.cpp b/Userland/Utilities/mount.cpp index 0425aef44f..5015866c64 100644 --- a/Userland/Utilities/mount.cpp +++ b/Userland/Utilities/mount.cpp @@ -35,6 +35,8 @@ static int parse_options(StringView options) flags |= MS_RDONLY; else if (part == "remount") flags |= MS_REMOUNT; + else if (part == "wxallowed") + flags |= MS_WXALLOWED; else warnln("Ignoring invalid option: {}", part); } @@ -144,6 +146,8 @@ static ErrorOr<void> print_mounts() out(",nosuid"); if (mount_flags & MS_BIND) out(",bind"); + if (mount_flags & MS_WXALLOWED) + out(",wxallowed"); outln(")"); }); |