Commit 9993be5c authored by Jeff Mahoney's avatar Jeff Mahoney Committed by Linus Torvalds

[PATCH] selinux: internal inode loop needs IS_PRIVATE test

This patch applies the IS_PRIVATE test to the selinux internal inode loop.
Signed-off-by: default avatarJeff Mahoney <jeffm@suse.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 415b536d
...@@ -589,7 +589,8 @@ static int superblock_doinit(struct super_block *sb, void *data) ...@@ -589,7 +589,8 @@ static int superblock_doinit(struct super_block *sb, void *data)
spin_unlock(&sbsec->isec_lock); spin_unlock(&sbsec->isec_lock);
inode = igrab(inode); inode = igrab(inode);
if (inode) { if (inode) {
inode_doinit(inode); if (!IS_PRIVATE (inode))
inode_doinit(inode);
iput(inode); iput(inode);
} }
spin_lock(&sbsec->isec_lock); spin_lock(&sbsec->isec_lock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment