]> 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>
Wed, 21 May 2025 14:47:34 +0000 (16:47 +0200)
commit2f769cec448d84a62b7dd0d4ff56978fe22c0cd6
treeea4e696a52fb67f56f0b62a3e18991440132e488
parentd3e0f63fb942b86de41452da0efda7835a951f07
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>
support/support_capture_subprocess.c