Skip to content

Commit

Permalink
Update PingPert unprivileged restore test capabilities (#4605)
Browse files Browse the repository at this point in the history
- Update PingPert unprivileged restore test capabilities

Signed-off-by: LongyuZhang <longyu.zhang@ibm.com>
  • Loading branch information
LongyuZhang committed Jun 5, 2023
1 parent a65d675 commit 3d3de28
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions external/criu/pingPerf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -107,14 +107,13 @@ createRestoreImage() {
unprivilegedRestore() {
echo "unprivileged restore $restoreImage ..."
echo -ne "CONTAINER_ID=" > containerId.log
echo "sudo podman run --rm --detach -p 9080:9080 --cap-add=CHECKPOINT_RESTORE --cap-add=SETPCAP $restoreImage"
sudo podman run \
--rm \
--detach \
-p 9080:9080 \
--cap-add=CHECKPOINT_RESTORE \
--cap-add=NET_ADMIN \
--cap-add=SYS_PTRACE \
--security-opt seccomp=criuseccompprofile.json \
--cap-add=SETPCAP \
$restoreImage >> containerId.log
}

Expand Down

0 comments on commit 3d3de28

Please sign in to comment.