1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-29 09:45:08 +00:00

Mount: Implement wxallowed mount option

This commit is contained in:
int16 2022-03-09 22:36:22 +11:00 committed by Andreas Kling
parent 4307c4480e
commit a4d96c159c

View file

@ -35,6 +35,8 @@ static int parse_options(StringView options)
flags |= MS_RDONLY; flags |= MS_RDONLY;
else if (part == "remount") else if (part == "remount")
flags |= MS_REMOUNT; flags |= MS_REMOUNT;
else if (part == "wxallowed")
flags |= MS_WXALLOWED;
else else
warnln("Ignoring invalid option: {}", part); warnln("Ignoring invalid option: {}", part);
} }
@ -144,6 +146,8 @@ static ErrorOr<void> print_mounts()
out(",nosuid"); out(",nosuid");
if (mount_flags & MS_BIND) if (mount_flags & MS_BIND)
out(",bind"); out(",bind");
if (mount_flags & MS_WXALLOWED)
out(",wxallowed");
outln(")"); outln(")");
}); });