Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1332120
| From | David Miller <davem@davemloft.net> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v3] openvswitch: allow management from inside user namespaces |
| Date | 2016-02-11 16:00 +0100 |
| Message-ID | <r10SS-1KU-7@gated-at.bofh.it> (permalink) |
| References | <qYRqI-2CN-39@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
From: Tycho Andersen <tycho.andersen@canonical.com> Date: Fri, 5 Feb 2016 09:20:52 -0700 > Operations with the GENL_ADMIN_PERM flag fail permissions checks because > this flag means we call netlink_capable, which uses the init user ns. > > Instead, let's introduce a new flag, GENL_UNS_ADMIN_PERM for operations > which should be allowed inside a user namespace. > > The motivation for this is to be able to run openvswitch in unprivileged > containers. I've tested this and it seems to work, but I really have no > idea about the security consequences of this patch, so thoughts would be > much appreciated. > > v2: use the GENL_UNS_ADMIN_PERM flag instead of a check in each function > v3: use separate ifs for UNS_ADMIN_PERM and ADMIN_PERM, instead of one > massive one > > Reported-by: James Page <james.page@canonical.com> > Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com> Applied, thanks.
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
Re: [PATCH v3] openvswitch: allow management from inside user namespaces David Miller <davem@davemloft.net> - 2016-02-11 16:00 +0100
csiph-web