Documentation ¶
Overview ¶
package capbabilities manages system level capabilities
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Initialize ¶
func Initialize(c Capabilities)
Initialize the capability set. This can only be done once per binary, subsequent calls are ignored.
func SetForTests ¶
func SetForTests(c Capabilities)
SetCapabilitiesForTests. Convenience method for testing. This should only be called from tests.
Types ¶
type Capabilities ¶
type Capabilities struct {
AllowPrivileged bool
}
Capabilities defines the set of capabilities available within the system. For now these are global. Eventually they may be per-user
Click to show internal directories.
Click to hide internal directories.