]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
overlay: copy up and remove from another namespace
authorXiong Zhou <xzhou@redhat.com>
Wed, 4 Jan 2017 08:59:11 +0000 (16:59 +0800)
committerEryu Guan <eguan@redhat.com>
Thu, 5 Jan 2017 07:34:57 +0000 (15:34 +0800)
commita1d861da98f37e7a284d4701faf8cf6719c93c5b
tree8e048ac08e7adc603fc4d0f5e833e3faeaf96fc8
parentfbe236d6a9557a675b9aec05630087d562d6a841
overlay: copy up and remove from another namespace

Via unshare, copy up dir from lower dir then remove
them in another unshared namespace.

This would fail before v4.7 kernel with EPERM.

Kernel commit 3fe6e52f
  ovl: override creds with the ones from the superblock mounter
fixed this issue, with this reproducer provided. Original
reproducer was written by commit author:
Antonio Murdaca <amurdaca@redhat.com>

Signed-off-by: Xiong Zhou <xzhou@redhat.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
tests/overlay/020 [new file with mode: 0755]
tests/overlay/020.out [new file with mode: 0644]
tests/overlay/group