Skip to content

Commit

Permalink
Adding comments for container options in qm.container
Browse files Browse the repository at this point in the history
Signed-off-by: Ilia Markelov <[email protected]>
  • Loading branch information
ilimarx committed Dec 19, 2024
1 parent cac7300 commit 0b5ca68
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions qm.container
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,24 @@ LimitNOFILE=65536
TasksMax=50%

[Container]
# AddCapability
# -------------
# Grants all capabilities to the container, increasing flexibility but significantly
# reducing security.
AddCapability=all

# Unmask
# -------
# Unmasks all systemd services for the container, overriding masking that prevents
# access to specific services.
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.
Expand All @@ -49,7 +63,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 container.
# The '${ROOTFS}' variable should point to a valid filesystem path.
Rootfs=${ROOTFS}

SecurityLabelNested=true
Expand Down

0 comments on commit 0b5ca68

Please sign in to comment.