Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp39623pxb; Wed, 14 Apr 2021 08:57:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwLRRFNUeZ0UDi7RHxpMgOL6yCar5lBjr06UsE4NY5E7M0yFCdskcWuWQJfCHQv/tl2R0X2 X-Received: by 2002:aa7:d5c9:: with SMTP id d9mr41351329eds.335.1618415868259; Wed, 14 Apr 2021 08:57:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618415868; cv=none; d=google.com; s=arc-20160816; b=Q7ow+DsFdoFexjOM9THcLdMNWFEfL9imqOJ3TMlbRYFZVN3zMcBT8jWGGwbfJbt99p habvmUVoIEH2eWy8POm1MW39n1T59l/xuktMlSasTgAUuN6U5ILSFiqb1xxTBbaJJ6WB 3QS8832KnYhCuC3+PnK74qSEv77vRFjGrBc6Tb8hDe/zOfBPsbpc8+qvD7T39lXvYQbt kZnlyQwTPQDwolyYvRA+tNk+Jz/vARho90dIDgVHf1ZZ2BRW5m2fwwKJgJ5l/jeibbFm B9HTgEGDqTgfm2innYlhiLKvUlKv6yCEYax1MENgEtt0OZq7N1Si6yQWzYW0Z5DmjvLd qGBQ== 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=ghO25gdWYiPi8Hs5tMBOLgC7KmadptV5dHjDSHxwA/o=; b=rGvSNRFtlarQYbIsc9y+GLcIeVGA1GSCHhL8vkBxIiwSzB4XsMkU6IEKSG3zgMmFkJ +wF6yd5PhRwOgpw24U/RyDBVbE4OdFehA5AlUuzyeVZlW5+vwYv4Lj/T5UCfNn6zHEra ES9lPvIVUAOdsqBpGPsnlfYtpg1FXJDxJyBEJ6HRByicqhOftzQfkb4p4PLK/rGNvRl7 6MmWfrrmyIzIpqobsVWG59tkdeadmgrhyjd/ICOShQwkw7Jfn8pi43GYiqsDbmdl+igF cUtOmQTlihYzhM3DdPOzOR0baTaq+gSqXk3Kap2Xt34oNGEL0sV83ARGsPv1DXXhsI7D m9Sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=fKOUo94N; 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 q4si13414883edb.494.2021.04.14.08.57.19; Wed, 14 Apr 2021 08:57:48 -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=fKOUo94N; 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 S1351028AbhDNM7Y (ORCPT + 99 others); Wed, 14 Apr 2021 08:59:24 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:48176 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351029AbhDNM7X (ORCPT ); Wed, 14 Apr 2021 08:59:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1618405141; 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=ghO25gdWYiPi8Hs5tMBOLgC7KmadptV5dHjDSHxwA/o=; b=fKOUo94N4oyf9c1Qx02GNpDvgqdB1W5+M2dAXqCSFg2l1mUWP/8bpeirj7NH8AwulPtC2g o57FefGuUt44n42zKCpDGFYCjzXCSnUrH1E09sKDpNk2EMrIyzozfO4uEohnmoyYKT9Xo0 e0U0Gsqynx0rbNyZIw9FEs1H6LGMzJo= 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-460-InOxrLTmPeK9PlxSFZ1f8g-1; Wed, 14 Apr 2021 08:59:00 -0400 X-MC-Unique: InOxrLTmPeK9PlxSFZ1f8g-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id EEAB68030BB; Wed, 14 Apr 2021 12:58:58 +0000 (UTC) Received: from horse.redhat.com (ovpn-116-112.rdu2.redhat.com [10.10.116.112]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8A2CD5C1B4; Wed, 14 Apr 2021 12:58:55 +0000 (UTC) Received: by horse.redhat.com (Postfix, from userid 10451) id DE024220BCF; Wed, 14 Apr 2021 08:58:54 -0400 (EDT) Date: Wed, 14 Apr 2021 08:58:54 -0400 From: Vivek Goyal To: Miklos Szeredi Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, virtio-fs-list , Luis Henriques , "Dr. David Alan Gilbert" , Seth Forshee Subject: Re: [PATCH v2 0/2] fuse: Fix clearing SGID when access ACL is set Message-ID: <20210414125854.GL1235549@redhat.com> References: <20210325151823.572089-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.79 on 10.5.11.16 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 14, 2021 at 01:57:01PM +0200, Miklos Szeredi wrote: > On Thu, Mar 25, 2021 at 4:19 PM Vivek Goyal wrote: > > > > > > Hi, > > > > This is V2 of the patchset. Posted V1 here. > > > > https://lore.kernel.org/linux-fsdevel/20210319195547.427371-1-vgoyal@redhat.com/ > > > > Changes since V1: > > > > - Dropped the helper to determine if SGID should be cleared and open > > coded it instead. I will follow up on helper separately in a different > > patch series. There are few places already which open code this, so > > for now fuse can do the same. Atleast I can make progress on this > > and virtiofs can enable ACL support. > > > > Luis reported that xfstests generic/375 fails with virtiofs. Little > > debugging showed that when posix access acl is set that in some > > cases SGID needs to be cleared and that does not happen with virtiofs. > > > > Setting posix access acl can lead to mode change and it can also lead > > to clear of SGID. fuse relies on file server taking care of all > > the mode changes. But file server does not have enough information to > > determine whether SGID should be cleared or not. > > > > Hence this patch series add support to send a flag in SETXATTR message > > to tell server to clear SGID. > > Changed it to have a single extended structure for the request, which > is how this has always been handled in the fuse API. > > The ABI is unchanged, but you'll need to update the userspace part > according to the API change. Otherwise looks good. Hi Miklos, Thanks. Patches look good. I will update userspace part and repost. Vivek > > Applied and pushed to fuse.git#for-next. > > Thanks, > Miklos >