Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1331766 > unrolled thread

Re: [PATCH v3] openvswitch: allow management from inside user namespaces

Started bypravin shelar <pshelar@ovn.org>
First post2016-02-11 10:20 +0100
Last post2016-02-11 10:20 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH v3] openvswitch: allow management from inside user namespaces pravin shelar <pshelar@ovn.org> - 2016-02-11 10:20 +0100

#1331766 — Re: [PATCH v3] openvswitch: allow management from inside user namespaces

Frompravin shelar <pshelar@ovn.org>
Date2016-02-11 10:20 +0100
SubjectRe: [PATCH v3] openvswitch: allow management from inside user namespaces
Message-ID<r0VzR-6IR-27@gated-at.bofh.it>
On Fri, Feb 5, 2016 at 5:20 PM, Tycho Andersen
<tycho.andersen@canonical.com> wrote:
> 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>
> CC: Eric Biederman <ebiederm@xmission.com>
> CC: Pravin Shelar <pshelar@ovn.org>
> CC: Justin Pettit <jpettit@nicira.com>
> CC: "David S. Miller" <davem@davemloft.net>
> ---
>  include/uapi/linux/genetlink.h |  1 +
>  net/netlink/genetlink.c        |  4 ++++
>  net/openvswitch/datapath.c     | 20 ++++++++++----------
>  3 files changed, 15 insertions(+), 10 deletions(-)
>
Looks good.

Acked-by: Pravin B Shelar <pshelar@ovn.org>

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web