Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3568669pxj; Mon, 21 Jun 2021 01:28:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwzRRvhXA9XSTyEfAE+v7L6e62lOFENPjbo8ahyJ99Osrv+CZwLzkcCC12AjurIlWWLPI9V X-Received: by 2002:a5d:960b:: with SMTP id w11mr19237873iol.138.1624264119035; Mon, 21 Jun 2021 01:28:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624264119; cv=none; d=google.com; s=arc-20160816; b=aIGvMmpqJS8zCfczKa6js8Dz60R5hHwEjOa2ZrqX/FqyQGLs9etj+CHEtvNScavWYB E64L3iqcwYFNb7oSB3F3DE0gVauG/xqFizhaczDB+1K3WLYQO1U8l4ZnCHt+5QvsyBfr qGCa7C7tSu1HqzR+dOlRiipvIPVYaA44rhFhDyJCCRLqkMeRFOauVNPaETDa5G6ijpsN o7JexsVCQxH+9ss5fPqhcSTIGWW4KOoTMo+MrSZpcirFDXhFFXXNk2eytRx02qVXf/cO MTA/cUlMBkEm+7xVBzSBl6OgzAZm7d99NojydoaaX6O/bb9ooJcw66L+3Gj48EEPCZzj IsZw== 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=nLuy59A8PMwLhpgDGZXgcrV7ZMJJmmat7Q8wB6T7lcs=; b=L8RVNmjXTAd5mjKzNAbRfkChDmQTCAIxrLVu6pOq8Z5E05mJzFBKht17V5JNwEyT2k jU5z246D3xUxF8hmWIJrk+e5FMODGRrwIJMt4KafysA1uxnqTa4POPrkJysJa8tTTtsK KV2ih5kb4yme0BNAK0y48Spp1YW62MgIQTIii8NaPAA2KYbK2E/KQmqgwGy7JOGoCMOn 9HZ/ZREsL9NLMQPh5W22n7TJQePp1tx7oVr2IKrf39eEL+49YtC3FzD9eiqbNWg4lh7A nhKqwBa3dqMO2h7fmTJna555r1Rs9enhZ2/zAylGWrQYoaoUzMTeBb4Fc1aEd6OLs0oW Zvww== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=VoGeBo62; 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 f12si4353676ilk.157.2021.06.21.01.28.26; Mon, 21 Jun 2021 01:28:39 -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=VoGeBo62; 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 S230071AbhFUIaH (ORCPT + 99 others); Mon, 21 Jun 2021 04:30:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229908AbhFUI3o (ORCPT ); Mon, 21 Jun 2021 04:29:44 -0400 Received: from mail-ua1-x92d.google.com (mail-ua1-x92d.google.com [IPv6:2607:f8b0:4864:20::92d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 310B4C061756 for ; Mon, 21 Jun 2021 01:27:04 -0700 (PDT) Received: by mail-ua1-x92d.google.com with SMTP id c17so6052084uao.1 for ; Mon, 21 Jun 2021 01:27:04 -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=nLuy59A8PMwLhpgDGZXgcrV7ZMJJmmat7Q8wB6T7lcs=; b=VoGeBo628y2FREohTV7mjqkFeTdK5lIrqZn/zJWPIjrRvUmGElbTINfxBxAjVgI3Pu +Km7vM/lPHpFPtnKMiNb6+hYAKFrkbuPqRvDWxk5aGZZCRxf7xg/2Qj5hCQbWl9SlkmW 70Y1LxP+pSCugL3BIMwZ0SY1O/7HW+EnP2vpM= 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=nLuy59A8PMwLhpgDGZXgcrV7ZMJJmmat7Q8wB6T7lcs=; b=pu2G8WwXBtj9tmosIgpvoZrYLnvgi2qNyMA89nGIazxKY7PCzw36geDGnEhyleL2CN 7tRJI+CTHOvaXOicuWd5h8PYjyYKueY08ah0LGjGG2gvPODCb6yfd8jPuDg5sSZXz9Ay qaW+cJRP6vNmzJOOXCKSZNSXpQ2ftjjuWzpnvrGJkrIePGUcN9fg+/6/sAUpQPFA0vbH 83LpESmE7ANEjgqE5k5HrcThkzQ+CyT4eCwtdNcHqydGp0JijJQZKBrPoyZfB+M2HD6X 1hUnOJ6YPPfcBvZv2Fv7Ck0ppqGGjY9F70TocwC6SJx4zuZD6VGny76RIUgUWapoD8NU Jw4A== X-Gm-Message-State: AOAM532DIZzmgEqXNu3G3LmFy8pcmM6qy+mQVOYJC38h3raz5CDG9Uh0 X24PVLOcnYfoRVfg+lJAz0HKRFUA9EjHmVt2nyUlKTioBr/vAvzo X-Received: by 2002:ab0:23c3:: with SMTP id c3mr607783uan.11.1624264022971; Mon, 21 Jun 2021 01:27:02 -0700 (PDT) MIME-Version: 1.0 References: <20210423151919.195033-1-ckuehl@redhat.com> In-Reply-To: <20210423151919.195033-1-ckuehl@redhat.com> From: Miklos Szeredi Date: Mon, 21 Jun 2021 10:26:52 +0200 Message-ID: Subject: Re: [PATCH] fuse: Send FUSE_WRITE_KILL_SUIDGID for killpriv v1 To: Connor Kuehl Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 23 Apr 2021 at 17:19, Connor Kuehl wrote: > > FUSE doesn't seem to be adding the FUSE_WRITE_KILL_SUIDGID flag on write > requests for FUSE connections that support FUSE_HANDLE_KILLPRIV but not > FUSE_HANDLE_KILLPRIV_V2. > > However, the FUSE userspace header states: > > FUSE_HANDLE_KILLPRIV: fs handles killing suid/sgid/cap on > write/chown/trunc > ^^^^^ > > To improve backwards compatibility with file servers that don't support > FUSE_HANDLE_KILLPRIV_V2, add the FUSE_WRITE_KILL_SUIDGID flag to write > requests if FUSE_HANDLE_KILLPRIV has been negotiated -OR- if the > conditions for FUSE_HANDLE_KILLPRIV_V2 support are met. If server does not support FUSE_HANDLE_KILLPRIV_V2, then it does not support FUSE_WRITE_KILL_SUIDGID either. The two were introduced together and the latter is only meaningful if the FUSE_HANDLE_KILLPRIV_V2 feature was negotiated. What am I missing? Thanks, Miklos