Re: [patch 7/9] unprivileged mounts: allow unprivileged fuse mounts

2008-01-15 Thread Serge E. Hallyn
Quoting Miklos Szeredi ([EMAIL PROTECTED]): > > Sounds like a sysctl to enable FS_SAFE for fuse will make this patch > > acceptable to everyone? > > I think the most generic approach, is to be able to set "safeness" for > any fs type, not just fuse (Karel's suggestion). > > E.g: > > echo 1 > /

Re: [patch 7/9] unprivileged mounts: allow unprivileged fuse mounts

2008-01-15 Thread Miklos Szeredi
> Sounds like a sysctl to enable FS_SAFE for fuse will make this patch > acceptable to everyone? I think the most generic approach, is to be able to set "safeness" for any fs type, not just fuse (Karel's suggestion). E.g: echo 1 > /proc/sys/fs/types/cifs/safe This would also provide a way to

Re: [patch 7/9] unprivileged mounts: allow unprivileged fuse mounts

2008-01-14 Thread Serge E. Hallyn
Quoting Miklos Szeredi ([EMAIL PROTECTED]): > From: Miklos Szeredi <[EMAIL PROTECTED]> > > Use FS_SAFE for "fuse" fs type, but not for "fuseblk". > > FUSE was designed from the beginning to be safe for unprivileged users. This > has also been verified in practice over many years. In addition un

Re: [patch 7/9] unprivileged mounts: allow unprivileged fuse mounts

2008-01-09 Thread Miklos Szeredi
> > > I'm not saying fuse is worthless. It is a nice toy for single-user > > > systems. But I do not think we should be merging "allow ordinary users > > > to mount their own fuse's" before issues above are fixed. > > > > I think multi user systems are not all that interesting. And I > > suspect

Re: [patch 7/9] unprivileged mounts: allow unprivileged fuse mounts

2008-01-09 Thread Pavel Machek
On Wed 2008-01-09 14:48:53, Miklos Szeredi wrote: > > I'm not saying fuse is worthless. It is a nice toy for single-user > > systems. But I do not think we should be merging "allow ordinary users > > to mount their own fuse's" before issues above are fixed. > > I think multi user systems are not a

Re: [patch 7/9] unprivileged mounts: allow unprivileged fuse mounts

2008-01-09 Thread Miklos Szeredi
> I'm not saying fuse is worthless. It is a nice toy for single-user > systems. But I do not think we should be merging "allow ordinary users > to mount their own fuse's" before issues above are fixed. I think multi user systems are not all that interesting. And I suspect very few of them want re

Re: [patch 7/9] unprivileged mounts: allow unprivileged fuse mounts

2008-01-09 Thread Pavel Machek
Hi! > > ...this will break with FUSE enabled, right? (Minor security hole by > > allowing users to stop c-a-delete, where none existed before?) > > Yup (or I don't know, I'm sure there was or is some problem with > ptrace, that could be used to create unkillable processes). > > Fuse could actual

Re: [patch 7/9] unprivileged mounts: allow unprivileged fuse mounts

2008-01-09 Thread Miklos Szeredi
> ...this will break with FUSE enabled, right? (Minor security hole by > allowing users to stop c-a-delete, where none existed before?) Yup (or I don't know, I'm sure there was or is some problem with ptrace, that could be used to create unkillable processes). Fuse could actually be fixed to exit

Re: [patch 7/9] unprivileged mounts: allow unprivileged fuse mounts

2008-01-09 Thread Pavel Machek
Hi! > > > AFAIR there were two security vulnerabilities in fuse's history, one > > > of them an information leak in the kernel module, and the other one an > > > mtab corruption issue in the fusermount utility. I don't think this > > > is such a bad track record. > > > > Not bad indeed. But I'd

Re: [patch 7/9] unprivileged mounts: allow unprivileged fuse mounts

2008-01-09 Thread Pavel Machek
On Wed 2008-01-09 09:47:31, Miklos Szeredi wrote: > > >> On Tue 2008-01-08 12:35:09, Miklos Szeredi wrote: > > >>> From: Miklos Szeredi <[EMAIL PROTECTED]> > > >>> > > >>> Use FS_SAFE for "fuse" fs type, but not for "fuseblk". > > >>> > > >>> FUSE was designed from the beginning to be safe for unpr

Re: [patch 7/9] unprivileged mounts: allow unprivileged fuse mounts

2008-01-09 Thread Nigel Cunningham
Hi. Miklos Szeredi wrote: On Tue 2008-01-08 12:35:09, Miklos Szeredi wrote: > From: Miklos Szeredi <[EMAIL PROTECTED]> > > Use FS_SAFE for "fuse" fs type, but not for "fuseblk". > > FUSE was designed from the beginning to be safe for unprivileged users. > This >

Re: [patch 7/9] unprivileged mounts: allow unprivileged fuse mounts

2008-01-09 Thread Szabolcs Szakacsits
Hi, On Wed, 9 Jan 2008, Nigel Cunningham wrote: > On Tue 2008-01-08 12:35:09, Miklos Szeredi wrote: > > > > For the suspend issue, there are also no easy solutions. > > What are the non-easy solutions? A practical point of view I've seen only fuse rootfs mounts to be a problem. I remember Ubun

Re: [patch 7/9] unprivileged mounts: allow unprivileged fuse mounts

2008-01-09 Thread Miklos Szeredi
> > > 'updatedb no longer works' is not a problem? > > > > I haven't seen any problems with updatedb, and haven't had any bug > > reports about it either. > > Ok, I don't know much about FUSE. In current version, if user creates > infinite maze and mounts it under ~, updatedb just does not enter

Re: [patch 7/9] unprivileged mounts: allow unprivileged fuse mounts

2008-01-09 Thread Miklos Szeredi
> >> On Tue 2008-01-08 12:35:09, Miklos Szeredi wrote: > >>> From: Miklos Szeredi <[EMAIL PROTECTED]> > >>> > >>> Use FS_SAFE for "fuse" fs type, but not for "fuseblk". > >>> > >>> FUSE was designed from the beginning to be safe for unprivileged users. > >>> This > >>> has also been verified in p

Re: [patch 7/9] unprivileged mounts: allow unprivileged fuse mounts

2008-01-08 Thread Nigel Cunningham
Hi. Miklos Szeredi wrote: >> On Tue 2008-01-08 12:35:09, Miklos Szeredi wrote: >>> From: Miklos Szeredi <[EMAIL PROTECTED]> >>> >>> Use FS_SAFE for "fuse" fs type, but not for "fuseblk". >>> >>> FUSE was designed from the beginning to be safe for unprivileged users. >>> This >>> has also been ve

Re: [patch 7/9] unprivileged mounts: allow unprivileged fuse mounts

2008-01-08 Thread Pavel Machek
On Tue 2008-01-08 23:42:20, Miklos Szeredi wrote: > > On Tue 2008-01-08 12:35:09, Miklos Szeredi wrote: > > > From: Miklos Szeredi <[EMAIL PROTECTED]> > > > > > > Use FS_SAFE for "fuse" fs type, but not for "fuseblk". > > > > > > FUSE was designed from the beginning to be safe for unprivileged us

Re: [patch 7/9] unprivileged mounts: allow unprivileged fuse mounts

2008-01-08 Thread Miklos Szeredi
> On Tue 2008-01-08 12:35:09, Miklos Szeredi wrote: > > From: Miklos Szeredi <[EMAIL PROTECTED]> > > > > Use FS_SAFE for "fuse" fs type, but not for "fuseblk". > > > > FUSE was designed from the beginning to be safe for unprivileged users. > > This > > has also been verified in practice over ma

Re: [patch 7/9] unprivileged mounts: allow unprivileged fuse mounts

2008-01-08 Thread Pavel Machek
On Tue 2008-01-08 12:35:09, Miklos Szeredi wrote: > From: Miklos Szeredi <[EMAIL PROTECTED]> > > Use FS_SAFE for "fuse" fs type, but not for "fuseblk". > > FUSE was designed from the beginning to be safe for unprivileged users. This > has also been verified in practice over many years. In addit