Documentation ¶
Overview ¶
Copyright 2020 New Relic Corporation. All rights reserved. SPDX-License-Identifier: Apache-2.0
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunCommand ¶
func SetCurrentProcCapabilities ¶ added in v1.8.0
func SetCurrentProcCapabilities(caps *OSCapabilities) error
Types ¶
type Command ¶
func NewCommand ¶
type OSCapabilities ¶ added in v1.8.0
type OSCapabilities [2]unix.CapUserData
From the capget(2) manpage: Note that 64-bit capabilities use datap[0] and datap[1], whereas 32-bit capabilities use only datap[0].
func GetCurrentProcCapabilities ¶ added in v1.8.0
func GetCurrentProcCapabilities() (*OSCapabilities, error)
func (*OSCapabilities) Clear ¶ added in v1.8.0
func (caps *OSCapabilities) Clear(c OSCapability)
func (*OSCapabilities) Has ¶ added in v1.8.0
func (caps *OSCapabilities) Has(c OSCapability) bool
func (*OSCapabilities) Set ¶ added in v1.8.0
func (caps *OSCapabilities) Set(c OSCapability)
type OSCapability ¶ added in v1.8.0
type OSCapability uint8
func (OSCapability) String ¶ added in v1.8.0
func (c OSCapability) String() string
Click to show internal directories.
Click to hide internal directories.