From owner-freebsd-stable Sun Oct 6 22:52:42 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 89F3737B401; Sun, 6 Oct 2002 22:52:40 -0700 (PDT) Received: from buck.hyperlink.net.au (buck.hyperlink.net.au [202.174.228.54]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4AACD43E3B; Sun, 6 Oct 2002 22:52:39 -0700 (PDT) (envelope-from michael@hyperlink.net.au) Received: from [172.16.0.55] (jim.hyperlink.net.au [202.174.229.55]) by buck.hyperlink.net.au (8.11.6/8.11.4) with ESMTP id g977BLf16605; Mon, 7 Oct 2002 17:11:22 +1000 Subject: Re: konsole_grantpty From: Michael Samuel To: Norbert Augenstein Cc: freebsd-stable@FreeBSD.ORG, kde@FreeBSD.ORG In-Reply-To: <20021004114820.GA305@seth.augenstein.net> References: <200209261538.06178.john@johnrshannon.com> <20021004114820.GA305@seth.augenstein.net> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 Date: 07 Oct 2002 15:52:05 +1000 Message-Id: <1033969927.33677.15.camel@jim.hyperlink.net.au> Mime-Version: 1.0 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I fixed this problem a while ago, and the konsole maintainers have a patch. Basically, the problem is that the file descriptor used to pass the PTY to konsole_grantpty is 3, but libc_r uses file descriptor 3 internally. This causes the dup2() in TEPty.c to fail (which simply does a quiet exit(1), without printing an error...). You can simply change a #define to fix the problem, but there's still a race condition there, so you're not really secure. A revoke() at the end of konsole_grantpty.c is also required... On Fri, 2002-10-04 at 21:48, Norbert Augenstein wrote: > On Thu, Sep 26, 2002 at 03:37:57PM -0600, John R. Shannon wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA1 > > > > Did you ever resolve this problem: > > > > i get the following message on starting konsole in kde 302, > > > > konsole: chownpty failed for device /dev/ptyp1::/dev/ttyp1. > > : This means the session can be eavesdroped. > > : Make sure konsole_grantpty is installed in > > : /usr/local/bin/ and setuid root. > > > > konsole_grantpty is installed and setuid root on my system > > konsole is running as "user", shouldn't it run as root like xterm > > should i ignore it?? > > > > - -- > > > > John R. Shannon > > john@johnrshannon.com > > -----BEGIN PGP SIGNATURE----- > > Version: GnuPG v1.0.7 (FreeBSD) > > > > iEYEARECAAYFAj2TfjwACgkQOKbCxya4HYs4GgCeLl6jT7lnvonGfuIH3R30fgEz > > f4EAoJmGDYrX5PDCiZpvNsb3cGXMMCcf > > =yddF > > -----END PGP SIGNATURE----- > > No , i never got an answer. i installed 4.7.rc2/kde303 yesterday on my > laptop and the message is still the same. > i will CC to the -stable list, maybe someone on this list can explain > what it means. > > auge > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-stable" in the body of the message -- Michael Samuel Tech Guru michael@hyperlink.net.au =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Hyperlink, a division of The Swish Group Ltd ACN 085 545 973 Level 6, 257 Collins St, Melbourne, VIC 3004 Phone 1300 368 638 Fax +61 3 9211 5406 http://www.hyperlink.net.au =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message