fuse and selinux
ah... i hit a snag.
fuse always always always returns error code 512 which is "-ERESTARTSYS".
i.e. "please try later".
i.e. the design of fuse is to be accessed via userspace.
uh-oh.
and on setup of the fuse fs [as a fs_t] security/selinux/hooks.c goes "oh, an error message i can't cope with".
in fact it's worse than that because on _every_ getxattr() call not just the one that tests whether xattr is supported it gets a "please try later" response.
so:
option 1)
turn selinux/hooks.c into a state machine, decoupled around the getxattr() calls, dealing correctly with the -ERESTARTSYS calls.
somehow... i don't _quite_ think i'm ready to tackle this one!
option 2)
copy the fuse module, trash all of the code that calls out to userspace... and merge the functionality of the fusexmp userspace example code into a new fsproxy module.
this i _can_ cope with.
wheee.
all because of some stupid bug in 2.6 ioctl blkrrdpart *grumble* mount -l *grumble*.
the reason why i am mentioning all this is because:
has anyone come across any circumstances - e.g. an NFS or SMBFS filesystem [with xattrs of course] - where -ERESTARTSYS would become or might become an issue?
i understand that NFS has been modified to support selinux:
where there are delays in the mounting of the filesystem, might such an error occur?
l.
Signature · 13 lines
-- Truth, honesty and respect are rare commodities that all spring from the same well: Love. If you love yourself and everyone and everything around you, funnily and coincidentally enough, life gets a lot better. -- <a href="http://lkcl.net"> lkcl.net </a> <br /> <a href="mailto:[email protected]"> [email protected] </a> <br /> -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.