package sys

import "github.com/coreos/rkt/pkg/sys"

Index

Constants

const (
	SYS_SYNCFS = 306
)

Functions

func CloseOnExec

func CloseOnExec(fd int, set bool) error

CloseOnExec sets or clears FD_CLOEXEC flag on a file descriptor

func HasChrootCapability

func HasChrootCapability() bool

HasChrootCapability checks if the current process has the CAP_SYS_CHROOT capability

func Syncfs

func Syncfs(fd int) error

Source Files

capability.go sys.go sys_linux.go sys_linux_amd64.go

Version
v1.30.0 (latest)
Published
Apr 13, 2018
Platform
linux/amd64
Imports
3 packages
Last checked
5 days ago

Tools for package owners.