2013-10-11 12:34:44 +00:00
.TH "semanage-export" "8" "20130617" "" ""
.SH "NAME"
2013-11-06 12:24:01 +00:00
.B semanage\-export \- SELinux Policy Management import tool
2013-10-11 12:34:44 +00:00
.SH "SYNOPSIS"
.B semanage export [\-h] [\-S STORE] [\-f OUTPUT_FILE]
.SH "DESCRIPTION"
semanage is used to configure certain elements of
SELinux policy without requiring modification to or recompilation
2023-05-04 12:04:49 +00:00
from policy sources.
.B semanage import
and
.B 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
.B semanage export
start with
.I <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.
2013-10-11 12:34:44 +00:00
.SH "OPTIONS"
.TP
.I \- h, \- \- help
show this help message and exit
.TP
.I \- S STORE, \- \- store STORE
Select an alternate SELinux Policy Store to manage
.TP
.I \- f OUTPUT_FILE, \- \- output_file OUTPUT_FILE
Output file
.SH EXAMPLE
.nf
Import semanage modifications from another machine
2013-11-06 12:24:01 +00:00
# semanage export \- f semanage.mods
2013-10-11 12:34:44 +00:00
# scp semanage.mod remotemachine:
# ssh remotemachine
2013-11-06 12:24:01 +00:00
# semanage import \- f semanage.mods
2013-10-11 12:34:44 +00:00
.SH "SEE ALSO"
2017-01-11 12:41:09 +00:00
.BR selinux (8),
.BR semanage (8),
.BR semanage-import (8)
2013-10-11 12:34:44 +00:00
.SH "AUTHOR"
This man page was written by Daniel Walsh <dwalsh@redhat.com>