bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug#97342: marked as done (hurd: getegid() fails)


From: Debian Bug Tracking System
Subject: Bug#97342: marked as done (hurd: getegid() fails)
Date: Sun, 13 May 2001 13:33:02 -0500

Your message dated Sun, 13 May 2001 20:24:50 +0200
with message-id <20010513202449.B378@ulysses.dhis.net>
and subject line Bug#97342: hurd: getegid() fails
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Darren Benham
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 13 May 2001 16:09:55 +0000
>From Marcus.Brinkmann@ruhr-uni-bochum.de Sun May 13 11:09:55 2001
Return-path: <Marcus.Brinkmann@ruhr-uni-bochum.de>
Received: from sunu422.rz.ruhr-uni-bochum.de [134.147.64.14] 
        by master.debian.org with smtp (Exim 3.12 1 (Debian))
        id 14yyRO-0000Bj-00; Sun, 13 May 2001 11:09:55 -0500
Received: (qmail 24720 invoked by alias); 13 May 2001 16:09:53 -0000
Received: (qmail 24707 invoked from network); 13 May 2001 16:09:53 -0000
Received: from dialppp-7-59.rz.ruhr-uni-bochum.de (HELO localhost) 
(mail@134.147.7.59)
  by mailhost.rz.ruhr-uni-bochum.de with SMTP; 13 May 2001 16:09:53 -0000
Received: from marcus by localhost with local (Exim 3.22 #1 (Debian))
        id 14yyQN-00008G-00; Sun, 13 May 2001 18:08:51 +0200
From: Marcus.Brinkmann@ruhr-uni-bochum.de
Subject: hurd: getegid() fails
To: submit@bugs.debian.org
X-Mailer: bug 3.3.9
Message-Id: <E14yyQN-00008G-00@localhost>
Sender: Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>
Date: Sun, 13 May 2001 18:08:51 +0200
Organization: Marcus Brinkmann's Home
Delivered-To: submit@bugs.debian.org

Package: hurd
Version: N/A
Severity: normal

Hi,

I found out why screen complains about /var/run/screen permissions.  screen
runs as root.utmp, 02755, and expects utmp as its effective group id.

The following program fails:

main()
{
  printf ("%i\n", getegid();
}

$ make getegid
$ ./getegid
0
$ chgrp root.utmp getegid; chmod 02755 getegid
$ ./getegid
0

The expected value in the last run is 43 (or whatever the gid of utmp is on
your system).

Thanks,
Marcus

-- System Information
Debian Release: testing/unstable
Kernel Version: Linux ulysses 2.4.0-test9 #1 Mon Okt 30 20:36:05 CET 2000 i686 
unknown


---------------------------------------
Received: (at 97342-done) by bugs.debian.org; 13 May 2001 18:25:28 +0000
>From Marcus.Brinkmann@ruhr-uni-bochum.de Sun May 13 13:25:28 2001
Return-path: <Marcus.Brinkmann@ruhr-uni-bochum.de>
Received: from sunu422.rz.ruhr-uni-bochum.de [134.147.64.14] 
        by master.debian.org with smtp (Exim 3.12 1 (Debian))
        id 14z0YZ-0005CG-00; Sun, 13 May 2001 13:25:28 -0500
Received: (qmail 22405 invoked by alias); 13 May 2001 18:25:26 -0000
Received: (qmail 22398 invoked from network); 13 May 2001 18:25:25 -0000
Received: from dialppp-5-43.rz.ruhr-uni-bochum.de (HELO localhost) 
(mail@134.147.5.43)
  by mailhost.rz.ruhr-uni-bochum.de with SMTP; 13 May 2001 18:25:25 -0000
Received: from marcus by localhost with local (Exim 3.22 #1 (Debian))
        for 97342-done@bugs.debian.org
        id 14z0Y0-00007O-00; Sun, 13 May 2001 20:24:52 +0200
Date: Sun, 13 May 2001 20:24:50 +0200
From: Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>
To: 97342-done@bugs.debian.org
Subject: Re: Bug#97342: hurd: getegid() fails
Message-ID: <20010513202449.B378@ulysses.dhis.net>
References: <E14yyQN-00008G-00@localhost>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.3.15i
In-Reply-To: <E14yyQN-00008G-00@localhost>; from 
Marcus.Brinkmann@ruhr-uni-bochum.de on Sun, May 13, 2001 at 06:08:51PM +0200
Sender: Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>
Organization: Marcus Brinkmann's Home
Delivered-To: 97342-done@bugs.debian.org

On Sun, May 13, 2001 at 06:08:51PM +0200, Marcus.Brinkmann@ruhr-uni-bochum.de 
wrote:
> The following program fails:
> 
> main()
> {
>   printf ("%i\n", getegid();
> }
> 
> $ make getegid
> $ ./getegid
> 0
> $ chgrp root.utmp getegid; chmod 02755 getegid
> $ ./getegid
> 0

Fact is, that the user id is always used.
The following change in libdiskfs should fix it:

2001-05-13  Marcus Brinkmann  <marcus@gnu.org>

        * file-exec.c: Initialize GID with st_gid rather than st_uid.

Marcus

-- 
`Rhubarb is no Egyptian god.' Debian http://www.debian.org brinkmd@debian.org
Marcus Brinkmann              GNU    http://www.gnu.org    marcus@gnu.org
Marcus.Brinkmann@ruhr-uni-bochum.de
http://www.marcus-brinkmann.de



reply via email to

[Prev in Thread] Current Thread [Next in Thread]