]> 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 08:55:26 +0000 (10:55 +0200)
commit1924d341c0acbb9bf9ec77f1971fdb109933d12f
treed953789de2d98026959136826e46f9c0dc6821e0
parent06a70769fd0b2e1f2a3085ad50ab620282bd77b3
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