Re: [PATCH BUGFIX -rc3] Smack: Don't register smackfs if we're not loaded

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Ahmed S. Darwish
Date: Wednesday, March 5, 2008 - 5:44 am

On Tue, Mar 04, 2008 at 09:45:04AM -0800, Casey Schaufler wrote:
...

IMHO no smackfs code should ever execute if smack isn't loaded.

This means catching it from the very fist step where it registers
itself in init_smk_fs instead of doing several if(we're enabled) cases
in the code path.

The solution should be a _general_ solution, _not_ a SMACK one cause 
SELinux sufferes from exactly the same problem.

a.k.a:

LSMs need a scalable way to know if they're enabled that makes 
everyone happy ( especially Linus ;) ).

Regads to all,

-- 

"Better to light a candle, than curse the darkness"

Ahmed S. Darwish
Homepage: http://darwish.07.googlepages.com
Blog: http://darwish-07.blogspot.com

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH BUGFIX -rc3] Smack: Don't register smackfs if w ..., Ahmed S. Darwish, (Wed Mar 5, 5:44 am)