semanage-import(8)
π semanage-import β SELinux Policy Management import tool π
ok so this is a page from the semanage-import(8) manual, bestie. it's giving "moving your SELinux customizations between machines" and honestly? iconic. let's get into it π«Ά
β¨ SYNOPSIS β¨
semanage import [-h] [-N] [-S STORE] [-f INPUT_FILE]
πΈ DESCRIPTION πΈ
okay so here's the vibe. semanage is the tool you use to configure certain elements of SELinux policy without needing to modify or recompile anything from policy sources. no recompiling, no drama, we love that for us. π
and then there's semanage import and semanage export β these two are a duo, a friendship bracelet situation. you use them to extract the SELinux modifications from one machine and apply them to another. moving day, but for policy. π§³β¨
β οΈ IMPORTANT WARNING, NO CAP: this will remove all current semanage customizations on the second machine. why? because the command list generated bysemanage exportstarts with<command> -Dfor all semanage sub-commands. so yeah, it clears house first. know that going in. π
the cute part though: you can put a whole group of semanage commands inside a file and apply them to a machine in a single transaction. one shot, all done. obsessed. π₯
π OPTIONS π
-h,--helpβ shows this help message and then exits. your lil "what does this do again" button π¦-N,--noreloadβ do not reload policy after commit. it commits and then just... chills. π-SSTORE,--storeSTORE β pick an alternate SELinux Policy Store to manage. choosing your own store, main character energy π-fINPUT_FILE,--input_fileINPUT_FILE β the input file. the file you're importing from, bestie π
π EXAMPLE π
importing semanage modifications from another machine, step by step:
# semanage import -f semanage.mods
literally that's it. slay. π
β SEE ALSO β
go read these next, they're all part of the same friend group:
selinux(8)semanage(8)semanage-export(8)
π AUTHOR π
this man page was written by Daniel Walsh <dwalsh@redhat.com>. thank you for your service, king π«Ά
ok that's the whole page, bestie!! date on this one is 20130617 and it's from the semanage-import(8) manual, so if you're citing it in your essay, that's your source. bye ily, go import responsibly πΈβ¨π
π¦ where this page comes from
- centos-stream 10: policycoreutils-python-utils 3.10-2.el10 Β· GPL-2.0-or-later
- centos-stream 10: policycoreutils-python-utils 3.11-1.el10 Β· GPL-2.0-or-later
- centos-stream 9: policycoreutils-python-utils 3.6-7.el9 Β· GPL-2.0-or-later
- centos-stream 9: policycoreutils-python-utils 3.6-9.el9 Β· GPL-2.0-or-later
- debian trixie: policycoreutils-python-utils 3.8.1-2 Β· GPL-2.0-or-later
- fedora 43: policycoreutils-python-utils 3.9-5.fc43 Β· GPL-2.0-or-later
- fedora 43: policycoreutils-python-utils 3.9-7.fc43 Β· GPL-2.0-or-later
- fedora 44: policycoreutils-python-utils 3.10-1.fc44 Β· GPL-2.0-or-later
- fedora 44: policycoreutils-python-utils 3.11-2.fc44 Β· GPL-2.0-or-later
- nixos 26.05: selinux-python 3.10
- nixpkgs unstable: selinux-python 3.10
- opensuse-leap 16.0: policycoreutils-python-utils 3.8.1-160000.5.1 Β· GPL-2.0-or-later
- ubuntu questing: policycoreutils-python-utils 3.8.1-2
- ubuntu resolute: policycoreutils-python-utils 3.9-2 Β· GPL-2.0-or-later
- ubuntu stonking: policycoreutils-python-utils 3.11-2 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms