label

package
v1.7.5 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2023 License: Apache-2.0 Imports: 2 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	sync.Mutex

	Releaser func(string)
	Reserver func(string)
	// contains filtered or unexported fields
}

Store is used to store SELinux process labels

func NewStore

func NewStore() *Store

NewStore creates a new SELinux process label store

func (*Store) Release

func (s *Store) Release(label string)

Release un-reserves the MLS/MCS level component of the specified label, allowing it to be used by another process once labels with the same level have been released.

func (*Store) Reserve

func (s *Store) Reserve(label string) error

Reserve reserves the MLS/MCS level component of the specified label and prevents multiple reserves for the same level

Jump to

Keyboard shortcuts

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