syscalls

package
v0.0.0-...-c27c9a0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2024 License: Apache-2.0, MIT Imports: 5 Imported by: 4

Documentation

Overview

Package syscalls is the interface from the application to the kernel. Traditionally, syscalls is the interface that is used by applications to request services from the kernel of a operating system. We provide a user-mode kernel that needs to handle those requests coming from unmodified applications. Therefore, we still use the term "syscalls" to denote this interface.

Note that the stubs in this package may merely provide the interface, not the actual implementation. It just makes writing syscall stubs straightforward.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CapError

func CapError(name string, c linux.Capability, note string, urls []string) kernel.Syscall

CapError gives a syscall function that checks for capability c. If the task has the capability, it returns ENOSYS, otherwise EPERM. To unprivileged tasks, it will seem like there is an implementation.

func Error

func Error(name string, err error, note string, urls []string) kernel.Syscall

Error returns a syscall handler that will always give the passed error.

func ErrorWithEvent

func ErrorWithEvent(name string, err error, note string, urls []string) kernel.Syscall

ErrorWithEvent gives a syscall function that sends an unimplemented syscall event via the event channel and returns the passed error.

func PartiallySupported

func PartiallySupported(name string, fn kernel.SyscallFn, note string, urls []string) kernel.Syscall

PartiallySupported returns a syscall that has a partial implementation.

func PartiallySupportedPoint

func PartiallySupportedPoint(name string, fn kernel.SyscallFn, cb kernel.SyscallToProto, note string, urls []string) kernel.Syscall

PartiallySupportedPoint returns a syscall that has a partial implementation with a corresponding seccheck.Point.

func Supported

func Supported(name string, fn kernel.SyscallFn) kernel.Syscall

Supported returns a syscall that is fully supported.

func SupportedPoint

func SupportedPoint(name string, fn kernel.SyscallFn, cb kernel.SyscallToProto) kernel.Syscall

SupportedPoint returns a syscall that is fully supported with a corresponding seccheck.Point.

Types

This section is empty.

Directories

Path Synopsis
Package linux provides syscall tables for amd64 and arm64 Linux.
Package linux provides syscall tables for amd64 and arm64 Linux.

Jump to

Keyboard shortcuts

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