crun icon indicating copy to clipboard operation
crun copied to clipboard

restore: add lsm-profile and lsm-mount-context options

Open rst0git opened this issue 1 year ago • 1 comments
trafficstars

By default, CRIU restores containers with the same SELinux process labels used during checkpointing. However, when restoring multiple copies of a container, this results in all containers using identical SELinux labels, which is undesirable. In addition, all containers in a Pod share the SELinux label of the infrastructure container. To restore a new container into an existing Pod, we need to specify the SELinux label to be used during restore.

This pull request adds --lsm-profile and --lsm-mount-context options for the crun restore command to enable this functionality, similar to runc (https://github.com/opencontainers/runc/pull/3005)

rst0git avatar Oct 17 '24 20:10 rst0git