mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-28 12:57:57 +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:
parent
c324c896b9
commit
bf25a4f232
@ -416,6 +416,10 @@ construct_root()
|
|||||||
local tmpdir=$root/tmp
|
local tmpdir=$root/tmp
|
||||||
local lname tname
|
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
|
mkdir -p $root/bin
|
||||||
cp $ps_path $root/bin
|
cp $ps_path $root/bin
|
||||||
|
|
||||||
|
@ -30,7 +30,6 @@ int main (int argc, char *argv[])
|
|||||||
|
|
||||||
test_init(argc, argv);
|
test_init(argc, argv);
|
||||||
|
|
||||||
mkdir(TDIR, 0600);
|
|
||||||
unlink(TFIL);
|
unlink(TFIL);
|
||||||
if (creat(TFIL, 0600) < 0) {
|
if (creat(TFIL, 0600) < 0) {
|
||||||
err("Can't make test file");
|
err("Can't make test file");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user