diff options
author | Liav A <liavalb@gmail.com> | 2022-10-21 19:30:06 +0300 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-10-22 19:18:15 +0200 |
commit | 5b3980b04067ccc2b795ec407822757a82396157 (patch) | |
tree | 2d3ad0529c3b25d90421f370dde44a70dcc123f1 /Userland/Services/SystemServer/main.cpp | |
parent | 07387ec19af987f4ce095197824ef6a2d53533b4 (diff) | |
download | serenity-5b3980b04067ccc2b795ec407822757a82396157.zip |
Userland: Utilize MS_NOREGULAR mount flag
For SystemServer, we simply ensure that the /dev mount is now mounted
with MS_NOREGULAR flag to ensure only non-regular files are created,
thus, achieving what DevTmpFS provided in its implementation, but in a
much more sane and clean way than how DevTmpFS did that.
For other userland applications, we simply make them being aware of this
flag so they can show an indication about this flag being used to the
user.
Diffstat (limited to 'Userland/Services/SystemServer/main.cpp')
-rw-r--r-- | Userland/Services/SystemServer/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Services/SystemServer/main.cpp b/Userland/Services/SystemServer/main.cpp index 473b23f196..4bf612aa51 100644 --- a/Userland/Services/SystemServer/main.cpp +++ b/Userland/Services/SystemServer/main.cpp @@ -380,7 +380,7 @@ static ErrorOr<void> prepare_synthetic_filesystems() // FIXME: Find a better way to all of this stuff, without hardcoding all of this! TRY(Core::System::mount(-1, "/proc"sv, "proc"sv, MS_NOSUID)); TRY(Core::System::mount(-1, "/sys"sv, "sys"sv, 0)); - TRY(Core::System::mount(-1, "/dev"sv, "tmp"sv, MS_NOSUID | MS_NOEXEC)); + TRY(Core::System::mount(-1, "/dev"sv, "tmp"sv, MS_NOSUID | MS_NOEXEC | MS_NOREGULAR)); TRY(Core::System::mkdir("/dev/audio"sv, 0755)); TRY(Core::System::mkdir("/dev/input"sv, 0755)); |