Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp589411pxb; Fri, 3 Sep 2021 08:46:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwSbmTUFdvTFWy2PbDpWob9BSt12H9DprdnvUhE28y945Qa4ifvls13UggBGhHx6owpRWmV X-Received: by 2002:a1c:a187:: with SMTP id k129mr9099158wme.66.1630683959662; Fri, 03 Sep 2021 08:45:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630683959; cv=none; d=google.com; s=arc-20160816; b=oDYr6eIZGDt8eiFbri6Q3NdC1f+mp3eHSymIf2akuo/rRMVjXjgDgFLex+OnmUQ41P dwPQHpi4DqJ/lleHxRoLmWeX4P4At7HhTjUe6qU8xpp4zbTBwFszwaLF8ZwhgA5gEr6N zC5BZ1xa8qu8mAYeyqOkzNZhD8aHhb/FfumVlFx1gSgvU/xr3uV7b0a8fmhD/jcjEs1J /W3lfNxyc7RVxqVomXRGJuWIfTjsDJlDZpdfdl3RKEqAVjnkoEi8J6QpkNLfZ2J3FaYt 4FQ5a+Yu1cApquIiQTaHDcrtidmKDXqolPQgmGhMw81EuzNOwhUT9V14nPQCfwoeez0f BJIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=rmz5dxCT3Is+5LUh/Dfik2OQKMSHi9rWSjYepBCE0qk=; b=CBViO0yIf0Wwnvzzse2hU6IKvoSrKcrwjnD4YjdEVTZIO+oC4edcDqm/NyEYxo/mV0 r4PkBDt6I+PZB953kUPfIKScPETRUf9Z9+PaFknrtoAbrUK7IH24/MTsYGEVWSXb+3HV vddsSCao3+uYIKO7cfG2HLfyernJ4CpWSPUCN/2c91OW9JYCw53oD1FEc4OEuZxjfhqE s35ItdVedbBN/1q8mvaSeKzEjJLzz3r+503JJkoZccIepkmvOvYkFMMT+4grJZ5DvkbK DgK1RupVZWXqjJTWWidlos9/QHoc0gChoLqZVXkhXtGwR3HmR7beRpBfUX935bR3pWFn qXdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=AOVz9j6w; 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 k7si5836765ejo.10.2021.09.03.08.45.33; Fri, 03 Sep 2021 08:45:59 -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=AOVz9j6w; 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 S235553AbhICPoR (ORCPT + 99 others); Fri, 3 Sep 2021 11:44:17 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:25278 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349566AbhICPoQ (ORCPT ); Fri, 3 Sep 2021 11:44:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1630683795; 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=rmz5dxCT3Is+5LUh/Dfik2OQKMSHi9rWSjYepBCE0qk=; b=AOVz9j6wv3p9kagILNYnQFvJRQ/U4Xu8jmIVM2N+I+kPkx6FRW80BM8yA+n2s0gG+WrteI wim2iQgAWuG1diD1vfnhriOOelW+KtgbAfa4eY2WQCXZECOEErNbSFfuSsB1dGGk1jwEjW N8y0tqUE+rcABr0wGREJh8m2jWgdWFQ= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-56-WRLuUvTaPnKLFlvUthyY4g-1; Fri, 03 Sep 2021 11:43:14 -0400 X-MC-Unique: WRLuUvTaPnKLFlvUthyY4g-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id ECACC1883527; Fri, 3 Sep 2021 15:43:12 +0000 (UTC) Received: from horse.redhat.com (unknown [10.22.8.130]) by smtp.corp.redhat.com (Postfix) with ESMTP id 14A091036B3E; Fri, 3 Sep 2021 15:43:09 +0000 (UTC) Received: by horse.redhat.com (Postfix, from userid 10451) id A454C220257; Fri, 3 Sep 2021 11:43:08 -0400 (EDT) Date: Fri, 3 Sep 2021 11:43:08 -0400 From: Vivek Goyal To: Bruce Fields Cc: Andreas Gruenbacher , fstests , linux-fsdevel , LKML , virtio-fs@redhat.com, Daniel Walsh , David Gilbert , Christian Brauner , Casey Schaufler , LSM , selinux@vger.kernel.org, Theodore Ts'o , Miklos Szeredi , Giuseppe Scrivano , stephen.smalley.work@gmail.com, Dave Chinner , Alexander Viro Subject: Re: [PATCH 3/1] xfstests: generic/062: Do not run on newer kernels 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: X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 03, 2021 at 10:42:34AM -0400, Bruce Fields wrote: > Well, we could also look at supporting trusted.* xattrs over NFS. I > don't know much about them, but it looks like it wouldn't be a lot of > work to specify, especially now that we've already got user xattrs? > We'd just write a new internet draft that refers to the existing > user.* xattr draft for most of the details. Will be nice if we can support trusted.* xattrs on NFS. Vivek > > --b. > > On Fri, Sep 3, 2021 at 2:56 AM Andreas Gruenbacher wrote: > > > > 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 > > >