NetBSD Problem Report #17184
Received: (qmail 27327 invoked by uid 605); 7 Jun 2002 01:08:17 -0000
Message-Id: <20020607010818.C5B4D11137@www.netbsd.org>
Date: Thu, 6 Jun 2002 18:08:18 -0700 (PDT)
From: cliff@snipe444.org
Sender: gnats-bugs-owner@netbsd.org
Reply-To: cliff@snipe444.org
To: gnats-bugs@gnats.netbsd.org
Subject: gdm package Browser option does not work correctly on NetBSD
X-Send-Pr-Version: www-1.0
>Number: 17184
>Category: pkg
>Synopsis: gdm package Browser option does not work correctly on NetBSD
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: mjl
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Jun 07 01:09:00 +0000 2002
>Closed-Date: Sat Jul 27 15:21:49 +0000 2002
>Last-Modified: Sat Jul 27 15:21:49 +0000 2002
>Originator: Cliff Wright
>Release: 1.5.2
>Organization:
>Environment:
NetBSD e270644 1.5.2 NetBSD 1.5.2 (e270644) #0: Tue Jun 4 17:53:18 PDT 2002
root@e270644:/usr/src/sys/arch/i386/compile/e270644 i386
>Description:
The gdm package Browser option works correctly under Linux, but
not under NetBSD. I suspect this is due to a security bug in Linux.
Any way I have been using the below patch for some time, so thought
I would turn it in as a possible local patch for the gdm package.
>How-To-Repeat:
In the file /usr/X11R6/etc/gdm/gdm.conf set
Browser=true
and change PidFile from xdm.pid to
PidFile=/var/run/gdm.pid (really another bug)
>Fix:
I used the following patch in /usr/pkgsrc/x11/gdm/work/gdm-2.2.0/gui
--- gdmlogin.c.orig Sun Mar 11 20:24:07 2001
+++ gdmlogin.c Thu Jun 6 17:48:32 2002
@@ -1971,11 +1971,17 @@
const char * const lockout_passes[] = { "*", "!!", NULL };
gint i;
+ /* pw_passwd is set to "*" by NetBSD
+ * because this is a non-root process, however Linux allows
+ * this to be set to the real string.
+ * That is probably a security bug in Linux. cliff */
+#ifdef linux
for (i=0 ; lockout_passes[i] != NULL ; i++) {
if (strcmp (lockout_passes[i], pwent->pw_passwd) == 0) {
return TRUE;
}
}
+#endif
if (GdmExclude != NULL &&
GdmExclude[0] != '\0') {
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->mjl
Responsible-Changed-By: wiz
Responsible-Changed-When: Tue Jun 11 17:17:01 PDT 2002
Responsible-Changed-Why:
mjl is the MAINTAINER of gdm.
State-Changed-From-To: open->closed
State-Changed-By: jschauma
State-Changed-When: Sat Jul 27 08:20:42 PDT 2002
State-Changed-Why:
I applied the patch, with the slight modification that even on
Linux we do not use that piece of code: if shadow-passwords are
used, it's broken there, too. I also adjsuted the name of the
PID-file. Thank you very much for your PR.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.