diff --git a/qm.container b/qm.container index e2ce12a0..82e32c0c 100644 --- a/qm.container +++ b/qm.container @@ -35,10 +35,25 @@ LimitNOFILE=65536 TasksMax=50% [Container] +# AddCapability +# ------------- +# Add these capabilities, in addition to the default Podman capability set, to the container. +# If set to all, grants all capabilities to the container, increasing flexibility but significantly +# reducing security. AddCapability=all + +# Unmask +# ------- +# Specify the paths to unmask separated by a colon. unmask=ALL or /path/1:/path/2, or shell expanded paths (/proc/*): +# If set to ALL, Podman will unmask all the paths that are masked or made read-only by default. Unmask=ALL SecurityLabelNested=true SeccompProfile=/usr/share/qm/seccomp.json + +# PidsLimit +# --------- +# Disables the PID limit for the container by setting it to -1. +# Without a limit, the container can spawn unlimited processes, potentially exhausting system resources. PidsLimit=-1 # Comment DropCapability this will allow FFI Tools to surpass their defaults. @@ -49,7 +64,16 @@ AddDevice=-/dev/fuse ContainerName=qm Exec=/sbin/init Network=private + +# ReadOnly +# -------- +# Makes the container's filesystem read-only, enhancing security by preventing modifications. ReadOnly=true + +# Rootfs +# ------ +# Defines the root filesystem location for the QM container. +# By default the '${ROOTFS}' variable points to /usr/lib/qm/rootfs. Rootfs=${ROOTFS} SecurityLabelNested=true