Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp212751pxb; Thu, 2 Sep 2021 23:59:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwEVPd/5BR9+rfnH3LEbby1tA6PnxRv1AQzrVylwtby1dylF4RnmQVJKr4YvxbU2EcNCYn+ X-Received: by 2002:a05:6402:1455:: with SMTP id d21mr2419684edx.161.1630652345836; Thu, 02 Sep 2021 23:59:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630652345; cv=none; d=google.com; s=arc-20160816; b=id1ofy/GQQgK/3lErKhCCRaOyfriUpzLetjsuBZSeU4GwqXcZpt3b4gtn1snL9SYlY UC5PbxNjdz6Ch9si7lymYiCwSjfAPigCxIDTmO8xrEENx+InA3OXnYzXfOhRcYLTZDIA p9MALh+7XnBk2HYDKjWfCSbCsH3NhIypCuOY5AKFnDWOVrMdh5yNMzMjaxftS4s0GPbz pg/fEpnwxHtXudSdCo2/4mQuqj+9/DCWvsXlX0vRI3wSnQ4gGJKVEnQkvm9pwLyeNudY 1DKzRSaxyLpq1Dh5I/j20FAxn7ZiuRgfs0cS83vfMP2+914g1KMlEudq2kdIPIBzCO2C lY7A== 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=CMU0FH7DhLi0oHnmcQCBzsX4HoHYqzZdV2dtgL7VZJc=; b=bukYX2zeptZ58k9BWetkxtRR7jVj2K08+CZ9kcCiOxYvl/nEalBJnJGFcMZqFe9LEa 1x7jfWzFik3FaFcz9XEaGFTcWqRQhyYR5MEzKKjrRvQ7Y83TEzKYWC+QewOUqdHjrypB temH1nTzz+4wkg+aC1rILeZBVEySYm6QCN3OqNb40xEd1ZnIzvp5X05JKzMmwkqsM93n fQLabHyBnSorAQXGs4ZgAimQ5eJQMj+TaMDl0cJN4oR7O/z00EWUbXgo7OeoR/WrbhVU VU9Q6q3bsVvGeobhWnuOEq8NMOKSUEEtgJCVl9hakUkWw5n7vIS2jmttjZpL4EZo+f9w vI0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ImvSd75l; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m15si4265327ejb.569.2021.09.02.23.58.42; Thu, 02 Sep 2021 23:59:05 -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=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ImvSd75l; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347505AbhICG53 (ORCPT + 99 others); Fri, 3 Sep 2021 02:57:29 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:36002 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347516AbhICG5V (ORCPT ); Fri, 3 Sep 2021 02:57:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1630652181; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=CMU0FH7DhLi0oHnmcQCBzsX4HoHYqzZdV2dtgL7VZJc=; b=ImvSd75lhKyg+s6ZZKV5gbBfyYHXh7u+7vvpkv8dnmBYGFkWVMHqlJZcV7CJ0JPXD/x//m 2xLAA0fHHKUlCw4Iy7fhoXbmfOsVKJJSPrilK5owMMOpJlRmltVF8VRvaANk83vu4cLCmI 0etvoKkfNy6TOo78KDLE3RtG6XSRenI= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-433-vD7W8U9QPh6xkIikXOLB7Q-1; Fri, 03 Sep 2021 02:56:21 -0400 X-MC-Unique: vD7W8U9QPh6xkIikXOLB7Q-1 Received: by mail-wm1-f71.google.com with SMTP id y188-20020a1c7dc5000000b002e80e0b2f87so2263665wmc.1 for ; Thu, 02 Sep 2021 23:56:20 -0700 (PDT) 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=CMU0FH7DhLi0oHnmcQCBzsX4HoHYqzZdV2dtgL7VZJc=; b=aKY9i6WoYLChw+zznTbesYbNor0WJ3OTIs5Yb/JgiTEgQcXeNovWYsqJI+XLZJ/rXb /x+KLkPoKkHiUzfBB3TWB+G0R8f+zrGIKNbEXWPq9v7A0JWi2i6raRTRAYHa9+cATpAH no52oFMIssS24YrAc6wHCrqo7eK52bGrYclg2Utn4NloY8wvb1q8/2B4vWasW2GaoRTx g6NdM1tQx2zjrw8LCfXhvMUT2NW0mY0VXQfY8aXMSGighGOQzQ1T3BkmAuOL0M7ovUAK LAxNM4AK7brCHltC6R6mjqAjTINqLBCnp3TIe6fj6dJa0roYZlrYiennGRJMe6FChE2z 1i4w== X-Gm-Message-State: AOAM533uGmuVeYb8OkHeGLTg5tPG9vqZk1RceMscpxUT3FSZjHWw1HCB QSot7yIcUh1jKC1K6YmWLpBF6kSDKnLnzeh7VIsTHHPRHOlYq8/aYg51uneLYJw7jFlhX6MVnJY AsWaMndj2qJMv9Awq8kVBCACz96i+dlCgBq6A945V X-Received: by 2002:a05:600c:1c08:: with SMTP id j8mr1757635wms.27.1630652179845; Thu, 02 Sep 2021 23:56:19 -0700 (PDT) X-Received: by 2002:a05:600c:1c08:: with SMTP id j8mr1757607wms.27.1630652179603; Thu, 02 Sep 2021 23:56:19 -0700 (PDT) MIME-Version: 1.0 References: <20210902152228.665959-1-vgoyal@redhat.com> In-Reply-To: From: Andreas Gruenbacher Date: Fri, 3 Sep 2021 08:56:08 +0200 Message-ID: Subject: Re: [PATCH 3/1] xfstests: generic/062: Do not run on newer kernels To: Vivek Goyal Cc: fstests , linux-fsdevel , LKML , virtio-fs@redhat.com, dwalsh@redhat.com, dgilbert@redhat.com, christian.brauner@ubuntu.com, casey.schaufler@intel.com, LSM , selinux@vger.kernel.org, "Theodore Ts'o" , Miklos Szeredi , gscrivan@redhat.com, "Fields, Bruce" , stephen.smalley.work@gmail.com, Dave Chinner , Alexander Viro Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 3, 2021 at 8:31 AM Andreas Gruenbacher wrote: > On Thu, Sep 2, 2021 at 5:47 PM Vivek Goyal wrote: > > xfstests: generic/062: Do not run on newer kernels > > > > This test has been written with assumption that setting user.* xattrs will > > fail on symlink and special files. When newer kernels support setting > > user.* xattrs on symlink and special files, this test starts failing. > > It's actually a good thing that this test case triggers for the kernel > change you're proposing; that change should never be merged. The > user.* namespace is meant for data with the same access permissions as > the file data, and it has been for many years. We may have > applications that assume the existing behavior. In addition, this > change would create backwards compatibility problems for things like > backups. > > I'm not convinced that what you're actually proposing (mapping > security.selinux to a different attribute name) actually makes sense, > but that's a question for the selinux folks to decide. Mapping it to a > user.* attribute is definitely wrong though. The modified behavior > would affect anybody, not only users of selinux and/or virtiofs. If > mapping attribute names is actually the right approach, then you need > to look at trusted.* xattrs, which exist specifically for this kind of > purpose. You've noted that trusted.* xattrs aren't supported over nfs. > That's unfortunate, but not an acceptable excuse for messing up user.* > xattrs. Another possibility would be to make selinux use a different security.* attribute for this nested selinux case. That way, the "host" selinux would retain some control over the labels the "guest" uses. Thanks, Andreas