Documentation ¶
Index ¶
- Constants
- func Daemon(opts *SelinuxdOptions, mPath string, sh semodule.Handler, ...)
- func InstallPolicies(modulePath string, sh semodule.Handler, ds datastore.DataStore, ...)
- func InstallPoliciesInDir(mpath string, policyops chan PolicyAction, watcher *fsnotify.Watcher) error
- type PolicyAction
- type SelinuxdOptions
- type StatusServerConfig
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 }
Click to show internal directories.
Click to hide internal directories.