Rootful mode runs Podman or container processes with host-level root privileges. Unlike rootless operation, it can configure host networking devices and firewall rules, but a breakout threatens the host and other workloads. section 6.0 section 6.2.3
Rootful Podman uses native Linux overlay mounts by default and CNI plugins for container networking. These privileges support advanced networking, but they enlarge the security boundary. section 6.2.2 section 6.2.3
Running Podman inside another container exposes the capability requirements:
- Use CAP_SYS_ADMIN for rootful Podman inside a container; --privileged supplies the capability needed to mount filesystems. section 8.4.1
- Use a privileged Kubernetes container for equivalent rootful execution. section 8.4.2
- Prefer rootless containers, dropped capabilities, read-only mode, or separated user namespaces when root privileges are unnecessary. section 11.5.1
Run rootful Podman inside a container
podman run --privileged quay.io/podman/stable podman version section 8.4.1
Figure 6.1 Multiple users’ workloads sharing the same daemon running as root is inherently insecure.
Compare the insecure shared root-running daemon model with independent user spaces. section 6.0
Table 8.1 Requirements for running Podman within a container (view table figure)
Inspect host and container mode combinations with their required Linux capabilities. section 8.4
