semanage-ibpkey(8)

πŸ“¦
version 3.11 Β· 2 versions
, in centos-stream 10, centos-stream 9, debian trixie, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ 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 to s0. πŸ”
  • -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 βœ¨πŸŒΈπŸ¦‹