Linux-Fsdevel Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Aleksa Sarai <cyphar@cyphar.com>
To: fuse-devel@lists.sourceforge.net, miklos <mszeredi@redhat.com>,
	Linux FS Devel <linux-fsdevel@vger.kernel.org>
Subject: Re: Determining owner of a (fuse) mountpoint?
Date: Sun, 17 May 2020 18:09:09 +1000	[thread overview]
Message-ID: <20200517080909.lod7sjfio5jvsjr3@yavin.dot.cyphar.com> (raw)
In-Reply-To: <874kshqa1d.fsf@vostro.rath.org>

[-- Attachment #1: Type: text/plain, Size: 619 bytes --]

On 2020-05-15, Nikolaus Rath <Nikolaus@rath.org> wrote:
> Given a (FUSE) mountpoint (potentially mounted without -o allow_root),
> is there a way for root to determine its "owner" (i.e. the user who has
> started the FUSE process and invoked fusermount) that does not depend on
> cooperation of the user/filesystem?

The mount options of a FUSE mount contain the entries "user_id=N" and
"group_id=M" which correspond to the "mount owner" and those entries are
filled by fusermount. Is that not sufficient?

-- 
Aleksa Sarai
Senior Software Engineer (Containers)
SUSE Linux GmbH
<https://www.cyphar.com/>

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

  reply	other threads:[~2020-05-17  8:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-15 19:21 Nikolaus Rath
2020-05-17  8:09 ` Aleksa Sarai [this message]
2020-05-17 14:59   ` [fuse-devel] " Nikolaus Rath

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200517080909.lod7sjfio5jvsjr3@yavin.dot.cyphar.com \
    --to=cyphar@cyphar.com \
    --cc=fuse-devel@lists.sourceforge.net \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=mszeredi@redhat.com \
    --subject='Re: Determining owner of a (fuse) mountpoint?' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).