lkml.org 
[lkml]   [2011]   [Nov]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC] Make Yama pid_ns aware
Quoting Vasiliy Kulikov (segoon@openwall.com):
> Hi Serge,
>
> On Tue, Nov 22, 2011 at 12:13 -0600, Serge Hallyn wrote:
> > Quoting Vasiliy Kulikov (segoon@openwall.com):
> > > As Yama's sysctls are about defining a security policy for the system,
> > > it is reasonable to define it per container in case of LXC containers
> > > (or out-of-tree alternatives like OpenVZ). In my opinion they belong
> > > to pid namespace. With per-pid_ns sysctls it is possible to create
> > > multiple containers with different ptrace, /tmp, etc. policies.
> >
> > tying the ptrace policy to pidns makes some sense, but is it definately
> > what we want?
> >
> > Is the idea that the container should never be able to bypass the
> > restrictions, or should root in the container eventually be able to
> > bypass it as he can on the host?
>
> In-container root already has CAP_SYS_PTRACE, so he can avoid the check
> even if Yama's ptrace policy is enabled.

Well, not necessarily :) But in general.

But still, is turning this on and off per-container, and leaving it off
on the host, something people will reasonably want to do? I'm just
wondering whether adding the extra data on the pidns is worth it. It's
fine if it is, but I'm having a hard time imagining someone using it
like that.

thanks,
-serge


\
 
 \ /
  Last update: 2011-11-22 21:13    [from the cache]
©2003-2011 Jasper Spaans