commit | a7cf4145bb86aaf85d4d4d29a69b50b688e2e49d | [log] [tgz] |
---|---|---|
author | Eric Paris <eparis@redhat.com> | Fri May 14 11:44:10 2010 -0400 |
committer | Al Viro <viro@zeniv.linux.org.uk> | Fri May 21 18:31:20 2010 -0400 |
tree | 485e378b9fd42ff88663fbb149387173856fa67d | |
parent | b7bb0a12913a582dbb0954bf463b1152b540c1a6 [diff] |
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 <eparis@redhat.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>