LinuxCommandLibrary

semodule

Manage SELinux policy modules

TLDR

List all installed policy modules

$ sudo semodule -l
copy
Install a new policy module
$ sudo semodule -i path/to/module.pp
copy
Remove a policy module
$ sudo semodule -r module_name
copy
Enable a policy module
$ sudo semodule -e module_name
copy
Disable a policy module
$ sudo semodule -d module_name
copy
Reload all policy modules
$ sudo semodule -R
copy
List with verbose version info
$ sudo semodule -l -v
copy

SYNOPSIS

semodule [options]

DESCRIPTION

semodule manages SELinux policy modules. It installs, removes, enables, and disables modular policy components that extend the base SELinux policy.
Policy modules allow customization of SELinux rules without modifying the base policy.

PARAMETERS

-l, --list

List installed modules
-i, --install file
Install policy module (.pp file)
-r, --remove name
Remove module
-e, --enable name
Enable module
-d, --disable name
Disable module
-R, --reload
Reload all modules
-v, --verbose
Show verbose information

CAVEATS

Module changes require policy reload. Installing incompatible modules may cause policy errors.

HISTORY

Part of policycoreutils, providing modular SELinux policy management.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community