diff options
author | sobomax <sobomax@FreeBSD.org> | 2001-12-31 15:39:27 +0000 |
---|---|---|
committer | sobomax <sobomax@FreeBSD.org> | 2001-12-31 15:39:27 +0000 |
commit | e961887b3fd16cd0a94e022c9e1c33740268f7a4 (patch) | |
tree | 77e720ad443ae9821fa992d395b4828a9ec7989f | |
parent | bfe3fef66cec6ff9d0d22a4d362543debd7c4448 (diff) | |
download | FreeBSD-ports-e961887b3fd16cd0a94e022c9e1c33740268f7a4.zip FreeBSD-ports-e961887b3fd16cd0a94e022c9e1c33740268f7a4.tar.gz |
Set correct group for users' session.
PR: 33372
Submitted by: Joe Marcus Clarke <marcus@marcuscom.com>
-rw-r--r-- | x11/gdm/Makefile | 1 | ||||
-rw-r--r-- | x11/gdm/files/patch-daemon::slave.c | 20 | ||||
-rw-r--r-- | x11/gdm2/Makefile | 1 | ||||
-rw-r--r-- | x11/gdm2/files/patch-daemon::slave.c | 20 |
4 files changed, 42 insertions, 0 deletions
diff --git a/x11/gdm/Makefile b/x11/gdm/Makefile index ac16fc0..cbaf368 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 0000000..bb32516 --- /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 ac16fc0..cbaf368 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 0000000..bb32516 --- /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, |