Skip to contentSkip to conversation

Determining owner of a (fuse) mountpoint?

DISCUSSION Nikolaus Rath 2 participants 3 messages May 15, 2020 – May 17, 2020 VFS

lore
Share & tools
lore
#0 lore raw

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

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

             »Time flies like an arrow, fruit flies like a Banana.«
#1 lore raw
Quoted 4 lines · Nikolaus Rath

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?

Signature · 4 lines
Aleksa Sarai
Senior Software Engineer (Containers)
SUSE Linux GmbH
<https://www.cyphar.com/>
#2 lore raw
Quoted 9 lines · Aleksa Sarai
Quoted 4 lines · Nikolaus Rath

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