Revision 655042cc1406fcec20aa7ffd7d790ada18ac5211 authored by Vivek Goyal on 14 October 2016, 01:03:36 UTC, committed by Al Viro on 15 October 2016, 00:00:34 UTC
ovl_fill_super calls ovl_new_inode to create a root inode for the new
superblock before initializing sb->s_xattr.  This wrongly causes
IOP_XATTR to be cleared in i_opflags of the new inode, causing SELinux
to log the following message:

  SELinux: (dev overlay, type overlay) has no xattr support

Fix this by initializing sb->s_xattr and similar fields before calling
ovl_new_inode.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent ffecee4
History
File Mode Size
Kconfig -rw-r--r-- 3.3 KB
Makefile -rw-r--r-- 1.1 KB
README -rw-r--r-- 7.9 KB
acl.h -rw-r--r-- 1.8 KB
bitmap.c -rw-r--r-- 39.3 KB
dir.c -rw-r--r-- 9.0 KB
do_balan.c -rw-r--r-- 54.3 KB
file.c -rw-r--r-- 7.5 KB
fix_node.c -rw-r--r-- 77.4 KB
hashes.c -rw-r--r-- 3.5 KB
ibalance.c -rw-r--r-- 34.3 KB
inode.c -rw-r--r-- 93.0 KB
ioctl.c -rw-r--r-- 5.4 KB
item_ops.c -rw-r--r-- 18.0 KB
journal.c -rw-r--r-- 120.3 KB
lbalance.c -rw-r--r-- 41.3 KB
lock.c -rw-r--r-- 2.6 KB
namei.c -rw-r--r-- 43.9 KB
objectid.c -rw-r--r-- 6.8 KB
prints.c -rw-r--r-- 20.6 KB
procfs.c -rw-r--r-- 13.3 KB
reiserfs.h -rw-r--r-- 116.6 KB
resize.c -rw-r--r-- 6.3 KB
stree.c -rw-r--r-- 64.0 KB
super.c -rw-r--r-- 68.4 KB
tail_conversion.c -rw-r--r-- 9.1 KB
xattr.c -rw-r--r-- 24.2 KB
xattr.h -rw-r--r-- 3.6 KB
xattr_acl.c -rw-r--r-- 9.4 KB
xattr_security.c -rw-r--r-- 2.7 KB
xattr_trusted.c -rw-r--r-- 1.1 KB
xattr_user.c -rw-r--r-- 1.0 KB

README

back to top