Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/checkpoint-restore/criu.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Vagin <avagin@openvz.org>2015-03-25 08:16:00 +0300
committerPavel Emelyanov <xemul@parallels.com>2015-03-31 11:30:05 +0300
commitbf25a4f2328603491e6d0b8b39f7af4ef7e8a538 (patch)
tree0746d622ba25c1ab2e0dac67a7fb96ac12a06fca
parentc324c896b91406d7d29fc422d73aaa009604ff5a (diff)
test: create /etc in a temporary root
inotify_irmap creates files in /etc so it should be able to do this from userns. Signed-off-by: Andrey Vagin <avagin@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
-rwxr-xr-xtest/zdtm.sh4
-rw-r--r--test/zdtm/live/static/inotify_irmap.c1
2 files changed, 4 insertions, 1 deletions
diff --git a/test/zdtm.sh b/test/zdtm.sh
index 878bfaefc..f51f64b2a 100755
--- a/test/zdtm.sh
+++ b/test/zdtm.sh
@@ -416,6 +416,10 @@ construct_root()
local tmpdir=$root/tmp
local lname tname
+ # inotify_irmap creates files in /etc so it should be able to do
+ # this from userns.
+ mkdir -m 0777 -p $root/etc
+
mkdir -p $root/bin
cp $ps_path $root/bin
diff --git a/test/zdtm/live/static/inotify_irmap.c b/test/zdtm/live/static/inotify_irmap.c
index 28c619c92..011fb816c 100644
--- a/test/zdtm/live/static/inotify_irmap.c
+++ b/test/zdtm/live/static/inotify_irmap.c
@@ -30,7 +30,6 @@ int main (int argc, char *argv[])
test_init(argc, argv);
- mkdir(TDIR, 0600);
unlink(TFIL);
if (creat(TFIL, 0600) < 0) {
err("Can't make test file");