mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 18:20:43 +09:00
Utilities: Use new global variables at /sys/kernel/ directory
This commit is contained in:
parent
35c98a031a
commit
9d1ba0e6ad
Notes:
sideshowbarker
2024-07-17 05:06:11 +09:00
Author: https://github.com/supercomputer7
Commit: 9d1ba0e6ad
Pull-request: https://github.com/SerenityOS/serenity/pull/15593
Reviewed-by: https://github.com/ADKaster ✅
Reviewed-by: https://github.com/kleinesfilmroellchen ✅
21 changed files with 30 additions and 29 deletions
|
@ -43,7 +43,7 @@ static ErrorOr<int> pid_of(String const& process_name, bool single_shot, bool om
|
|||
ErrorOr<int> serenity_main(Main::Arguments args)
|
||||
{
|
||||
TRY(Core::System::pledge("stdio rpath"));
|
||||
TRY(Core::System::unveil("/proc/all", "r"));
|
||||
TRY(Core::System::unveil("/sys/kernel/processes", "r"));
|
||||
TRY(Core::System::unveil("/etc/passwd", "r"));
|
||||
TRY(Core::System::unveil(nullptr, nullptr));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue