daemon

package
v0.0.0-...-4cc2d59 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultUnixSockAddr = "/var/run/selinuxd.sock"
)

Variables

This section is empty.

Functions

func Daemon

func Daemon(opts *SelinuxdOptions, mPath string, sh semodule.Handler, ds datastore.DataStore, done chan bool,
	l logr.Logger)

Daemon takes the following parameters: * `opts`: are the options to run status server. * `mPath`: is the path to install and read modules from. * `sh`: is the SELinux module handler interface. * `ds`: is the DataStore interface. * `l`: is a logger interface.

func InstallPolicies

func InstallPolicies(modulePath string, sh semodule.Handler, ds datastore.DataStore, policyops chan PolicyAction, logger logr.Logger)

InstallPolicies installs the policies found in the `modulePath` directory nolint: lll

func InstallPoliciesInDir

func InstallPoliciesInDir(mpath string, policyops chan PolicyAction, watcher *fsnotify.Watcher) error

Types

type PolicyAction

type PolicyAction interface {
	String() string
	// contains filtered or unexported methods
}

type SelinuxdOptions

type SelinuxdOptions struct {
	StatusServerConfig
	StatusDBPath string
}

type StatusServerConfig

type StatusServerConfig struct {
	Path            string
	UID             int
	GID             int
	EnableProfiling bool
}

Jump to

Keyboard shortcuts

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