Re: login.conf restrictions for suid processes possible? (fwd)

[ Available lists | Index of freebsd-hackers | Month of Aug 1999 | Week of 5 Aug 1999 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Doug <Doug@gorean.org>
Date
5 Aug 1999 12:22:19
Subject
Re: login.conf restrictions for suid processes possible? (fwd)
Message-ID
Pine.BSF.4.05.9908051220350.1799-100000@dt011n65.san.rr.com

In reply to

[ Hide this part ]
On Thu, 5 Aug 1999, Mike Smith wrote:

> > I am working on some resource limit stuff and would like to be
> > able to use login.conf to restrict the number of cgi processes that
> > certain users can run. Unfortunately, the proprietary cgi product we use
> > is owned by root and suid's to the user who owns the script that it is
> > called to run. (This is not what I would call a "good idea," but it's what
> > I have to work with.)
> >
> > I've created a login class with the appropriate permissions, and
> > if I put a test user in that class and test its limits with normal system
> > processes (like ls, sleep, etc.) it follows all the rules. However when I
> > start miva (proprietary cgi) processes for scripts owned by that user, it
> > ignores the limits, presumably because the process starts its life as
> > root.
> >
> > Soooo, the question is, how can I do what I want to do, and if I
> > can't do it with login.conf does anyone have any other suggestions?
> > Specifically I need to restrict the amount of ram and the number of
> > processes on a per user basis. I'm working on a -current system, but I
> > don't think this issue bears directly on -current.
>
> You need to pester the vendor to correctly switch limits when they
> switch UIDs.
>
> Alternatively, if this is unlikely _and_ the application is dynamically
> linked, you could produce a library containing patched set*id functions
> and force it into the app using LD_PRELOAD.

Grrrfl. Ok, that's what I thought, but I do appreciate the
confirmation. We have a pretty good relationship with the vendor so I'll
take that route first.

Thanks,

Doug
--
On account of being a democracy and run by the people, we are the only
nation in the world that has to keep a government four years, no matter
what it does.
-- Will Rogers



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message



Elapsed time: 0.111 seconds