]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Smack: fuse mount hang fix
authorCasey Schaufler <casey@schaufler-ca.com>
Mon, 2 Jun 2008 17:04:32 +0000 (10:04 -0700)
committerChris Wright <chrisw@sous-sol.org>
Mon, 9 Jun 2008 18:27:04 +0000 (11:27 -0700)
commit50e3ae09d6b1cc0146942437ce7a5f33fdb933fb
tree674c943c6d4da46ddb880725ab76497ad44ab608
parent1965da94d854758b4beebfeadcfae480039cbb76
Smack: fuse mount hang fix

upstream commit: e97dcb0eadbb821eccd549d4987b653cf61e2374

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>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
security/smack/smack_lsm.c