bug-hurd
[Top][All Lists]
Advanced

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

Re: saved IDs and exec (standard violation?)


From: Marcus Brinkmann
Subject: Re: saved IDs and exec (standard violation?)
Date: Fri, 10 May 2002 22:21:20 +0200
User-agent: Mutt/1.3.28i

Hi,

here is the test program and the Makefile I used to reproduce this.  The
test program does not have a fork() anymore (I had one, but it messed up the
output and wasn't relevant anyway, so I removed it).

Here is the output on GNU/Linux:
marcus@ulysses[0]:/tmp$ make check
cc     savedid-test.c   -o savedid-test
cp savedid-test savedid-test-nogid
sudo chgrp utmp savedid-test
sudo chmod g+s savedid-test
./savedid-test
Startup: Real ID 1005, Effective ID 43.
Preexec: Real ID 1005, Effective ID 1005.
Startup: Real ID 1005, Effective ID 1005.
Seteuid: Real ID 1005, Effective ID 1005.

Here on GNU/Hurd:
marcus@drizzt:~$ make check
cc     savedid-test.c   -o savedid-test
cp savedid-test savedid-test-nogid
sudo chgrp utmp savedid-test
sudo chmod g+s savedid-test
./savedid-test
Startup: Real ID 1000, Effective ID 43.
Preexec: Real ID 1000, Effective ID 1000.
Startup: Real ID 1000, Effective ID 1000.
Seteuid: Real ID 1000, Effective ID 43.

Thanks,
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

Attachment: savedid-test.c
Description: Text Data

Attachment: Makefile
Description: Text document


reply via email to

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