Help us shape the future of Go! Take the 2026 Go Developer Survey

caps

package
v0.15.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 2, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package caps raises file capabilities granted to the binary so pathosd can bind port 179 and open raw ICMP sockets without running as root.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RaiseEffective

func RaiseEffective() (bool, error)

RaiseEffective copies the permitted capability set into the effective set for every thread of the process. A binary carrying file capabilities with only the permitted bit (setcap ... =+p) starts with an empty effective set; unlike the +ep form, exec never fails when the container's bounding set lacks one of them, so the daemon raises what it was actually granted. Returns true when something changed.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL