|
NAME | SYNOPSIS | DESCRIPTION | OPTIONS | EXAMPLE | SEE ALSO | AUTHOR | COLOPHON |
|
|
|
semanage-export(8) semanage-export(8)
semanage-export - SELinux Policy Management import tool
semanage export [-h] [-S STORE] [-f OUTPUT_FILE]
semanage is used to configure certain elements of SELinux policy
without requiring modification to or recompilation from policy
sources. semanage import and export can be used to extract the
SELinux modifications from one machine and apply them to another.
Please note that this will remove all current semanage
customizations on the second machine as the command list generated
using semanage export start with <command> -D for all semanage
sub-commands. You can put a whole group of semanage commands
within a file and apply them to a machine in a single transaction.
-h, --help
show this help message and exit
-S STORE, --store STORE
Select an alternate SELinux Policy Store to manage
-f OUTPUT_FILE, --output_file OUTPUT_FILE
Output file
Import semanage modifications from another machine
# semanage export -f semanage.mods
# scp semanage.mod remotemachine:
# ssh remotemachine
# semanage import -f semanage.mods
selinux(8), semanage(8), semanage-import(8)
This man page was written by Daniel Walsh <dwalsh@redhat.com>
This page is part of the selinux (Security-Enhanced Linux user-
space libraries and tools) project. Information about the project
can be found at ⟨https://github.com/SELinuxProject/selinux/wiki⟩.
If you have a bug report for this manual page, see
⟨https://github.com/SELinuxProject/selinux/wiki/Contributing⟩.
This page was obtained from the project's upstream Git repository
⟨https://github.com/SELinuxProject/selinux⟩ on 2025-08-11. (At
that time, the date of the most recent commit that was found in
the repository was 2025-08-04.) 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
man-pages@man7.org
20130617 semanage-export(8)
Pages that refer to this page: semanage(8), semanage-import(8)