lkml.org 
[lkml]   [2017]   [Jul]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH v2] xattr: Enable security.capability in user namespaces
    Quoting Eric W. Biederman (ebiederm@xmission.com):
    > "Serge E. Hallyn" <serge@hallyn.com> writes:
    >
    > > Quoting Eric W. Biederman (ebiederm@xmission.com):
    > >> Stefan Berger <"Stefan Bergerstefanb"@linux.vnet.ibm.com> writes:
    > >> > Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
    > >> > Signed-off-by: Serge Hallyn <serge@hallyn.com>
    > >> > Reviewed-by: Serge Hallyn <serge@hallyn.com>
    > >>
    > >> It doesn't look like this is coming through Serge so I don't see how
    > >> the Signed-off-by tag is legtimate.
    > >
    > > This is mostly explained by the fact that there have been a *lot* of
    > > changes, many of them discussed in private emails.
    > >
    > >> >From the replies to this it doesn't look like Serge has reviewed this
    > >> version either.
    > >>
    > >> I am disappointed that all of my concerns about technical feasibility
    > >> remain unaddressed.
    > >
    > > Can you re-state those, or give a link to them?
    >
    > Well I only posted about one substantive comment on the last round
    > so it should be easy to find that said.

    Ok so you are likely referring to http://lkml.org/lkml/2017/6/23/551 ,
    thanks. I had actually read that differently when you sent it, and
    thought it was more to do with the suggestion of putting the nsid
    tags in the middle of the xattr name versus putting it on the end.
    As far as that is concerned, note that no other tags besides uid=
    are currently supported, and only security.capability is being
    namespaced.

    > The big question is how does this intereact with filesystems
    > xattr implementations?
    >
    > There is the potential that we create many more security xattrs this
    > way. How does that scale? With more names etc.
    > What happens if we have one xattr per uid for 1000+ uids?

    Well, that's not the intent here. The goal is *not* to make one fs image
    that satisfies 200k possible uid mappings. The goal is to reconcile the
    support for an unprivileged user to set uid agnostic (within the
    container) file capabilities with the uid namespace's design goals -
    namely root in a container is privileged over the container but
    completely unprivileged wrt the host.

    This is in part why in my previous version I only allowed a single
    namespaced fscap. But I don't think that we have to enforce a
    single fscap - I think it's fair to tell users "go ahead and shoot
    yourself in the foot" performance-wise, if they insist on doing
    this.

    The goal of now putting the root kuid in the name is not to support
    multiple containers, but to have common code supporting
    security.capability and security.ima, and maybe a few more.

    > How does this interact with filesystems optimization of xattr names?
    > For some filesystems they optmize the xattr names, and don't store the
    > entire thing.

    This I have no idea on. Stefan, have you looked at this?

    > > I'd really like to get to a point where unprivileged containers can start
    > > using filecaps - at this point if that means having an extra temporary
    > > file format based on my earlier patchset while we hash this out, that
    > > actually seems worthwhile. But it would of course be ideal if we could
    > > do the name based caps right in the first place.
    >
    > This whole new version has set my review back to square one
    > unfortunately.

    Well it is a whole new approach and whole new patch, so of course that's
    to be expected :(

    -serge

    \
     
     \ /
      Last update: 2017-07-13 02:44    [W:3.833 / U:0.452 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site