Documentation
¶
Overview ¶
Package os provides integrations into the standard library's `os` package, allowing protection against Local File Inclusion (LFI) and Command Injection (CMDi) attacks.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OpenFile ¶
func OpenFile(ctx context.Context, path string, flag int, perm os.FileMode) (file *os.File, err error)
OpenFile is a context.Context-aware version of os.OpenFile, that allows the use of ASM rules to protect against Local File Inclusion (LFI) attacks.
func StartProcess ¶ added in v2.10.0
func StartProcess(ctx context.Context, name string, argv []string, attr *os.ProcAttr) (proc *os.Process, err error)
StartProcess is a context.Context-aware version of os.StartProcess, that allows the use of ASM rules to protect against Command Injection (CMDi) attacks.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.