semanage-export(8)

semanage-export8

Selinux policy management import tool

Usage

semanage export [-h] [-S STORE] [-f OUTPUT_FILE]

Overview

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.

Options

-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

Examples

Import semanage modifications from another machine
# semanage export -f semanage.mods
# scp semanage.mod remotemachine:
# ssh remotemachine
# semanage import -f semanage.mods

Releases

6 releases since Debian 8 (Jessie); the text changed 3 times.

  1. 8
  2. 9
  3. 10–12
  4. 13

Author

This man page was written by Daniel Walsh <[email protected]>

From policycoreutils-python-utils 3.8.1-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.