From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752160AbbJRUOw (ORCPT ); Sun, 18 Oct 2015 16:14:52 -0400 Received: from miglix.eu ([109.239.48.26]:31583 "EHLO mail.miglix.eu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750749AbbJRUOB (ORCPT ); Sun, 18 Oct 2015 16:14:01 -0400 DKIM-Filter: OpenDKIM Filter v2.9.2 mail.miglix.eu 883CE122387 Subject: Re: [PATCH] userns/capability: Add user namespace capability To: Richard Weinberger References: <5622700C.9090107@miglix.eu> Cc: LKML , "Eric W. Biederman" , Al Viro , Serge Hallyn , Andrew Morton , Andy Lutomirski , Christoph Lameter , "Michael Kerrisk (man-pages)" , LSM , "open list:ABI/API" , linux-man From: Tobias Markus Message-ID: <5623FD86.2030609@miglix.eu> Date: Sun, 18 Oct 2015 22:13:58 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 17.10.2015 22:17, Richard Weinberger wrote: > On Sat, Oct 17, 2015 at 5:58 PM, Tobias Markus wrote: >> One question remains though: Does this break userspace executables that >> expect being able to create user namespaces without priviledge? Since >> creating user namespaces without CAP_SYS_ADMIN was not possible before >> Linux 3.8, programs should already expect a potential EPERM upon calling >> clone. Since creating a user namespace without CAP_SYS_USER_NS would >> also cause EPERM, we should be on the safe side. > > In case of doubt, yes it will break existing software. > Hiding user namespaces behind CAP_SYS_USER_NS will not magically > make them secure. > The goal is not to make user namespaces secure, but to limit access to them somewhat in order to reduce the potential attack surface. Please see my reply to Serge for further details.