Hi Casey, On Wed, Mar 05, 2008 at 08:33:34AM -0800, Casey Schaufler wrote:... Beside the locking initialization issue, there's the current->security issue. smackfs init code code access current->security in smk_unlbl_ambient(). As you know current->security may equal Null (Oops), or point to another LSM structure that preceeded us in registration. The locking argument can't be applied here since we may override the other LSM tsk->security pointer this time. Ofcourse all of the above points can be handleded by various if(current->security) checks + rechecking the read/write methods of each smackfs inode, but below only two lines will fix the problem from its roots ;): + if (!security_module_enable(&smack_ops)) + return 0; Is there a problem in the current approach that I'm not aware of ? You have your veto in this issue at the end ;) Thank you, -- "Better to light a candle, than curse the darkness" Ahmed S. Darwish Homepage: http://darwish.07.googlepages.com Blog: http://darwish-07.blogspot.com --
| Linus Torvalds | Linux 2.6.27-rc5 |
| Greg KH | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Greg Kroah-Hartman | [PATCH 004/196] Chinese: add translation of SubmittingPatches |
| Trent Piepho | Re: [PATCH] [POWERPC] Improve (in|out)_beXX() asm code |
git: | |
| Christoph Hellwig | Re: [PATCH 06/32] IGET: Mark iget() and read_inode() as being obsolete [try #2] |
| Gerrit Renker | [PATCH 0/37] dccp: Feature negotiation - last call for comments |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| David Miller | [GIT]: Networking |
