aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2001-12-31 23:39:27 +0800
committersobomax <sobomax@FreeBSD.org>2001-12-31 23:39:27 +0800
commite961887b3fd16cd0a94e022c9e1c33740268f7a4 (patch)
tree77e720ad443ae9821fa992d395b4828a9ec7989f
parentbfe3fef66cec6ff9d0d22a4d362543debd7c4448 (diff)
downloadfreebsd-ports-gnome-e961887b3fd16cd0a94e022c9e1c33740268f7a4.tar.gz
freebsd-ports-gnome-e961887b3fd16cd0a94e022c9e1c33740268f7a4.tar.zst
freebsd-ports-gnome-e961887b3fd16cd0a94e022c9e1c33740268f7a4.zip
Set correct group for users' session.
PR: 33372 Submitted by: Joe Marcus Clarke <marcus@marcuscom.com>
-rw-r--r--x11/gdm/Makefile1
-rw-r--r--x11/gdm/files/patch-daemon::slave.c20
-rw-r--r--x11/gdm2/Makefile1
-rw-r--r--x11/gdm2/files/patch-daemon::slave.c20
4 files changed, 42 insertions, 0 deletions
diff --git a/x11/gdm/Makefile b/x11/gdm/Makefile
index ac16fc0237bd..cbaf368b0d02 100644
--- a/x11/gdm/Makefile
+++ b/x11/gdm/Makefile
@@ -7,6 +7,7 @@
PORTNAME= gdm
PORTVERSION= 2.2.5.3
+PORTREVISION= 1
CATEGORIES= x11 gnome
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= stable/sources/gdm
diff --git a/x11/gdm/files/patch-daemon::slave.c b/x11/gdm/files/patch-daemon::slave.c
new file mode 100644
index 000000000000..bb3251603058
--- /dev/null
+++ b/x11/gdm/files/patch-daemon::slave.c
@@ -0,0 +1,20 @@
+
+$FreeBSD$
+
+--- daemon/slave.c.orig Fri Dec 7 07:56:17 2001
++++ daemon/slave.c Mon Dec 31 17:30:30 2001
+@@ -1860,7 +1860,13 @@
+ setpgid (0, 0);
+
+ umask (022);
+-
++
++ /* setup the user's correct group */
++ if (setgid (pwent->pw_gid) < 0)
++ gdm_child_exit (DISPLAY_REMANAGE, _("gdm_slave_session_start: Could not setgid %d. Aborting."), pwent->pw_gid);
++ if (initgroups (login, pwent->pw_gid) < 0)
++ gdm_child_exit (DISPLAY_REMANAGE, _("gdm_slave_session_start: initgroups() failed for %s. Aborting."), login);
++
+ /* setup the verify env vars */
+ if ( ! gdm_verify_setup_env (d))
+ gdm_child_exit (DISPLAY_REMANAGE,
diff --git a/x11/gdm2/Makefile b/x11/gdm2/Makefile
index ac16fc0237bd..cbaf368b0d02 100644
--- a/x11/gdm2/Makefile
+++ b/x11/gdm2/Makefile
@@ -7,6 +7,7 @@
PORTNAME= gdm
PORTVERSION= 2.2.5.3
+PORTREVISION= 1
CATEGORIES= x11 gnome
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= stable/sources/gdm
diff --git a/x11/gdm2/files/patch-daemon::slave.c b/x11/gdm2/files/patch-daemon::slave.c
new file mode 100644
index 000000000000..bb3251603058
--- /dev/null
+++ b/x11/gdm2/files/patch-daemon::slave.c
@@ -0,0 +1,20 @@
+
+$FreeBSD$
+
+--- daemon/slave.c.orig Fri Dec 7 07:56:17 2001
++++ daemon/slave.c Mon Dec 31 17:30:30 2001
+@@ -1860,7 +1860,13 @@
+ setpgid (0, 0);
+
+ umask (022);
+-
++
++ /* setup the user's correct group */
++ if (setgid (pwent->pw_gid) < 0)
++ gdm_child_exit (DISPLAY_REMANAGE, _("gdm_slave_session_start: Could not setgid %d. Aborting."), pwent->pw_gid);
++ if (initgroups (login, pwent->pw_gid) < 0)
++ gdm_child_exit (DISPLAY_REMANAGE, _("gdm_slave_session_start: initgroups() failed for %s. Aborting."), login);
++
+ /* setup the verify env vars */
+ if ( ! gdm_verify_setup_env (d))
+ gdm_child_exit (DISPLAY_REMANAGE,