Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753894AbbGPBJY (ORCPT ); Wed, 15 Jul 2015 21:09:24 -0400 Received: from mail-lb0-f179.google.com ([209.85.217.179]:34816 "EHLO mail-lb0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752214AbbGPBJR (ORCPT ); Wed, 15 Jul 2015 21:09:17 -0400 MIME-Version: 1.0 In-Reply-To: <55A6E107.3070200@schaufler-ca.com> References: <1436989569-69582-1-git-send-email-seth.forshee@canonical.com> <55A6C448.5050902@schaufler-ca.com> <87vbdlf7vo.fsf@x220.int.ebiederm.org> <55A6E107.3070200@schaufler-ca.com> From: Andy Lutomirski Date: Wed, 15 Jul 2015 18:08:56 -0700 Message-ID: Subject: Re: [PATCH 0/7] Initial support for user namespace owned mounts To: Casey Schaufler Cc: "Eric W. Biederman" , Seth Forshee , Alexander Viro , Linux FS Devel , LSM List , SELinux-NSA , Serge Hallyn , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1453 Lines: 32 On Wed, Jul 15, 2015 at 3:39 PM, Casey Schaufler wrote: > On 7/15/2015 2:06 PM, Eric W. Biederman wrote: >> Casey Schaufler writes: > >> The first step needs to be not trusting those labels and treating such >> filesystems as filesystems without label support. I hope that is Seth >> has implemented. > > A filesystem with Smack labels gets mounted in a namespace. The labels > are ignored. Instead, the filesystem defaults (potentially specified as > mount options smackfsdef="something", but usually the floor label ("_")) > are used, giving the user the ability to read everything and (usually) > change nothing. This is both dangerous (unintended read access to files) > and pointless (can't make changes). I don't get it. If I mount an unprivileged filesystem, then either the contents were put there *by me*, in which case letting me access them are fine, or (with Seth's patches and then some) I control the backing store, in which case I can do whatever I want regardless of what LSM thinks. So I don't see the problem. Why would Smack or any other LSM care at all, unless it wants to prevent me from mounting the fs in the first place? --Andy -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/