]> 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 10:13:14 +0000 (12:13 +0200)
commit201f7cdf6ea6a20e9b99803e64e0fde8e84e27d2
tree845cb1fb4fa3b3ce5677f2c3e23fed59f31745c0
parent9585b46cf13d4020daa1f40e603c70742f604c9b
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