Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4825755pxk; Wed, 30 Sep 2020 12:42:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxLpCVj/4okNVybFgTI27Fzkl5yoBkLy44FtMTeGudKG58mn06uFfHSK7GaYe8lMHho8Obh X-Received: by 2002:a17:906:4a19:: with SMTP id w25mr4331837eju.199.1601494972423; Wed, 30 Sep 2020 12:42:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601494972; cv=none; d=google.com; s=arc-20160816; b=Z8WKyR5rjjsMZySoCb7WQixnxgFne+9L8Mr94zQul+lwaA7EBpYTv7XI3i3+zyuf7u e2nt1/VbZCB4XR2WNps34BirspNCQ98nnF8Oty5XqhWN4iigAY1pYY6en7h4Pq6lugO2 27x0UNQMXmn76KZI5Le/4a2lqOQ6gBBV+II4wdh/dSs3pGqrnaB22dVLt1nn5i6s1pYv Xuw+gtcD18nnpVI1mBmJLiFa/AB2eHs/l3IHUrsgqIp2/s4MSXCq27eDTpFCcnvoVBf3 bjM26detYJv7vVbYYtTFXQKDZbYr5wz/HtMYtFd72SAL2bfMnZ6koC4DajLA59jVIGMh LTrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=CtUM5JhD6E39X8AJ35k69RqY2Zj0WI8/c21x6lM01Bs=; b=VYcd1hFa3e2eANkBSrd1vKGBcTxB33EKEI+FSysYiUA5UPE+0anqo8hsInSUvYBH2F 3EzH+j1PPGNYmuNcCEONp7QvUKBHM5q9edybGap243BcS/iEOWD0tN777CKSaCCuTCjA FEWB2Ar1Kneo7aWgUO8NUB7NCBNZG0FhD+fKSqczchvr8KmNOMBp4uX1Uskg9ViFEB6y ZvQpjpNhNBY1jMTTIqMYrcAO6o49LvX0EzQ1cCAtMpjtZBXS3Pnh4kq3EJKhmThvlzdv cEQNDMURan/WCSO1jbExl7zkK2W8nkMcT1rfqwPQMN+8KTNY893HlOs6BMkqhY4FS3Q/ RZlw== ARC-Authentication-Results: i=1; mx.google.com; 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 i27si1766331eja.509.2020.09.30.12.42.26; Wed, 30 Sep 2020 12:42:52 -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; 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 S1728368AbgI3Tju (ORCPT + 99 others); Wed, 30 Sep 2020 15:39:50 -0400 Received: from gateway24.websitewelcome.com ([192.185.51.59]:28420 "EHLO gateway24.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725799AbgI3Tju (ORCPT ); Wed, 30 Sep 2020 15:39:50 -0400 X-Greylist: delayed 1402 seconds by postgrey-1.27 at vger.kernel.org; Wed, 30 Sep 2020 15:39:49 EDT Received: from cm13.websitewelcome.com (cm13.websitewelcome.com [100.42.49.6]) by gateway24.websitewelcome.com (Postfix) with ESMTP id F14E3C779C for ; Wed, 30 Sep 2020 14:16:25 -0500 (CDT) Received: from gator3309.hostgator.com ([192.254.250.173]) by cmsmtp with SMTP id NhaTkj02LXp2ANhaTkeWBd; Wed, 30 Sep 2020 14:16:25 -0500 X-Authority-Reason: nr=8 Received: from [96.232.34.132] (port=57125 helo=[192.168.1.133]) by gator3309.hostgator.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1kNhaR-0037nu-VB; Wed, 30 Sep 2020 14:16:24 -0500 Subject: Re: [PATCH V9 2/4] fuse: Trace daemon creds To: Miklos Szeredi , Alessio Balsini Cc: Akilesh Kailash , Amir Goldstein , David Anderson , Giuseppe Scrivano , Jann Horn , Jens Axboe , Martijn Coenen , Palmer Dabbelt , Paul Lawrence , Stefano Duo , Zimuzo Ezeozue , fuse-devel , kernel-team , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org References: <20200924131318.2654747-1-balsini@android.com> <20200924131318.2654747-3-balsini@android.com> From: Antonio SJ Musumeci Message-ID: Date: Wed, 30 Sep 2020 15:16:20 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator3309.hostgator.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - spawn.link X-BWhitelist: no X-Source-IP: 96.232.34.132 X-Source-L: No X-Exim-ID: 1kNhaR-0037nu-VB X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: ([192.168.1.133]) [96.232.34.132]:57125 X-Source-Auth: trapexit@spawn.link X-Email-Count: 17 X-Source-Cap: YmlsZTtiaWxlO2dhdG9yMzMwOS5ob3N0Z2F0b3IuY29t X-Local-Domain: yes Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/30/2020 2:45 PM, Miklos Szeredi wrote: > On Thu, Sep 24, 2020 at 3:13 PM Alessio Balsini wrote: >> Add a reference to the FUSE daemon credentials, so that they can be used to >> temporarily raise the user credentials when accessing lower file system >> files in passthrough. > Hmm, I think it would be better to store the creds of the ioctl() > caller together with the open file. The mounter may deliberately > have different privileges from the process doing the actual I/O. > > Thanks, > Miklos In my usecase I'm changing euid/egid of the thread to whichever the uid/gid was passed to the server which is otherwise running as root.