linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Determining owner of a (fuse) mountpoint?
@ 2020-05-15 19:21 Nikolaus Rath
  2020-05-17  8:09 ` Aleksa Sarai
  0 siblings, 1 reply; 3+ messages in thread
From: Nikolaus Rath @ 2020-05-15 19:21 UTC (permalink / raw)
  To: fuse-devel, miklos, Linux FS Devel

Hello,

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?

Best,
-Nikolaus

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

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Determining owner of a (fuse) mountpoint?
  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   ` [fuse-devel] " Nikolaus Rath
  0 siblings, 1 reply; 3+ messages in thread
From: Aleksa Sarai @ 2020-05-17  8:09 UTC (permalink / raw)
  To: fuse-devel, miklos, Linux FS Devel

[-- 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 --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [fuse-devel] Determining owner of a (fuse) mountpoint?
  2020-05-17  8:09 ` Aleksa Sarai
@ 2020-05-17 14:59   ` Nikolaus Rath
  0 siblings, 0 replies; 3+ messages in thread
From: Nikolaus Rath @ 2020-05-17 14:59 UTC (permalink / raw)
  To: Linux FS Devel

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.«

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-05-17 15:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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   ` [fuse-devel] " Nikolaus Rath

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).