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
auth_gss
xprtrdma
Kconfig -rw-r--r-- 1.7 KB
Makefile -rw-r--r-- 608 bytes
addr.c -rw-r--r-- 8.7 KB
auth.c -rw-r--r-- 21.0 KB
auth_generic.c -rw-r--r-- 7.6 KB
auth_null.c -rw-r--r-- 2.7 KB
auth_unix.c -rw-r--r-- 5.7 KB
backchannel_rqst.c -rw-r--r-- 10.9 KB
cache.c -rw-r--r-- 44.2 KB
clnt.c -rw-r--r-- 65.9 KB
debugfs.c -rw-r--r-- 8.0 KB
netns.h -rw-r--r-- 928 bytes
rpc_pipe.c -rw-r--r-- 36.2 KB
rpcb_clnt.c -rw-r--r-- 29.9 KB
sched.c -rw-r--r-- 29.9 KB
socklib.c -rw-r--r-- 4.5 KB
stats.c -rw-r--r-- 7.5 KB
sunrpc.h -rw-r--r-- 2.0 KB
sunrpc_syms.c -rw-r--r-- 2.6 KB
svc.c -rw-r--r-- 33.6 KB
svc_xprt.c -rw-r--r-- 38.7 KB
svcauth.c -rw-r--r-- 3.8 KB
svcauth_unix.c -rw-r--r-- 20.9 KB
svcsock.c -rw-r--r-- 41.0 KB
sysctl.c -rw-r--r-- 3.6 KB
timer.c -rw-r--r-- 2.9 KB
xdr.c -rw-r--r-- 37.7 KB
xprt.c -rw-r--r-- 37.9 KB
xprtmultipath.c -rw-r--r-- 11.6 KB
xprtsock.c -rw-r--r-- 84.6 KB

back to top