Linux-Fsdevel Archive on lore.kernel.org
help / color / mirror / Atom feed
From: "Nikolaus Rath" <nikolaus@rath.org>
To: "Linux FS Devel" <linux-fsdevel@vger.kernel.org>
Subject: Re: [fuse-devel] Determining owner of a (fuse) mountpoint?
Date: Sun, 17 May 2020 15:59:08 +0100	[thread overview]
Message-ID: <f52ddbc4-4551-4997-8fda-235f2c461260@www.fastmail.com> (raw)
In-Reply-To: <20200517080909.lod7sjfio5jvsjr3@yavin.dot.cyphar.com>

On Sun, 17 May 2020, at 09:09, Aleksa Sarai wrote:
> 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?

I think it is sufficient, I just never noticed it. Thanks!

Best,
-Nikolaus

--
GPG Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F

 »Time flies like an arrow, fruit flies like a Banana.«

      reply	other threads:[~2020-05-17 15:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-15 19:21 Determining owner of a (fuse) mountpoint? Nikolaus Rath
2020-05-17  8:09 ` Aleksa Sarai
2020-05-17 14:59   ` Nikolaus Rath [this message]

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=f52ddbc4-4551-4997-8fda-235f2c461260@www.fastmail.com \
    --to=nikolaus@rath.org \
    --cc=linux-fsdevel@vger.kernel.org \
    /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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).