caps

package
v0.9.310 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2026 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package caps reads the capabilities a process holds, from /proc.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasPermitted

func HasPermitted(c int) bool

HasPermitted tells whether we hold the capability in our permitted set, from which a child can be given it. Taken for no on anything unexpected.

func PermittedHave

func PermittedHave(status io.Reader, c int) bool

PermittedHave reads the CapPrm line of a /proc/<pid>/status, and tells whether the capability is in it.

Types

This section is empty.

Jump to

Keyboard shortcuts

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