Re: spinlocks, userspace?

bert hubert <[email protected]>
Newsgroups gmane.linux.dazuko.devel
Message-ID <[email protected]>
On Thu, Dec 23, 2004 at 09:46:44AM +0100, John Ogness wrote:

> This is interesting. I was not aware of this either. Dazuko uses only 
> the inode_permission() hook. Unfortunately I do not have an SMP machine 
> to try this out.

You can have nearly all of the fun by compiling a preemptive kernel. You may
even find that it does not build then, as for example LIDS doesn't.

Also, I'm not really sure what would happen when going to userspace. It may
be hard for a userspace process to perform system calls under spinlock.

> [1]RSBAC includes Dazuko and also offers this feature. It would work 

I tend to shy away from intrusive patches. The great thing about dazuko and
lids is that they don't have to touch a lot, if anything, outside their own
domain. Some scribbling is ok, but RSBAC touches too much for my taste.

The SMP issue is important to me though, and it might be to you as well, as
I'm unsure if even security_inode_permission is safe from spinlocks. On a
first glance it does look safe.

Thanks.

-- 
http://www.PowerDNS.com      Open source, database driven DNS Software 
http://lartc.org           Linux Advanced Routing & Traffic Control HOWTO
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.