semodule_package(8) — Linux manual page


SEMODULE_PACKAGE(8)                NSA               SEMODULE_PACKAGE(8)

NAME         top

       semodule_package - Create a SELinux policy module package.

SYNOPSIS         top

       semodule_package -o <output file> -m <module> [-f <file

DESCRIPTION         top

       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.

EXAMPLE         top

       # 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         top

       -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.

SEE ALSO         top

       checkmodule(8), semodule(8), semodule_unpackage(8)

AUTHORS         top

       This manual page was written by Dan Walsh <>.
       The program was written by Karl MacMillan <>

COLOPHON         top

       This page is part of the selinux (Security-Enhanced Linux user-
       space libraries and tools) project.  Information about the
       project can be found at 
       ⟨⟩.  If you have a
       bug report for this manual page, see
       This page was obtained from the project's upstream Git repository
       ⟨⟩ on 2024-06-14.  (At
       that time, the date of the most recent commit that was found in
       the repository was 2023-05-11.)  If you discover any rendering
       problems in this HTML version of the page, or you believe there
       is a better or more up-to-date source for the page, or you have
       corrections or improvements to the information in this COLOPHON
       (which is not part of the original manual page), send a mail to

Security Enhanced Linux         Nov 2005             SEMODULE_PACKAGE(8)

Pages that refer to this page: checkmodule(8)semodule(8)semodule_unpackage(8)