Discover Packages
github.com/falcosecurity/event-generator
pkg
capability
package
Version:
v0.13.0
Opens a new window with list of versions in this module.
Published: May 15, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package capability provides utilities for capabilities manipulation.
func RunWithSecBitNoRootDisabled(f func() error ) error
RunWithSecBitNoRootDisabled runs the provided function with the thread secure bit SECBIT_NOROOT disabled.
func RunWithSecBitNoRootEnabled(f func() error ) error
RunWithSecBitNoRootEnabled runs the provided function with the thread secure bit SECBIT_NOROOT enabled.
func SetFile(filePath, capabilities string ) (err error )
SetFile sets the provided capabilities on the file at the provided path. The provided capabilities must be encoded
using the syntax specified in cap_from_text(3).
type FuncError struct {
}
FuncError wraps the error produced by the execution of the function provided to RunWithSecBitNoRootEnabled and
RunWithSecBitNoRootDisabled.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.