Date: Tue, 7 Sep 2021 17:40:31 -0400 From: Vivek Goyal Message-ID: References: <20210902152228.665959-1-vgoyal@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Virtio-fs] [PATCH v3 0/1] Relax restrictions on user.* xattr List-Id: Development discussions about virtio-fs List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Miklos Szeredi Cc: Giuseppe Scrivano , Theodore Ts'o , Andreas Gruenbacher , SElinux list , Stephen Smalley , Dave Chinner , LKML , virtio-fs-list , casey.schaufler@intel.com, LSM , Alexander Viro , linux-fsdevel , "Fields, Bruce" , Christian Brauner , "Eric W. Biederman" On Mon, Sep 06, 2021 at 04:56:44PM +0200, Miklos Szeredi wrote: > On Mon, 6 Sept 2021 at 16:39, Dr. David Alan Gilbert > wrote: > > > IMHO the real problem here is that the user/trusted/system/security > > 'namespaces' are arbitrary hacks rather than a proper namespacing > > mechanism that allows you to create new (nested) namespaces and associate > > permissions with each one. > > Indeed. > > This is what Eric Biederman suggested at some point for supporting > trusted xattrs within a user namespace: > > | For trusted xattrs I think it makes sense in principle. The namespace > | would probably become something like "trusted.". > > Theory sounds simple enough. Anyone interested in looking at the details? So this namespaced trusted.* xattr domain will basically avoid the need to have CAP_SYS_ADMIN in init_user_ns, IIUC. I guess this is better than giving CAP_SYS_ADMIN in init_user_ns. Vivek