]> git.ipfire.org Git - thirdparty/glibc.git/commit
support: Pick group in support_capture_subprogram_self_sgid if UID == 0
authorFlorian Weimer <fweimer@redhat.com>
Wed, 21 May 2025 14:47:34 +0000 (16:47 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Fri, 20 Jun 2025 09:43:09 +0000 (11:43 +0200)
commit245dffa9ed5709086ff125d9a793e6c9f0cbd813
tree5d82471b7aaf4968e1242118117366968f05f7f2
parent9643281f9c8f37a0b6a2de6683de8858d694bbef
support: Pick group in support_capture_subprogram_self_sgid if UID == 0

When running as root, it is likely that we can run under any group.
Pick a harmless group from /etc/group in this case.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
(cherry picked from commit 2f769cec448d84a62b7dd0d4ff56978fe22c0cd6)
support/support_capture_subprocess.c