mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:38:11 +00:00
Kernel: Use Process::credentials() and remove user ID/group ID helpers
Move away from using the group ID/user ID helpers in the process to allow for us to take advantage of the immutable credentials instead.
This commit is contained in:
parent
8026d8926c
commit
f86b671de2
27 changed files with 109 additions and 94 deletions
|
@ -206,7 +206,8 @@ ErrorOr<void> PerformanceEventBuffer::to_json_impl(Serializer& object) const
|
|||
TRY(strings.finish());
|
||||
}
|
||||
|
||||
bool show_kernel_addresses = Process::current().is_superuser();
|
||||
auto current_process_credentials = Process::current().credentials();
|
||||
bool show_kernel_addresses = current_process_credentials->is_superuser();
|
||||
auto array = TRY(object.add_array("events"sv));
|
||||
bool seen_first_sample = false;
|
||||
for (size_t i = 0; i < m_count; ++i) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue