mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-01 14:18:15 +00:00
Kernel: Don't forget about unveiled paths with zero permissions
We need to keep these around, otherwise the calling process can remove and re-add a path to increase its permissions.
This commit is contained in:
@@ -4657,10 +4657,6 @@ int Process::sys$unveil(const Syscall::SC_unveil_params* user_params)
|
||||
if (unveiled_path.path == path.value()) {
|
||||
if (new_permissions & ~unveiled_path.permissions)
|
||||
return -EPERM;
|
||||
if (!new_permissions) {
|
||||
m_unveiled_paths.remove(i);
|
||||
return 0;
|
||||
}
|
||||
unveiled_path.permissions = new_permissions;
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user