os

package
v2.12.0-dev.1 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2026 License: Apache-2.0, BSD-3-Clause, Apache-2.0 Imports: 6 Imported by: 1

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.

Jump to

Keyboard shortcuts

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