]> git.baikalelectronics.ru Git - kernel.git/commit
Smack: fuse mount hang fix
authorCasey Schaufler <casey@schaufler-ca.com>
Mon, 2 Jun 2008 17:04:32 +0000 (10:04 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 4 Jun 2008 15:50:43 +0000 (08:50 -0700)
commit789fbb9249a24afde905eece2e4187e0e3766099
tree0dc9cddcac54dcdc35f7e1ddf6e190947ec86320
parent328dd509f48a5d575d2868728948e8d5c872abbf
Smack: fuse mount hang fix

The d_instantiate hook for Smack can hang on the root inode of a
filesystem if the file system code has not really done all the set-up.
Fuse is known to encounter this problem.

This change detects an attempt to instantiate a root inode and addresses
it early in the processing, before any attempt is made to do something
that might hang.

Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
Tested-by: Luiz Fernando N. Capitulino <lcapitulino@mandriva.com.br>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
security/smack/smack_lsm.c