diff options
author | Eric Paris | 2010-05-14 17:44:10 +0200 |
---|---|---|
committer | Al Viro | 2010-05-22 00:31:20 +0200 |
commit | a7cf4145bb86aaf85d4d4d29a69b50b688e2e49d (patch) | |
tree | 485e378b9fd42ff88663fbb149387173856fa67d /fs/inode.c | |
parent | gfs: constify xattr_handler (diff) | |
download | kernel-qcow2-linux-a7cf4145bb86aaf85d4d4d29a69b50b688e2e49d.tar.gz kernel-qcow2-linux-a7cf4145bb86aaf85d4d4d29a69b50b688e2e49d.tar.xz kernel-qcow2-linux-a7cf4145bb86aaf85d4d4d29a69b50b688e2e49d.zip |
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>
Diffstat (limited to 'fs/inode.c')
0 files changed, 0 insertions, 0 deletions