podman/libpod/define
Daniel J Walsh ad8a96ab95
Support running nested SELinux container separation
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>
2023-03-13 14:21:12 -04:00
..
annotations.go Support running nested SELinux container separation 2023-03-13 14:21:12 -04:00
autoupdate.go auto-update: validate container image 2022-09-26 17:07:05 +02:00
checkpoint_restore.go Added optional container checkpointing statistics 2021-11-15 11:50:24 +00:00
config.go Compile regex on demand not in init 2023-01-11 14:38:51 -05:00
container.go Fix typos. Improve language. 2023-02-09 21:56:27 +01:00
container_inspect.go Run codespell on codebase 2023-02-09 08:02:43 -05:00
containerstate.go bump golangci-lint to v1.50.1 2022-12-15 13:39:56 +01:00
diff.go podman diff accept two images or containers 2021-07-02 17:11:56 +02:00
errors.go Fix #15499 already connected network 2022-08-27 20:03:40 -05:00
exec_codes.go Run codespell 2022-08-25 16:32:31 -04:00
fileinfo.go Fixes from make codespell 2021-04-21 13:16:33 -04:00
healthchecks.go Add support for startup healthchecks 2022-11-28 13:30:29 -05:00
info.go sqlite: add a hidden --db-backend flag 2023-03-02 13:43:11 +01:00
mount.go libpod/define: Make TypeBind a platform-specific constant 2022-08-30 16:32:24 +01:00
mount_freebsd.go libpod/define: Make TypeBind a platform-specific constant 2022-08-30 16:32:24 +01:00
mount_linux.go libpod/define: Make TypeBind a platform-specific constant 2022-08-30 16:32:24 +01:00
mount_unsupported.go libpod/define: Make TypeBind a platform-specific constant 2022-08-30 16:32:24 +01:00
pod_inspect.go libpod: remove CNI word were no longer applicable 2022-12-16 14:20:14 +01:00
podstate.go Add a Degraded state to pods 2020-10-21 13:31:40 -04:00
runtime.go Add support for containers.conf 2020-03-27 14:36:03 -04:00
sdnotify.go kube play: sd-notify integration 2022-08-10 21:12:39 +02:00
version.go Add 'Os' to be queried via 'version' output 2022-03-29 18:10:59 -04:00
volume_inspect.go Add support for 'image' volume driver 2022-09-22 13:07:40 -04:00