linux

package
v0.0.0-...-67a85a8 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2018 License: ISC Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NoDevice = unix.MS_NODEV  // do not allow access to devices (special files)
	NoExec   = unix.MS_NOEXEC // do not allow programs to be executed
	NoSuid   = unix.MS_NOSUID // do not honor set-user-ID and set-group-ID bits
	Readonly = unix.MS_RDONLY // dount filesystem read-only

	Relatime = unix.MS_RELATIME
	Remount  = unix.MS_REMOUNT
	Shared   = unix.MS_SHARED
)

Variables

This section is empty.

Functions

func Exec

func Exec(name string, args ...string) error

Exec invokes the execve(2) system call.

func Mkchar

func Mkchar(path string, mode, major, minor uint32) error

func Mkdir

func Mkdir(path string, perm os.FileMode) error

func Mount

func Mount(src, dst, fstype string, flags uintptr, data string) error

func MountCgroupSubsystems

func MountCgroupSubsystems() error

func MountSubsystems

func MountSubsystems()

some of the subsystems may not exist -> ignore all errors

func Run

func Run(name string, args ...string) error

func Touch

func Touch(path string, perm os.FileMode) error

func Write

func Write(path string, data []byte, perm os.FileMode) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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