diff options
author | Andreas Kling <kling@serenityos.org> | 2021-03-10 20:07:08 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-03-10 22:30:02 +0100 |
commit | d677a73b0e7f39013017f1395b698e7e6ca0f6a2 (patch) | |
tree | d1d9ab593573003e7b5d938a592dc4911fa6db50 /Kernel/Syscalls/getuid.cpp | |
parent | cbcf891040e9921ff628fdda668c9738f358a178 (diff) | |
download | serenity-d677a73b0e7f39013017f1395b698e7e6ca0f6a2.zip |
Kernel: Move process extra_gids into protected data :^)
Diffstat (limited to 'Kernel/Syscalls/getuid.cpp')
-rw-r--r-- | Kernel/Syscalls/getuid.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Kernel/Syscalls/getuid.cpp b/Kernel/Syscalls/getuid.cpp index c2c753b9b7..f77c4f9c00 100644 --- a/Kernel/Syscalls/getuid.cpp +++ b/Kernel/Syscalls/getuid.cpp @@ -74,11 +74,11 @@ KResultOr<int> Process::sys$getgroups(ssize_t count, Userspace<gid_t*> user_gids if (count < 0) return EINVAL; if (!count) - return m_extra_gids.size(); - if (count != (int)m_extra_gids.size()) + return extra_gids().size(); + if (count != (int)extra_gids().size()) return EINVAL; - if (!copy_to_user(user_gids, m_extra_gids.data(), sizeof(gid_t) * count)) + if (!copy_to_user(user_gids, extra_gids().data(), sizeof(gid_t) * count)) return EFAULT; return 0; |