■ ■ ■ ■ ■ ■
scripts/ci/run-ci-tests.sh
| skipped 216 lines |
217 | 217 | | exit 0 |
218 | 218 | | fi |
219 | 219 | | |
| 220 | + | # Rootless tests |
| 221 | + | last_cap=$(cat /proc/sys/kernel/cap_last_cap) |
| 222 | + | # CAP_CHECKPOINT_RESTORE is 40. |
| 223 | + | if [ "$last_cap" -ge 40 ]; then |
| 224 | + | make -C test/zdtm/ cleanout |
| 225 | + | rm -rf test/dump |
| 226 | + | setcap cap_checkpoint_restore,cap_sys_ptrace+eip criu/criu |
| 227 | + | sudo --user=#65534 --group=#65534 unshare -Ucfpm --mount-proc -- bash -c "./test/zdtm.py run -t zdtm/static/maps00 -f h --rootless && true" |
| 228 | + | setcap -r criu/criu |
| 229 | + | fi |
| 230 | + | |
| 231 | + | ./criu/criu check || true |
| 232 | + | |
220 | 233 | | ./test/zdtm.py run -a -p 2 --keep-going "${ZDTM_OPTS[@]}" |
221 | 234 | | if criu/criu check --feature move_mount_set_group; then |
222 | 235 | | ./test/zdtm.py run -a -p 2 --mntns-compat-mode --keep-going "${ZDTM_OPTS[@]}" |
| skipped 92 lines |