os

package
v1.72.0-dev Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2025 License: Apache-2.0, BSD-3-Clause, Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package os provides integrations into the standard library's `os` package, allowing protection against Local File Inclusion (LFI) 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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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