Re: [PATCH 0/3] Taming execve, setuid, and LSMs

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Serge E. Hallyn
Date: Wednesday, April 21, 2010 - 3:30 pm

Quoting Andrew Lutomirski (luto@mit.edu):

I think at this point we've lost track of exactly what we're trying
to do.

The goal, at least for myself and (I think) Eric, was to prevent
certain changes in environment, initiated by an unprivileged user,
from confusing setuid-root programs (initiated by the user).

A concrete example was the proposed disablenet feature, with which
an unprivileged task can remove its ability to open any new network
connections.

With that in mind, I think option 1 is actually the best option.
I especially hate option 2 because of the resulting temptation to
fudge with pE  :)  If you're going to fudge with pE, then IMO it
MUST be done in a new securebits mode.

Now actually, re-reading my msg, given our original goal, I dare
say that Andrew Morgan's approach of simply returning -EPERM for
any app which tries to setuid or change privileges on exec just
might be the sanest way, at least to start with.

-serge
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/3] Taming execve, setuid, and LSMs, Andy Lutomirski, (Fri Mar 26, 6:38 am)
Re: [PATCH 0/3] Taming execve, setuid, and LSMs, Serge E. Hallyn, (Mon Apr 19, 10:26 am)
Re: [PATCH 0/3] Taming execve, setuid, and LSMs, Andrew Lutomirski, (Mon Apr 19, 2:32 pm)
Re: [PATCH 0/3] Taming execve, setuid, and LSMs, Serge E. Hallyn, (Mon Apr 19, 2:39 pm)
Re: [PATCH 0/3] Taming execve, setuid, and LSMs, Andrew Lutomirski, (Mon Apr 19, 3:02 pm)
Re: [PATCH 0/3] Taming execve, setuid, and LSMs, Serge E. Hallyn, (Mon Apr 19, 3:25 pm)
Re: [PATCH 0/3] Taming execve, setuid, and LSMs, Stephen Smalley, (Tue Apr 20, 5:37 am)
Re: [PATCH 0/3] Taming execve, setuid, and LSMs, Andrew Lutomirski, (Tue Apr 20, 7:23 am)
Re: [PATCH 0/3] Taming execve, setuid, and LSMs, Serge E. Hallyn, (Tue Apr 20, 7:35 am)
Re: [PATCH 0/3] Taming execve, setuid, and LSMs, Andrew Lutomirski, (Tue Apr 20, 8:11 am)
Re: [PATCH 0/3] Taming execve, setuid, and LSMs, Stephen Smalley, (Tue Apr 20, 8:34 am)
Re: [PATCH 0/3] Taming execve, setuid, and LSMs, Andrew Lutomirski, (Tue Apr 20, 8:53 am)
Re: [PATCH 0/3] Taming execve, setuid, and LSMs, Andrew Lutomirski, (Tue Apr 20, 6:37 pm)
Re: [PATCH 0/3] Taming execve, setuid, and LSMs, Serge E. Hallyn, (Tue Apr 20, 7:25 pm)
Re: [PATCH 0/3] Taming execve, setuid, and LSMs, Stephen Smalley, (Wed Apr 21, 5:34 am)
Re: [PATCH 0/3] Taming execve, setuid, and LSMs, Andrew Lutomirski, (Wed Apr 21, 2:15 pm)
Re: [PATCH 0/3] Taming execve, setuid, and LSMs, Serge E. Hallyn, (Wed Apr 21, 3:30 pm)
Re: [PATCH 0/3] Taming execve, setuid, and LSMs, Andy Lutomirski, (Wed Apr 21, 4:42 pm)