🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.bugs.sys5
Article #1006

Re: setuid (euid) after setuid (uid) on System 5

#1006
From: Bob Lenk
Date: Tue, 04 Apr 1989 22:29
11 lines
928 bytes
As numerous folks have said, the saved ID is overwritten when the euid
of the calling process is 0.  Also, in System V Release 2 (all versions
that I know of) a call to setuid(0) was never honored for a
non-superuser, even if the saved uid is 0.  This was not documented, and
I never understood or ascertained a good reason for this, and it was
apparently changed in release 3.  This could explain why one System V
port did not work the same as another.

		Bob Lenk
		hplabs!hpfcla!rml
		rml%hpfcla@hplabs.hp.com
Technical Details
Message-ID: <4930004@hpfcdc.HP.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!ucsd!sdcsvax!ucsdhub!hp-sdd!hplabs!hpfcdc!rml
References: <123@cat.Fulcrum.BT.CO.UK>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!ucsd!sdcsvax!ucsdhub!hp-sdd!hplabs!hpfcdc!rml
From: rml@hpfcdc.HP.COM (Bob Lenk)
Newsgroups: comp.bugs.sys5
Subject: Re: setuid (euid) after setuid (uid) on System 5
Message-ID: <4930004@hpfcdc.HP.COM>
Date: 4 Apr 89 22:29:55 GMT
References: <123@cat.Fulcrum.BT.CO.UK>
Organization: HP Ft. Collins, Co.
Lines: 11