mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-11 21:52:53 +00:00
Kernel/FileSystem: Remove hardcoded unveil path of /usr/lib/Loader.so
If a program needs to execute a dynamic executable program, then it should unveil /usr/lib/Loader.so by itself and not rely on the Kernel to allow using this binary without any sense of respect to unveil promises being made by the running parent program.
This commit is contained in:
parent
d102ea5f81
commit
03ae9f94cf
Notes:
sideshowbarker
2024-07-17 05:07:50 +09:00
Author: https://github.com/supercomputer7
Commit: 03ae9f94cf
Pull-request: https://github.com/SerenityOS/serenity/pull/15776
Reviewed-by: https://github.com/ADKaster ✅
Reviewed-by: https://github.com/timschumi
1 changed files with 0 additions and 2 deletions
|
@ -886,8 +886,6 @@ ErrorOr<void> VirtualFileSystem::validate_path_against_process_veil(StringView p
|
|||
{
|
||||
if (Process::current().veil_state() == VeilState::None)
|
||||
return {};
|
||||
if (options == O_EXEC && path == "/usr/lib/Loader.so")
|
||||
return {};
|
||||
|
||||
VERIFY(path.starts_with('/'));
|
||||
VERIFY(!path.contains("/../"sv) && !path.ends_with("/.."sv));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue