anon_inodes: mark the anon inode private
Eric Paris authored
Inotify was switched to use anon_inode instead of its own private filesystem
which only had one inode in commit c44dcc56

 "switch inotify_user to
anon_inode"

The problem with this is that now the inotify inode is not a distinct inode
which can be managed by LSMs.  userspace tools which use inotify were allowed
to use the inotify inode but may not have had permission to do read/write type
operations on the anon_inode.  After looking at the anon_inode and its users
it looks like the best solution is to just mark the anon_inode as S_PRIVATE
so the security system will ignore it.
Signed-off-by: default avatarEric Paris <eparis@redhat.com>
Acked-by: default avatarJames Morris <jmorris@namei.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
3836a03d
Name Last commit Last update
..
9p fs/9p: Add hardlink support to .u extension
adfs pass writeback_control to ->write_inode
affs Merge branch 'for-next' into for-linus
afs make sure data is on disk before calling ->write_inode
autofs trivial: remove unnecessary semicolons
autofs4 Use kill_litter_super() in autofs4 ->kill_sb()
befs befs: fix leak
bfs pass writeback_control to ->write_inode
btrfs Merge git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-unstable
cachefiles CacheFiles: Fix a race in cachefiles_delete_object() vs rename
cifs Merge branch 'for-next' into for-linus
coda sysctl: Drop & in front of every proc_handler.
configfs Fix configfs leak
cramfs fs/cramfs: return f_fsid for statfs(2)
debugfs Lose the new_name argument of fsnotify_move()
devpts devpts_get_tty() should validate inode
dlm Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial
ecryptfs ecryptfs: use after free
efs get rid of BKL in fs/efs
exofs pass writeback_control to ->write_inode
exportfs nfs: new subdir Documentation/filesystems/nfs
ext2 Merge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs-2.6
ext3 Merge branch 'for-next' into for-linus
ext4 Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial
fat pass writeback_control to ->write_inode
freevxfs
fscache
fuse
gfs2
hfs
hfsplus
hostfs
hpfs
hppfs
hugetlbfs
isofs
jbd
jbd2
jffs2
jfs
lockd
logfs
minix
ncpfs
nfs
nfs_common
nfsd
nilfs2
nls
notify
ntfs
ocfs2
omfs
openpromfs
partitions
proc
qnx4
quota
ramfs
reiserfs
romfs
smbfs
squashfs
sysfs
sysv
ubifs
udf
ufs
xfs
Kconfig
Kconfig.binfmt
Makefile
aio.c
anon_inodes.c
attr.c
bad_inode.c
binfmt_aout.c
binfmt_elf.c
binfmt_elf_fdpic.c
binfmt_em86.c
binfmt_flat.c
binfmt_misc.c
binfmt_script.c
binfmt_som.c
bio-integrity.c
bio.c
block_dev.c
buffer.c
char_dev.c
compat.c
compat_binfmt_elf.c
compat_ioctl.c
dcache.c
dcookies.c
direct-io.c
drop_caches.c
eventfd.c
eventpoll.c
exec.c
fcntl.c
fifo.c
file.c
file_table.c
filesystems.c
fs-writeback.c
fs_struct.c
generic_acl.c
inode.c
internal.h
ioctl.c
ioprio.c
libfs.c
locks.c
mbcache.c
mpage.c
namei.c
namespace.c
nfsctl.c
no-block.c
open.c
pipe.c
pnode.c
pnode.h
posix_acl.c
read_write.c
read_write.h
readdir.c
select.c
seq_file.c
signalfd.c
splice.c
stack.c
stat.c
super.c
sync.c
timerfd.c
utimes.c
xattr.c
xattr_acl.c