Skip to content

Commit

Permalink
non-root: add non-root test case to travis runs
Browse files Browse the repository at this point in the history
For now the non-root test run on Travis is using CAP_SYS_ADMIN until
there is a kernel and a 'setcap' available which understands
CAP_CHECKPOINT_RESTORE.

Signed-off-by: Adrian Reber <[email protected]>
  • Loading branch information
adrianreber committed Jul 27, 2020
1 parent 7f1f61c commit a2ea515
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions scripts/travis/travis-tests
Original file line number Diff line number Diff line change
Expand Up @@ -215,3 +215,12 @@ make -C test/others/libcriu run
make -C test/others/ns_ext run

make -C test/others/shell-job

# As long as Travis does not know about CAP_CHECKPOINT_RESTORE
# this test is using CAP_SYS_ADMIN.
setcap cap_sys_admin+eip ./criu/criu
# Either writing to ptrace_scope or CAP_SYS_PTRACE is necessary
echo 0 > /proc/sys/kernel/yama/ptrace_scope
# Running tests as non-root requires write access to the following directories
chmod 777 test test/zdtm/static/
./test/zdtm.py run -t zdtm/static/env00 -f h --user

0 comments on commit a2ea515

Please sign in to comment.