mirror of
https://github.com/RGBCube/serenity
synced 2025-07-10 05:47:34 +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:
parent
200a5b0649
commit
1b3cac2f42
1 changed files with 0 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue