semodule_package8
Create a selinux policy module package.
Usage
semodule_package -o
<output
file>
-m
<module>
[-f
<file
contexts>]
Overview
semodule_package is the tool used to create a SELinux policy module package from a binary policy module and optionally other data such as file contexts. semodule_package packages binary policy modules created by checkmodule. The policy package created by semodule_package can then be installed via semodule.
Examples
# Build a policy package for a base module. $ semodule_package -o base.pp -m base.mod -f file_contexts # Build a policy package for a httpd module. $ semodule_package -o httpd.pp -m httpd.mod -f httpd.fc # Build a policy package for local TE rules and no file contexts. $ semodule_package -o local.pp -m local.mod
Options
-o --outfile <output file>
|
Policy module package file generated by this tool. |
|---|---|
-s --seuser <seuser file>
|
seuser file to be included in the package. |
-u --user_extra <user extra file>
|
user_extra file to be included in the package. |
-m --module <Module file>
|
Policy module file to be included in the package. |
-f --fc <File context file>
|
File contexts file for the module (optional). |
-n --nc <netfilter context file>
|
netfilter context file to be included in the package. |
-
-h --help -
Show help message.
Releases
10 releases since Debian 4.0 (Etch); the text changed 4 times.
--help since Debian 13 (Trixie);
-h since Debian 13 (Trixie).