userns

package
v0.0.0-...-f15b9f9 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsPIDAdminCapable

func IsPIDAdminCapable(pid uint32) (bool, error)

IsPIDAdminCapable returns true if the PID is considered an admin of a user namespace, that is, it's in either in the init user namespace or one created by the host root and has CAP_SYS_ADMIN. The protects against a less privileged user either mounting a directory over a tree that gives them more access (e.g. /etc/sudoers.d) or hiding files.

Types

This section is empty.

Jump to

Keyboard shortcuts

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