system

package
v0.0.0-...-3bfe646 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

View Source
const FilesystemTemporary = "tmpfs"

FilesystemTemporary defines the tmpfs filesystem

Variables

This section is empty.

Functions

func Chroot

func Chroot(path string) error

Chroot executes chroot syscall on the specified directory

func DropCapabilities

func DropCapabilities(keep map[int]struct{}) error

DropCapabilities drops all capabilities except those specified with keep from the current process

func DropCapabilitiesForJournalExport

func DropCapabilitiesForJournalExport() error

DropCapabilitiesForJournalExport drops capabilities except those required to export a systemd journal

func GetFilesystem

func GetFilesystem(ctx context.Context, path string, runner utils.CommandRunner) (filesystem string, err error)

GetFilesystem detects the filesystem on device specified with path

func GetFilesystemForPath

func GetFilesystemForPath(path string) (fstype string, err error)

GetFilesystemForPath returns the filesystem type for given path. It does not verify whether the path actually exists

Types

This section is empty.

Directories

Path Synopsis
package auditlog implements support for manipulating kernel audit system
package auditlog implements support for manipulating kernel audit system
Package environ implements utilities for managing host environment during an operation
Package environ implements utilities for managing host environment during an operation
package service implements helpers for working with systemd services
package service implements helpers for working with systemd services
package signals implements support for managing interrupt signals
package signals implements support for managing interrupt signals

Jump to

Keyboard shortcuts

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