process

package
v0.0.0-...-1239505 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Overview

SPDX-License-Identifier: GPL-2.0-only

Index

Constants

View Source
const (
	StatusDisable = 0
	StatusEnable  = 1
)
View Source
const (
	StatusJudgeDisable = 0
	StatusJudgeAudit   = 1
	StatusJudgeDefense = 2
)
View Source
const (
	StatusPending   = 0
	StatusUntrusted = 1
	StatusTrusted   = 2
)

Variables

View Source
var (
	ErrorEnable      = errors.New("process protection enable failed")
	ErrorDisable     = errors.New("process protection disable failed")
	ErrorUpdateJudge = errors.New("process protection update Judge failed")
	ErrorInvalidCmd  = errors.New("invalid cmd")
	ErrorClearPolicy = errors.New("clear process policy failed")
)

Functions

func ClearPolicy

func ClearPolicy() bool

func Disable

func Disable() bool

func Enable

func Enable() bool

func SetTrustedCmd

func SetTrustedCmd(workdir, binary, argv string) (err error)

func SetUntrustedCmd

func SetUntrustedCmd(workdir, binary, argv string) (err error)

func UpdateJudge

func UpdateJudge(judge int) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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