semanage-interface(8)
π semanage-interface(8) π
okay bestie, so this is the manual page for semanage-interface, which lives in section 8 of the manual (that's the sysadmin zone, very grown-up of you) π
. It's the SELinux policy management network interface tool, and honestly? she's niche but she serves.
β¨ NAME β¨
semanage-interface β the SELinux Policy Management network interface tool πΈ
π¦ SYNOPSIS π¦
semanage interface [-h] [-n] [-N] [-S STORE] [ --add -t TYPE -r RANGE
interface | --delete interface | --deleteall | --extract | --list [-C] |
--modify -t TYPE -r RANGE interface ]
π DESCRIPTION π
semanage is the girl who configures certain elements of SELinux policy without you having to go modify or recompile stuff from the policy sources. no cap, that's the whole point. π
And semanage interface specifically? She controls the labels assigned to network interfaces. that's her job. that's her lane. she stays in it. π
π OPTIONS π
-h,--helpβ shows you this help message and then dips. exit stage left. π«Ά-n,--noheadingβ do NOT print the heading when listing the specified object type. heading? gone. not invited. π-N,--noreloadβ don't reload the policy after commit. she commits and walks away, no second thoughts. π-S STORE,--store STOREβ pick an alternate SELinux Policy Store to manage. choose your own adventure, bestie. β¨-C,--locallistβ list local customizations. the homegrown stuff. the bespoke. π-a,--addβ add a record of the specified object type. new entry, who dis. π-d,--deleteβ delete a record of the specified object type. she's gotta go. π-m,--modifyβ modify a record of the specified object type. glow-up arc, activated. π₯-l,--listβ list records of the specified object type. show me what we're working with. π-E,--extractβ extract customizable commands, for use within a transaction. take the little building blocks with you. π§-D,--deleteallβ remove ALL local customizations. every last one. this is not a drill, bestie, she's taking everything. π-t TYPE,--type TYPEβ the SELinux type for the object. that's the vibe label. β-r RANGE,--range RANGEβ MLS/MCS Security Range (MLS/MCS Systems only). SELinux Range for SELinux login mapping defaults to the SELinux user record range. SELinux Range for SELinux user defaults tos0. yes, two whole different defaults, she contains multitudes. π
πΈ EXAMPLE πΈ
list all interface definitions, go off queen:
# semanage interface -l
assign type netif_t and MLS/MCS range s0:c0.c1023 to interface eth0 β literally giving eth0 a whole identity:
# semanage interface -a -t netif_t -r s0:c0.c1023 eth0
π« SEE ALSO π«
π«Ά AUTHOR π«Ά
This man page was written by Daniel Walsh <dwalsh@redhat.com> β thank you for your service, king. π
and that's the whole page, bestie!! this version is the 20130617 release of semanage-interface(8) β yes, she's an elder but she still ate. mwah, go label some network interfaces 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