1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 15:38:10 +00:00

Kernel: Make File::{chown,chmod} take credentials as input

...instead of getting them from Process::current(). :^)
This commit is contained in:
Andreas Kling 2022-08-21 16:15:29 +02:00
parent c3351d4b9f
commit 006f753647
10 changed files with 26 additions and 23 deletions

View file

@ -346,7 +346,7 @@ ErrorOr<void> Coredump::write()
TRY(write_regions());
TRY(write_notes_segment(builder.bytes()));
return m_description->chmod(0600); // Make coredump file read/writable
return m_description->chmod(Process::current().credentials(), 0600); // Make coredump file read/writable
}
}