summaryrefslogtreecommitdiff
path: root/Userland/Utilities/mount.cpp
diff options
context:
space:
mode:
authorint16 <jakewestrip@live.com>2022-03-09 22:36:22 +1100
committerAndreas Kling <kling@serenityos.org>2022-03-22 12:20:19 +0100
commita4d96c159cef1e3fa014f89c20ed68265fa0d7ea (patch)
tree9983dd4c4312fce1ea788673becd27d27f66c8e8 /Userland/Utilities/mount.cpp
parent4307c4480e7e4e59ea652503b346c9f1bce9cf2e (diff)
downloadserenity-a4d96c159cef1e3fa014f89c20ed68265fa0d7ea.zip
Mount: Implement wxallowed mount option
Diffstat (limited to 'Userland/Utilities/mount.cpp')
-rw-r--r--Userland/Utilities/mount.cpp4
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(")");
});