Skip to content

Add NET_RAW to the Cap add capability list #234

Description

@antoniopersiano

When creating a new container via the plugin UI (/plugins/docker/containers/add/), the Cap add dropdown does not include NET_RAW. The list currently exposes capabilities such as NET_ADMIN, CHOWN, DAC_OVERRIDE, DAC_READ_SEARCH, FOWNER, FSETID, etc., but NET_RAW is absent.

CAP_NET_RAW controls the use of RAW and PACKET sockets and the ability to bind to any address for transparent proxying. It is required by tools such as ping, tcpdump, raw-socket-based health checks, and various network-diagnostic / VPN workloads.

While NET_RAW is part of Docker's default capability set, the standard hardening pattern is:

cap_drop:
  - ALL
cap_add:
  - NET_RAW

Without NET_RAW exposed in the Cap add picker, this pattern cannot be expressed through the NetBox UI or API

Steps to reproduce

  1. Navigate to Docker → Containers → + (Add a new container).
  2. Open the Cap add dropdown.
  3. Observe that NET_RAW is not present in the list.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions