diff options
author | Vivek Goyal <vgoyal@redhat.com> | 2016-10-14 03:03:36 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2016-10-15 02:00:34 +0200 |
commit | 655042cc1406fcec20aa7ffd7d790ada18ac5211 (patch) | |
tree | 16f29b5ab2c57f5b712e8d71cfae5b83a58fb672 /fs/super.c | |
parent | iov_iter: kernel-doc import_iovec() and rw_copy_check_uvector() (diff) | |
download | linux-655042cc1406fcec20aa7ffd7d790ada18ac5211.tar.xz linux-655042cc1406fcec20aa7ffd7d790ada18ac5211.zip |
overlayfs: Fix setting IOP_XATTR flag
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>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions