Great Circle Associates Majordomo-Users
(November 1992)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: Re: Help with perl's security checks
From: chk @ alias . com (C. Harald Koch)
Date: Thu, 19 Nov 1992 14:15:38 -0500
To: brent @ GreatCircle . COM (Brent Chapman)
Cc: majordomo-users @ GreatCircle . COM
In-reply-to: <9211191812.AA13001@mycroft.GreatCircle.COM> from "Brent Chapman" at Nov 19, 92 01:12:28 pm

> It looks like you're tripping over perl's "dataflow security" code.
> This probably means there's a problem with the "wrapper" program.

Thanks, this was the problem.
> 
> Is "wrapper" installed set-uid and set-gid as the Makefile shows?

Yes.

> What OS and release are you running?

Silicon Graphics' IRIX 4.0.1

> If your system as "id" (it's "/usr/bin/id" under SunOS 4.x), symlink
> it into the W_BIN directory, and do "wrapper id" to see what it tells
> you.  It should tell you that it's running with the uid defined as
> W_USER in the Makefile, and group W_GROUP.  If it's not, then wrapper
> isn't working on your system; you may need to fiddle with the "setuid"
> and "setgid" stuff within it to get the desired effect.

setuid on IRIX seems "strange":

	if euid is 0, then ruid and euid are set.
	if euid is not 0, then euid is set *only* to ruid or to saved euid.

In otherwords, the setuid(geteuid()) call was failing, because setuid
doesn't allow this. I changed the code to setruid(geteuid) and it works fine.

I suspect this is the SYSV semantics of the setuid() call; I've replied to
the list because others may run into the same problem.

Thanks for the pointers; I had assumed (incorrectly) that wrapper was
working!

-- 
Main's Law: For every       | C. Harald Koch  Alias Research, Inc. Toronto, ON
action, there is an equal   | chk@alias.com                (work-related mail)
and opposite goverment      | chk@gpu.utcs.utoronto.ca     (permanent address)
program.                    | VE3TLA@VE3OY.#SCON.ON.CA.NA            (AMPRNet)



References:
Indexed By Date Previous: Re: Help with perl's security checks
From: Brent Chapman <brent@GreatCircle.COM>
Next: Re: Help with perl's security checks
From: Brent Chapman <brent@GreatCircle.COM>
Indexed By Thread Previous: Re: Help with perl's security checks
From: Brent Chapman <brent@GreatCircle.COM>
Next: Re: Help with perl's security checks
From: Brent Chapman <brent@GreatCircle.COM>

Google
 
Search Internet Search www.greatcircle.com