1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:07:36 +00:00

Kernel: Implement an axallowed mount option

Similar to `W^X` and `wxallowed`, this allows for anonymous executable
mappings.
This commit is contained in:
Tim Schumacher 2022-05-05 18:30:24 +02:00 committed by Brian Gianforcaro
parent 6187cf72cc
commit 5efa8e507b
5 changed files with 8 additions and 1 deletions

View file

@ -38,6 +38,8 @@ static int parse_options(StringView options)
flags |= MS_REMOUNT;
else if (part == "wxallowed")
flags |= MS_WXALLOWED;
else if (part == "axallowed")
flags |= MS_AXALLOWED;
else
warnln("Ignoring invalid option: {}", part);
}
@ -180,6 +182,8 @@ static ErrorOr<void> print_mounts()
out(",bind");
if (mount_flags & MS_WXALLOWED)
out(",wxallowed");
if (mount_flags & MS_AXALLOWED)
out(",axallowed");
outln(")");
});