[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-kernel
Subject:    Re: [RFC][PATCH] scripts with stdin replaced
From:       Ralf Baechle <ralf () uni-koblenz ! de>
Date:       1999-07-11 16:59:38
[Download RAW message or body]

On Thu, Jul 08, 1999 at 09:02:09PM -0400, Horst von Brand wrote:

> > I don't see why Perl's mechanism for SUID scripts used on Linux couldn't
> > be expanded to cover capabilites as well.  Except that that would make
> > as small part of Perl the single point of failure in the security system.
> 
> I don't want to trust an all-capable Perl interpreter. Not on a system that
> is important/critical enough to be secured by capabilitites. A clean
> solution is given if the script carries capabilities, the kernel notes this
> and invokes the interpreter with the capabilities the filesystem grants. In
> this case it is useless to trick the interpreter.

As things are right now you can't do this or you'll end up with the same
security problem as for example SUID scripts on SunOS 4 had.

To make things work as you want them a filedescriptor to the SUID script
would have to be passed to the interpreter by binfmt_skript and every
interpreter would have to be changed to take advantage of that.  Otherwise
there is a security hole ...

  Ralf

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic