semanage-ibendport(8)
π semanage-ibendport(8) π
okay bestie, pull up a chair, because we're talking about semanage-ibendport β the SELinux Policy Management ibendport mapping tool β¨ (that's section 8 of the manual, iykyk π«Ά)
β¨ SYNOPSIS β¨
semanage ibendport [-h] [-n] [-N] [-S STORE] [ --add -t TYPE -z
IBDEV_NAME -r RANGE port | --delete -z IBDEV_NAME port | --deleteall |
--extract | --list [-C] | --modify -t TYPE -z IBDEV_NAME -r RANGE port ]
πΈ DESCRIPTION πΈ
So here's the vibe: semanage is the tool that lets you configure certain elements of SELinux policy without having to modify or recompile anything from the policy sources. Iconic, honestly. π
And semanage ibendport specifically? It controls the ibendport number to ibendport type definitions. That's the whole job. She's focused, she's got main character energy, and she's not doing anything else. π
π OPTIONS π
-h,--helpβ shows you this help message and then dips. bye bestie π-n,--noheadingβ do not print the heading when you're listing the specified object type. no title card, just the content.-N,--noreloadβ do not reload the policy after commit. commit and ghost π«₯-S STORE,--store STOREβ pick an alternate SELinux Policy Store to manage. choose your own adventure β¨-C,--locallistβ list local customizations only. the homegrown stuff, the originals π-a,--addβ add a record of the specified object type. new entry, who dis π-d,--deleteβ delete a record of the specified object type. it's giving goodbye π-m,--modifyβ modify a record of the specified object type. glow-up time π¦-l,--listβ list records of the specified object type. show me everything π-E,--extractβ extract customizable commands, for use within a transaction. lil grab-bag of commands, ready to go π-D,--deleteallβ remove ALL local customizations. yes, all of them. no cap, it's a full reset π-t TYPE,--type TYPEβ the SELinux type for the object. tell her what she is β¨-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. keep those two defaults in your notes, bestie, they're different π-z IBDEV_NAME,--ibdev_name IBDEV_NAMEβ the name of the infiniband device for the port to be labeled. (ex.mlx5_0) β yes, the example is right there, use it πΈ
π EXAMPLE π
List all ibendport definitions:
# semanage ibendport -l
Label mlx4_0 port 2.
# semanage ibendport -a -t allowed_ibendport_t -z mlx4_0 2
see how clean that is?? list first, then add the record with -t allowed_ibendport_t, -z mlx4_0, and port 2. slay. π₯
π SEE ALSO π
selinux(8), semanage(8) β go read your sisters' pages, they ate too π«Ά
π AUTHOR π
This man page was written by Daniel Jurgens <danielj@mellanox.com>. thank you for your service, king π
k bye!! this was semanage-ibendport(8) from 20170508 β yes she's an oldie but she's still serving π go label some infiniband ports, bestie, and remember: the vibe changes, the flags do not. periodt. π
β¨
π¦ 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