mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 05:09:12 +00:00
Mount: Implement wxallowed mount option
This commit is contained in:
parent
4307c4480e
commit
a4d96c159c
Notes:
sideshowbarker
2024-07-17 16:56:46 +09:00
Author: https://github.com/jakewestrip
Commit: a4d96c159c
Pull-request: https://github.com/SerenityOS/serenity/pull/12961
Reviewed-by: https://github.com/kleinesfilmroellchen ✅
1 changed files with 4 additions and 0 deletions
|
@ -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<void> print_mounts()
|
|||
out(",nosuid");
|
||||
if (mount_flags & MS_BIND)
|
||||
out(",bind");
|
||||
if (mount_flags & MS_WXALLOWED)
|
||||
out(",wxallowed");
|
||||
|
||||
outln(")");
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue