Re: how do you call userspace syscalls (e.g. sys_rename) from inside kernel

From: Luke Kenneth Casson Leighton
Date: Fri Oct 08 2004 - 11:52:59 EST


On Fri, Oct 08, 2004 at 05:12:51PM +0200, Bernd Petrovitsch wrote:

> > my alternative is to patch every single vfs-related sys_* in fs/*.c to
> > be able to "plug in" to these functions.
>
> Why not implement it in user-space?

that is the base that i am working from (fuse).

the problem comes when adding support to fuse for xattrs, and the
subsequent use of those xattrs for SE/Linux.

security/selinux/hooks.c cannot cope with the -512 response
"please try later" which the fuse module always always always
sends, in order for fuse to give the userspace daemon a chance
to wake up and smell the roses.

... and i sure ain't gonna hack selinux about!

l.

--
--
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:lkcl@xxxxxxxx";> lkcl@xxxxxxxx </a> <br />

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/