From bf25a4f2328603491e6d0b8b39f7af4ef7e8a538 Mon Sep 17 00:00:00 2001 From: Andrey Vagin Date: Wed, 25 Mar 2015 08:16:00 +0300 Subject: [PATCH] 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 Signed-off-by: Pavel Emelyanov --- test/zdtm.sh | 4 ++++ test/zdtm/live/static/inotify_irmap.c | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) 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");