1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
|
Author: Rhonda D'Vine <rhonda@debian.org> vim:ft=diff:
Description: call initgroups to get supplementary groups for processes
(BTS #146145)
Index: rungetty-1.2/rungetty.c
===================================================================
--- rungetty-1.2.orig/rungetty.c
+++ rungetty-1.2/rungetty.c
@@ -597,6 +597,7 @@ main (int argc, char **argv)
mingetty_login (logname, tty);
setgid (u_group->gr_gid);
+ initgroups (user->pw_name, user->pw_gid);
setuid (user->pw_uid);
if (progpath)
|