2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-22 09:58:09 +00:00

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>
This commit is contained in:
Andrey Vagin 2015-03-25 08:16:00 +03:00 committed by Pavel Emelyanov
parent c324c896b9
commit bf25a4f232
2 changed files with 4 additions and 1 deletions

View File

@ -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

View File

@ -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");