From: Luke Kenneth Casson Leighton <lkcl@lkcl.net>
To: Alexander Bostr?m <abo@kth.se>
Cc: openafs-devel@openafs.org, opendce@opengroup.org,
SE-Linux <selinux@tycho.nsa.gov>,
linux-kernel@vger.kernel.org
Subject: Using fuse for AFS/DFS (was Re: [OpenAFS-devel] openafs / opendfs collaboration)
Date: Sun, 30 Jan 2005 03:30:20 +0000 [thread overview]
Message-ID: <20050130033020.GE6357@lkcl.net> (raw)
In-Reply-To: <1106923508.7063.37.camel@tudor.e.kth.se>
On Fri, Jan 28, 2005 at 03:45:08PM +0100, Alexander Bostr?m wrote:
> fre 2005-01-21 klockan 12:22 -0500 skrev Derrick J Brashear:
> > On Fri, 21 Jan 2005, Matthew Miller wrote:
> >
> > > On Fri, Jan 21, 2005 at 09:00:59AM -0500, Derrick J Brashear wrote:
>
> > >> It seems like Arla would probably have a better model for us all to follow
> > >> if we did so.
> > >
> > > Or on Linux, something based on FUSE, which is apparently now getting
> > > merged.
> >
> > Arla's nnpfs is actually portable, one filesystem per platform sort of
> > sucks.
>
> But it lacks a nice libnnpfs that one can use to implement a filesystem.
>
> Every OS should have some kind of userland filesystem interface. Linux
> might get FUSE (and it might be adequate*), HURD has one, Dragonfly are
> aiming at it and on some systems there's nnpfs already. On top of those
> interfaces there could be a set of libraries implementing a common API
> for all the platforms.
>
> *) Last time I looked at FUSE the security model was: If the current uid
> equals the owner of the mountpoint then forward the request to the
> userland daemon, without any authentication information like for example
> the current uid. This might have or could be changed though.
as of 2.6.7-ish (last time i looked: 2.5 months) there was
no forwarding of security: in fact there was nothing in any of the
APIs about security at all: in fact, root as a user was banned (with
good justification iirc)
also, the xattr handling was (is?) non-existant and i had to
add it, but it was unsuitable for selinux, and that's a design
mismatch between fuse's way of communicating with its userspace
daemon (err -512 "please try later") and selinux's requirement
for instant answers (inability to cope with err -512)
so i started to look at lufs instead, which appeared to be a much
cleaner design.
lufs expects the userspace daemon to handle and manage inodes,
whereas fuse instead keeps an in-memory cache of inodes in
the userspace daemon, does a hell of a lot of extra fstat'ing
for you in order to guarantee file consistency, that sort of thing.
there is an API / library which your userspace daemon is expected to
use: this library handles the communication to the kernel and also it
handles the inode proxy redirection and cacheing for you.
lufs has a heck of a lot more examples available for it than fuse
does.
that all having been said, i don't think lufs's API has any
security handling either.
six of one, half a dozen of the other, but if you wanted fuse
to support selinux and any other form of security that involves
extended attributes, you would definitely have problems: i didn't get
round to evaluating lufs for selinux (ran out of time and money).
l.
--
<a href="http://lkcl.net">http://lkcl.net</a>
--
next parent reply other threads:[~2005-01-30 3:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <Pine.A41.4.31.0501181606230.24934-100000@slickville.cac.psu.edu>
[not found] ` <Pine.GSO.4.61-042.0501210900060.15636@johnstown.andrew.cmu.edu>
[not found] ` <20050121152803.GB29598@jadzia.bu.edu>
[not found] ` <Pine.GSO.4.61-042.0501211222080.15636@johnstown.andrew.cmu.edu>
[not found] ` <1106923508.7063.37.camel@tudor.e.kth.se>
2005-01-30 3:30 ` Luke Kenneth Casson Leighton [this message]
2005-01-30 11:13 ` Miklos Szeredi
2005-01-30 12:13 ` Luke Kenneth Casson Leighton
2005-01-30 12:40 ` Miklos Szeredi
2005-01-30 13:06 ` Luke Kenneth Casson Leighton
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=20050130033020.GE6357@lkcl.net \
--to=lkcl@lkcl.net \
--cc=abo@kth.se \
--cc=linux-kernel@vger.kernel.org \
--cc=openafs-devel@openafs.org \
--cc=opendce@opengroup.org \
--cc=selinux@tycho.nsa.gov \
/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
Powered by JetHome