From a4d96c159cef1e3fa014f89c20ed68265fa0d7ea Mon Sep 17 00:00:00 2001 From: int16 Date: Wed, 9 Mar 2022 22:36:22 +1100 Subject: [PATCH] Mount: Implement wxallowed mount option --- Userland/Utilities/mount.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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 print_mounts() out(",nosuid"); if (mount_flags & MS_BIND) out(",bind"); + if (mount_flags & MS_WXALLOWED) + out(",wxallowed"); outln(")"); });