semanage-ibpkey(8)
β¨ semanage-ibpkey β¨
okay bestie, you found the semanage-ibpkey page from the semanage-ibpkey(8) manual π this is the SELinux Policy Management ibpkey mapping tool, and honestly? it's giving infrastructure queen. let's get into it π«Ά
πΈ NAME πΈ
semanage-ibpkey β the SELinux Policy Management ibpkey mapping tool β¨
π SYNOPSIS π
semanage ibpkey [-h] [-n] [-N] [-S STORE] [ --add -t TYPE -x
SUBNET_PREFIX -r RANGE ibpkey_name | ibpkey_range | --delete -x
SUBNET_PREFIX ibpkey_name | ibpkey_range | --deleteall | --extract |
--list [-C] | --modify -t TYPE -x SUBNET_PREFIX -r RANGE ibpkey_name |
ibpkey_range ]
literally read that synopsis twice, bestie. the brackets are doing the most and we respect them π
π DESCRIPTION π
So semanage is the tool you use to configure certain elements of SELinux policy without requiring modification to, or recompilation from, policy sources. no cap. no rebuild. just vibes π¦
And semanage ibpkey specifically? it controls the ibpkey number to ibpkey type definitions β¨ that's its whole main character job.
π OPTIONS π
-h,--helpβ shows this help message and exits. the classic "pls explain urself" button π-n,--noheadingβ do not print the heading when listing the specified object type. minimalism, we love her π-N,--noreloadβ do not reload policy after commit. commit and ghost, iykyk π-S STORE,--store STOREβ select an alternate SELinux Policy Store to manage ποΈ-C,--locallistβ list local customizations. just the local ones, bestie β¨-a,--addβ add a record of the specified object type β-d,--deleteβ delete a record of the specified object type ποΈ-m,--modifyβ modify a record of the specified object type π§-l,--listβ list records of the specified object type π-E,--extractβ extract customizable commands, for use within a transaction. very "batch it and slay" of you πΈ-D,--deleteallβ remove all local customizations. dramatic? yes. effective? also yes π-t TYPE,--type TYPEβ the SELinux type for the object π·οΈ-r RANGE,--range RANGEβ MLS/MCS Security Range (MLS/MCS Systems only). The SELinux Range for SELinux login mapping defaults to the SELinux user record range. The SELinux Range for SELinux user defaults tos0. π-x SUBNET_PREFIX,--subnet_prefix SUBNET_PREFIXβ the subnet prefix for the specified pkey or range of pkeys π
π¦ EXAMPLE π¦
List all ibpkey definitions β every single one, no crumbs:
# semanage ibpkey -l
Label pkey 0x8FFF (limited membership default pkey) as a default pkey type. yes, that's the whole flex:
# semanage ibpkey -a -t default_ibpkey_t -x fe80:: 0x8FFF
π SEE ALSO π
selinux(8), semanage(8) β go read those too, bestie, they're the supporting cast and they ate π«Ά
π AUTHOR π
This man page was written by Daniel Jurgens <danielj@mellanox.com> β thank you for your service, king π
and that's the whole page, no notes π this icon of a document is dated 20170508, brought to you by the semanage-ibpkey(8) manual. go forth and label your pkeys, bestie β¨πΈπ¦
π¦ 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