1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 03:07:36 +00:00

Userland: Unveil /proc/all in applications which require it

These were missed in 7af5eef. It is needed for any application using
e.g. FileSystemAccessServer.
This commit is contained in:
Timothy Flynn 2022-10-03 09:40:37 -04:00 committed by Linus Groh
parent 25e0ab3ee4
commit 7cab86ad28
9 changed files with 9 additions and 0 deletions

View file

@ -34,6 +34,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
args_parser.add_option(show_sample_progress, "Show playback progress in samples", "sample-progress", 's');
args_parser.parse(arguments);
TRY(Core::System::unveil("/proc/all", "r"));
TRY(Core::System::unveil("/tmp/session/%sid/portal/audio", "rw"));
TRY(Core::System::unveil(Core::File::absolute_path(path), "r"sv));
TRY(Core::System::unveil(nullptr, nullptr));