mirror of https://github.com/containers/podman.git
Currently Podman prevents SELinux container separation, when running within a container. This PR adds a new --security-opt label=nested When setting this option, Podman unmasks and mountsi /sys/fs/selinux into the containers making /sys/fs/selinux fully exposed. Secondly Podman sets the attribute run.oci.mount_context_type=rootcontext This attribute tells crun to mount volumes with rootcontext=MOUNTLABEL as opposed to context=MOUNTLABEL. With these two settings Podman inside the container is allowed to set its own SELinux labels on tmpfs file systems mounted into its parents container, while still being confined by SELinux. Thus you can have nested SELinux labeling inside of a container. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com> |
||
---|---|---|
.. | ||
annotations.go | ||
autoupdate.go | ||
checkpoint_restore.go | ||
config.go | ||
container.go | ||
container_inspect.go | ||
containerstate.go | ||
diff.go | ||
errors.go | ||
exec_codes.go | ||
fileinfo.go | ||
healthchecks.go | ||
info.go | ||
mount.go | ||
mount_freebsd.go | ||
mount_linux.go | ||
mount_unsupported.go | ||
pod_inspect.go | ||
podstate.go | ||
runtime.go | ||
sdnotify.go | ||
version.go | ||
volume_inspect.go |