Documentation
¶
Index ¶
- Constants
- func Exec(name string, args ...string) error
- func Mkchar(path string, mode, major, minor uint32) error
- func Mkdir(path string, perm os.FileMode) error
- func Mount(src, dst, fstype string, flags uintptr, data string) error
- func MountCgroupSubsystems() error
- func MountSubsystems()
- func Run(name string, args ...string) error
- func Touch(path string, perm os.FileMode) error
- func Write(path string, data []byte, perm os.FileMode) error
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 )
Variables ¶
This section is empty.
Functions ¶
func MountCgroupSubsystems ¶
func MountCgroupSubsystems() error
func MountSubsystems ¶
func MountSubsystems()
some of the subsystems may not exist -> ignore all errors
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.