Documentation
¶
Index ¶
- Constants
- func CapEnter() error
- func CapRightsClear(r *CapRights, rights ...uint64) error
- func CapRightsIsSet(r *CapRights, rights ...uint64) (bool, error)
- func CapRightsLimit(f *os.File, r *CapRights) error
- func CapRightsLimitFd(fd uintptr, r *CapRights) error
- func CapRightsSet(r *CapRights, rights ...uint64) error
- func Dup(f *os.File) (*os.File, error)
- func LimitStd() error
- func ListAllFDs() error
- func OpenFileAt(f *os.File, name string, flag int, perm os.FileMode) (*os.File, error)
- func PrintRights(fd int)
- func ReaddirnamesAt(f *os.File) ([]string, error)
- func ReadlinkAt(f *os.File, path string) (string, error)
- type Address
- type CapRights
- type FD
- type FDDisappeared
- type FDFile
- type FDInfo
- type FDSocket
- type FDType
- type NilInfo
- type SocketStatus
Constants ¶
View Source
const ( ECAPMODE = syscall.Errno(C.ECAPMODE) ENOTCAPABLE = syscall.Errno(C.ENOTCAPABLE) )
Variables ¶
This section is empty.
Functions ¶
func CapRightsClear ¶
func CapRightsLimitFd ¶
FIXME: should take a File, not an fd?
func CapRightsSet ¶
func ListAllFDs ¶
func ListAllFDs() error
func OpenFileAt ¶
OpenFileAt is the generalized open call; most users will use Open or Create instead. It opens the named file with specified flag (O_RDONLY etc.) and perm, (0666 etc.) if applicable. If successful, methods on the returned File can be used for I/O. If there is an error, it will be of type *PathError. FIXME: this is mostly just os.OpenFile - probably that should call this
func PrintRights ¶
func PrintRights(fd int)
func ReaddirnamesAt ¶
like ioutil.ReadDir, but from an already open file
Types ¶
type FD ¶
type FD struct {
// contains filtered or unexported fields
}
func GetAllFDInfo ¶
FIXME: an evil program could mess with this by dup()ing and close()ing a lot...
type FDDisappeared ¶
type FDDisappeared struct{}
func (FDDisappeared) String ¶
func (FDDisappeared) String() string
Click to show internal directories.
Click to hide internal directories.