From: Eric Paris Date: Fri, 14 May 2010 15:44:10 +0000 (-0400) Subject: anon_inode: set S_IFREG on the anon_inode X-Git-Tag: v2.6.35-rc1~432^2~34 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a7cf4145bb86aaf85d4d4d29a69b50b688e2e49d;p=pandora-kernel.git anon_inode: set S_IFREG on the anon_inode anon_inode_mkinode() sets inode->i_mode = S_IRUSR | S_IWUSR; This means that (inode->i_mode & S_IFMT) == 0. This trips up some SELinux code that needs to determine if a given inode is a regular file, a directory, etc. The easiest solution is to just make sure that the anon_inode also sets S_IFREG. Signed-off-by: Eric Paris Signed-off-by: Al Viro --- Reading git-diff-tree failed