mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: FUSE merging?
@ 2005-07-01 13:05 Frank van Maarseveen
  2005-07-01 13:21 ` Miklos Szeredi
  0 siblings, 1 reply; 10+ messages in thread
From: Frank van Maarseveen @ 2005-07-01 13:05 UTC (permalink / raw)
  To: Miklos Szeredi; +Cc: frankvm, akpm, aia21, arjan, linux-kernel

On Fri, Jul 01, 2005 at 02:36:22PM +0200, Miklos Szeredi wrote:
> > > You mean suid programs are never to touch paths passed to them?
> > 
> > never when euid==root.
> > The pathname could even point into /proc or anything else yet unknown,
> > e.g. by putting some symlinks at the right places. The mere act of
> > opening the file as root could have unwanted side effects already.
> 
> OK, open is out.  However other operations (stat, unlink, chmod etc)
> are always without side effects on "normal" filesystems.  However on
> FUSE they are very much unsafe (can block, not do what was instructed
> and return success, etc).

What about tricking a setuid program to stat into /auto (/mnt/auto,
/misc, whatever it is called)? then the automounter will act upon a root
request with again possibly unwanted side effects. See how careful a
setuid/full-root program must be in handling userdata including pathnames?

FUSE suddenly makes this more obvious but it is not new.

> > > > -	/proc isn't a problem: most root processes tend to avoid it because
> > > > 	it is synthetic and thus uninteresting. Maybe we should extend
> > > > 	the idea of "synthetic file-systems being uninteresting" to any
> > > > 	process which cannot receive signals from the FUSE mount owner. When
> > > > 	one cannot hide data by a FUSE mount and its synthetic anyway so not
> > > > 	interesting then just show the original empty mount point.
> > > 
> > > Been there.  People (like Al Viro) didn't like it.
> > 
> > including changing the ptraceability test by a signal test and including
> > the (IMHO) required emptyness of the mount stub?
> 
> It's been thrown out for the reason, that it's unacceptable if suid
> programs see a different namespace as non-suid.

You mean root versus non-root. or user versus other user I assume. Because
the euid (fsuid) is what matters.

But then: this _is_ already the case for NFS when squash_root is in effect
(what about kerberos et.al?). So there are several reasons to consider
FUSE a nonlocal fs instead of a local one so nothing new there. FUSE could
be used to implement a usable (not perfect) userspace NFS/ftp client.

To require an empty stub to mount FUSE upon makes the whole picture
cleaner: users are only able to extend the namespace _leaf_ nodes for
themselves and processes they can send signals to: setuid programs
which do not fully become root. The existing namespace [nodes] remains
unchanged for everyone.

-- 
Frank

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

end of thread, other threads:[~2005-07-04 15:20 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <4ly7J-14H-9@gated-at.bofh.it>
     [not found] ` <4lRDA-4U-55@gated-at.bofh.it>
     [not found]   ` <4lSJa-16Z-7@gated-at.bofh.it>
     [not found]     ` <4m5ZG-2ok-1@gated-at.bofh.it>
     [not found]       ` <4maPM-5XJ-5@gated-at.bofh.it>
     [not found]         ` <4mcHV-7no-21@gated-at.bofh.it>
     [not found]           ` <4mduc-7Zg-1@gated-at.bofh.it>
     [not found]             ` <4mfcJ-UT-17@gated-at.bofh.it>
     [not found]               ` <4mitV-3mL-3@gated-at.bofh.it>
     [not found]                 ` <4mv7Q-2Ki-19@gated-at.bofh.it>
     [not found]                   ` <4mwdG-3AP-15@gated-at.bofh.it>
     [not found]                     ` <4mwwX-3N9-9@gated-at.bofh.it>
2005-07-04 13:09                       ` FUSE merging? (2) Bodo Eggert
2005-07-04 13:17                         ` Miklos Szeredi
2005-07-04 15:19                           ` Ragnar Kjørstad
2005-07-01 13:05 FUSE merging? Frank van Maarseveen
2005-07-01 13:21 ` Miklos Szeredi
2005-07-01 15:20   ` Frank van Maarseveen
2005-07-01 17:04     ` Miklos Szeredi
2005-07-01 18:04       ` Frank van Maarseveen
2005-07-02 14:49         ` Miklos Szeredi
2005-07-02 16:00           ` Frank van Maarseveen
2005-07-03  6:16             ` Miklos Szeredi
2005-07-03 11:25               ` Frank van Maarseveen
2005-07-03 13:24                 ` Miklos Szeredi
2005-07-03 14:10                   ` FUSE merging? (2) Frank van Maarseveen
2005-07-03 15:47                     ` Miklos Szeredi
2005-07-03 19:36                       ` Frank van Maarseveen
2005-07-04  8:56                         ` Miklos Szeredi
2005-07-04  9:59                           ` Frank van Maarseveen
2005-07-04 10:27                             ` Miklos Szeredi
2005-07-04 11:26                               ` Frank van Maarseveen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®