1. 20 Jul, 2017 2 commits
    • Amir Goldstein's avatar
      ovl: do not cleanup directory and whiteout index entries · 61b67471
      Amir Goldstein authored
      Directory index entries are going to be used for looking up
      redirected upper dirs by lower dir fh when decoding an overlay
      file handle of a merge dir.
      
      Whiteout index entries are going to be used as an indication that
      an exported overlay file handle should be treated as stale (i.e.
      after unlink of the overlay inode).
      
      We don't know the verification rules for directory and whiteout
      index entries, because they have not been implemented yet, so fail
      to mount overlay rw if those entries are found to avoid corrupting
      an index that was created by a newer kernel.
      Signed-off-by: default avatarAmir Goldstein <amir73il@gmail.com>
      Signed-off-by: default avatarMiklos Szeredi <mszeredi@redhat.com>
      61b67471
    • Miklos Szeredi's avatar
      ovl: fix xattr get and set with selinux · 1d88f183
      Miklos Szeredi authored
      inode_doinit_with_dentry() in SELinux wants to read the upper inode's xattr
      to get security label, and ovl_xattr_get() calls ovl_dentry_real(), which
      depends on dentry->d_inode, but d_inode is null and not initialized yet at
      this point resulting in an Oops.
      
      Fix by getting the upperdentry info from the inode directly in this case.
      Reported-by: default avatarEryu Guan <eguan@redhat.com>
      Fixes: 09d8b586 ("ovl: move __upperdentry to ovl_inode")
      Signed-off-by: default avatarMiklos Szeredi <mszeredi@redhat.com>
      1d88f183
  2. 13 Jul, 2017 4 commits
  3. 04 Jul, 2017 34 commits