Merge branch 'overlayfs-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mszer...
authorLinus Torvalds <torvalds@linux-foundation.org>
Sat, 15 Oct 2016 00:23:33 +0000 (17:23 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 15 Oct 2016 00:23:33 +0000 (17:23 -0700)
Pull overlayfs updates from Miklos Szeredi:
 "This update contains fixes to the "use mounter's permission to access
  underlying layers" area, and miscellaneous other fixes and cleanups.

  No new features this time"

* 'overlayfs-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs:
  ovl: use vfs_get_link()
  vfs: add vfs_get_link() helper
  ovl: use generic_readlink
  ovl: explain error values when removing acl from workdir
  ovl: Fix info leak in ovl_lookup_temp()
  ovl: during copy up, switch to mounter's creds early
  ovl: lookup: do getxattr with mounter's permission
  ovl: copy_up_xattr(): use strnlen

1  2 
fs/namei.c
fs/overlayfs/copy_up.c
fs/overlayfs/dir.c
fs/overlayfs/inode.c
fs/overlayfs/super.c
include/linux/fs.h

diff --cc fs/namei.c
Simple merge
@@@ -57,9 -57,10 +57,10 @@@ int ovl_copy_xattr(struct dentry *old, 
        ssize_t list_size, size, value_size = 0;
        char *buf, *name, *value = NULL;
        int uninitialized_var(error);
+       size_t slen;
  
 -      if (!old->d_inode->i_op->getxattr ||
 -          !new->d_inode->i_op->getxattr)
 +      if (!(old->d_inode->i_opflags & IOP_XATTR) ||
 +          !(new->d_inode->i_opflags & IOP_XATTR))
                return 0;
  
        list_size = vfs_listxattr(old, NULL, 0);
Simple merge
@@@ -375,9 -354,12 +351,9 @@@ static const struct inode_operations ov
  static const struct inode_operations ovl_symlink_inode_operations = {
        .setattr        = ovl_setattr,
        .get_link       = ovl_get_link,
-       .readlink       = ovl_readlink,
+       .readlink       = generic_readlink,
        .getattr        = ovl_getattr,
 -      .setxattr       = generic_setxattr,
 -      .getxattr       = generic_getxattr,
        .listxattr      = ovl_listxattr,
 -      .removexattr    = generic_removexattr,
        .update_time    = ovl_update_time,
  };
  
Simple merge
Simple merge