NETCAP(8) (NAME) netcap - (SYNOPSIS) netcap [--advanced [--interface IFACE ] [--list-interfaces] [--json] [--no-color]] (DESCRIPTION) netcap (capabilities) . : tcp udp raw packet . (open-ended bounding set) . <<+>> . (ambient capabilities) <<@>> . (Bluetooth) --advanced . --advanced netcap / (bind/listener inventory) . / . /proc (root) . . CAP_DAC_READ_SEARCH ( /proc//fd ) CAP_NET_ADMIN ( NETLINK_SOCK_DIAG SCTP DCCP VSOCK VSOCK ). sock_diag . (OPTIONS) --advanced / (posture/tree). (binds) . --interface IFACE --advanced . . --list-interfaces . --list-interfaces --advanced . --json --advanced JSON . --list-interfaces JSON . --no-color . (stdout) / . (ADVANCED MODE) (posture) . (bind) (hardening) . --advanced --list-interfaces . . --advanced --interface IFACE /JSON (endpoints) . : Planes -> interface -> protocol -> bind -> port -> process -> caps/defenses/flags VSOCK / : Planes -> endpoint -> process -> caps/defenses/flags BLUETOOTH HCI ( hci0). * (wildcard) . (Planes) INET (external) INET (loopback) BLUETOOTH VSOCK LINK-LAYER . . : (bind) . (wildcard) * . 0.0.0.0 :: loopback . (daemon) . (multicast) multicast/group (point-to- point). bind () port . unit scope systemd cgroup systemd . exe /proc//exe (kernel threads) . Name: comm exe . : o TCP: LISTEN. o UDP/UDPLITE: (bound). o RFCOMM: RFCOMM ( proc ). o HCI: (packet sockets) . o SCTP/DCCP: . NETLINK_SOCK_DIAG CAP_NET_ADMIN SCTP DCCP . o VSOCK: linux/vm_sockets.h LISTEN datagram/seqpacket. o RAW/PACKET: (binds) . (defenses) (best-effort) : no_new_privs seccomp /proc//status LSM /proc//attr/current . runs_as_nonroot . (Flags) : o wildcard-bind: ( 0.0.0.0 ::) . o hypervisor-plane: VSOCK . o proximity-plane: . o ssh-on-vsock-port-22: VSOCK . o privileged-caps: (CAP_SYS_ADMIN CAP_SYS_PTRACE CAP_DAC_READ_SEARCH CAP_NET_ADMIN CAP_NET_RAW). caps : [ambient-present] [open-ended-bounding] ( ). JSON (JSON OUTPUT) --advanced --json (top-level) : o schema_version ( ). o planes (). (plane) name scope (external loopback) : o ifaces ( INET/LINK-LAYER/BLUETOOTH) o endpoints ( VSOCK). ifaces: name addrs () . addr addr endpoints () . INET LINK-LAYER BLUETOOTH endpoint label proto bind port processes () . BLUETOOTH HCI ( hci0) port HCI RFCOMM procfs . VSOCK endpoint label vsock_type ( : stream/dgram/seqpacket) cid ( ANY) port processes proto bind . linux/vm_sockets.h VSOCK VSOCK . (process) comm exe pid uid unit caps ambient_present () open_ended_bounding () defenses flags . ambient_present open_ended_bounding [ambient-present] [open-ended-bounding] caps JSON . endpoints/processes/defenses . runs_as_nonroot UID ( Uid: /proc//status) : UID != 0 yes UID == 0 no. (root) UID setuid no . . . --advanced --list-interfaces --json schema_version ( ) interfaces ( ) . (INTERPRETATION) netcap (capabilities) . (permitted set) . <<+>> (open-ended bounding set) <<@>> (ambient capabilities) . : . caps . : sys_ptrace sys_module sys_rawio setuid setgid setpcap audit_control. : sys_admin dac_override dac_read_search net_admin net_raw chown fowner mknod sys_chroot. caps: (full) ( ). caps: (none) . execve ( no_new_privs ) . ambient: . [open-ended-bounding] . ( ). libcap-ng (CAPNG_SELECT_BOUNDS) libcap . : no_new_privs: yes setuid/file-capability . seccomp: filter (disabled ). runs_as_nonroot: yes (UID-0) . : wildcard-bind hypervisor-plane / (VSOCK) proximity-plane reuseport UID . raw/raw6 packet / IP . . hci . rfcomm . BD_ADDR ioctl HCI hci?/* . (SEE ALSO) pscap(8), filecap(8), capabilities(7), netstat(8). (AUTHORS) (Steve Grubb) Red Hat NETCAP(8)