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:
parent
6187cf72cc
commit
5efa8e507b
5 changed files with 8 additions and 1 deletions
|
@ -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(")");
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue