Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp2939897pxb; Mon, 6 Sep 2021 08:39:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw6/qhOeLnrrk+9CAmpWK6uC6hTQnkbQX7lAy5ZqKtmZkmSiQiPNKF9V1va9KnsdFfysidD X-Received: by 2002:a92:cda9:: with SMTP id g9mr8440200ild.18.1630942756063; Mon, 06 Sep 2021 08:39:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630942756; cv=none; d=google.com; s=arc-20160816; b=kmq9H7b8r8o7KSqesU04tDjlZnxX4gabEB5fpp36vCaepTPjh11G/JGSqglY0vo463 4NfYIYkzGXthMI6DO9JHCmuApGroCNIfzGvmgHp2ThRJq87E1txGdcANFTLSMK8XW8ON HgsAXw1oWvdZMZFFaaC0DB5O7vzXNzAf8kqXoimJlPsVBit//Z7Z5C5lSgSYodmhU6bk poMtmtWbPPkS7k/BV2RZCimwzQY3CdiJZej9A6aU3wN/b3LtmM5Q4lYfmEl2WRA4NxEo 7+zZXl3zKn25JqDryrLCTr9ByG5q+jxc5xe3iJf6AXWy7NoL5sAW2Zz09Y++nplIriEC /8Rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=+wm+1SxyPhgZ2xyPaqVHOlIIYUpLoXtqsuq+0VC3Sjc=; b=iRgex+0xtIlTxxV9XXy0K7keWC5hpykhtdwneMghe1CVzAbab14Ui2koI7WaoaosNW tLA63a2gkpUg2MJeRA4Mr+ispq9ls7znbnWzUCa1+QC+BzEcJpVcVhhtWeVv1ahOOBey J7HxmP28YjbyiGm8gLv8yyPL2zbewyeVMcQg7F1U2LKvbcbxgfiYyHNPdMSVfXQuJ7BD loIAS4u/TgNpIGy1z/0a1Tr33v12W4BvzQIPuvyIZYVPESoiX3E/RyJk2XENshLPMgR+ tFb5oPO/lD79dAHDfPkLnvhWTF2z8aCDN7pW4H4dNATGzHcuQL0TNLccZwKQXXBDzWMF 8/hA== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=moj6OWG2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x19si7237781ilc.166.2021.09.06.08.39.04; Mon, 06 Sep 2021 08:39:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=moj6OWG2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243692AbhIFO6E (ORCPT + 99 others); Mon, 6 Sep 2021 10:58:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243640AbhIFO6A (ORCPT ); Mon, 6 Sep 2021 10:58:00 -0400 Received: from mail-vk1-xa30.google.com (mail-vk1-xa30.google.com [IPv6:2607:f8b0:4864:20::a30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 08FCEC061575 for ; Mon, 6 Sep 2021 07:56:56 -0700 (PDT) Received: by mail-vk1-xa30.google.com with SMTP id t19so2285756vkk.2 for ; Mon, 06 Sep 2021 07:56:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=szeredi.hu; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=+wm+1SxyPhgZ2xyPaqVHOlIIYUpLoXtqsuq+0VC3Sjc=; b=moj6OWG2vw6GntXNWeTQgm7Smvy1QpBa4fBHcAMupAuzUukRol/FdrWgU5z93l3NPQ 6MKcKRVOHIc1gnlY06/SaTKFIeV+7N4mqBXunJXSVgBRCYLv1sIi2A1t7PSoceroEu42 nlrzfwR/cKNVYtbEIrt0+iEauNFt1iHYtCXY0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=+wm+1SxyPhgZ2xyPaqVHOlIIYUpLoXtqsuq+0VC3Sjc=; b=LY34o7Hb31+512vgSJqEJHlZxLAU5mfSaMTCMifVQA4yVdCcfGrycHdnsqBGPQJYzw UGMKnETc3JXl39hAn8HnRgz5Z3UPWYiBF4QfjfvdboQCscpjMgh8T6qyQi3kQXAmcJrk uRQ4G9jNcaLs2TjEGtVxDm1hHOUWXFf7IuWQkNFEnvAIwF3Oww8UVvt7LXaXJWzNrv7v Ges9PIyb3YUPgVFeMF7btKzcQ/mAyy/k+q+NhsJHJsKXyLQBchalj1Wm2BOhFR1hwMCh l0cfY6harqdhrkAwzP18I2TSMnlBIkt6Wli9emp5ihhwj3PsThTBDF3fSVUxzeh0YI4t R4+w== X-Gm-Message-State: AOAM533o/8LLqQH1zqljk1tSQcIrlLEiAmAPgWwG6C02V3rzWu2WqR33 /exB/JmLCK/p+ws7TJKNhD7QmrPW6WCgGxKmP+t0Ow== X-Received: by 2002:a05:6122:1430:: with SMTP id o16mr5404231vkp.14.1630940215149; Mon, 06 Sep 2021 07:56:55 -0700 (PDT) MIME-Version: 1.0 References: <20210902152228.665959-1-vgoyal@redhat.com> In-Reply-To: From: Miklos Szeredi Date: Mon, 6 Sep 2021 16:56:44 +0200 Message-ID: Subject: Re: [PATCH v3 0/1] Relax restrictions on user.* xattr To: "Dr. David Alan Gilbert" Cc: Andreas Gruenbacher , Vivek Goyal , Alexander Viro , linux-fsdevel , LKML , virtio-fs-list , Daniel J Walsh , Christian Brauner , casey.schaufler@intel.com, LSM , SElinux list , "Theodore Ts'o" , Giuseppe Scrivano , "Fields, Bruce" , Stephen Smalley , Dave Chinner , "Eric W. Biederman" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? Thanks, Miklos