Skip to content

Support SELinux: --security-opt label聽#4608

Closed

Description

@fengwei0328

What is the problem you're trying to solve

Security flags:
馃惓 --security-opt seccomp=<PROFILE_JSON_FILE>: specify custom seccomp profile
馃惓 --security-opt apparmor=: specify custom AppArmor profile
馃惓 --security-opt no-new-privileges: disallow privilege escalation, e.g., setuid and file capabilities
馃惓 --security-opt systempaths=unconfined: Turn off confinement for system paths (masked paths, read-only paths) for the container
馃惓 --security-opt writable-cgroups: making the cgroups writeable
馃 --security-opt privileged-without-host-devices: Don't pass host devices to privileged containers

nerdctl has always lacked SELinux-related labels: similar to Docker's --security-opt label

Describe the solution you'd like

The function and fields are similar to: Docker's --security-opt label

Additional context

No response

Activity

  1. ningmingxiao commented on Dec 6, 2025

    @ningmingxiao
    Contributor

    #4639 will fix

  2. linked a pull request that will close this issuefeature: support selinux #4639on Apr 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions