mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-18 15:32:22 +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
Notes:
sideshowbarker
2024-07-17 09:35:47 +09:00
Author: https://github.com/timschumi
Commit: 5efa8e507b
Pull-request: https://github.com/SerenityOS/serenity/pull/13971
Reviewed-by: https://github.com/ADKaster ✅
Reviewed-by: https://github.com/Hendiadyoin1
Reviewed-by: https://github.com/bgianfo ✅
Reviewed-by: https://github.com/kleinesfilmroellchen
Reviewed-by: https://github.com/linusg
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