L_GETSEPOL(8)
π L_GETSEPOL π
okay bestie, so this is a page from the Lustre Configuration Utilities manual β that's the L_GETSEPOL(8) situation iykyk β and it's all about pulling your Lustre SELinux policy info. no cap, it's a lil one-page wonder and honestly? iconic. let's get into it π«Ά
β¨ NAME β¨
l_getsepol β Lustre SELinux policy info. that's the whole name. short, sweet, slays. π
πΈ SYNOPSIS πΈ
l_getsepol
that's it. no flags, no args, no drama. she just runs. β¨
π¦ DESCRIPTION π¦
so here's the vibe: l_getsepol generates the Lustre SELinux policy info that you're gonna set as a reference on a nodemap using lctl-nodemap_set_sepol(8). bestie it's literally the reference-policy-maker. π
the info string describing the SELinux policy has this syntax:
MODE:NAME:VERSION:HASH
and here's the breakdown, colon by colon:
MODEβ a single digit telling you if SELinux is in Permissive mode (0) or Enforcing mode (1). zero or one, that's the whole mood spectrum.NAMEβ the name of the SELinux policy. lowercase name, big identity energy.VERSIONβ the version of the SELinux policy. yes, policies get versions, we love a glow-up timeline.HASHβ the computed hash of the binary representation of the policy, as exported in/etc/selinux/<name>/policy/policy.<version>. long hex string, main character behaviour, no notes. π₯
π important: l_getsepol should be run on a client node known to enforce the right SELinux policy. run it somewhere random and you're getting someone else's policy tea, not yours. pick the right node bestie.
π EXAMPLES π
okay watch this:
# l_getsepol
SELinux status info: 1:mls:31:c79984bb42c0151cb0d8cc34a196a6ca95c2791190c403804efb3e9d81b6109c
see that 1 up front? that's Enforcing mode, she's locked in. then mls is the policy name, 31 is the version, and the rest is the hash β a whole bouquet of hex digits, so pretty. β¨
π AVAILABILITY π
l_getsepol is part of the lustre(7) filesystem package since release 2.13.0. so if you're on 2.13.0 or later, she's there for you, girl. π
π SEE ALSO π
go read those too, they're the friend group. π«Ά
πΈ okay that's the page! this one came straight out of the Lustre manual, dated 2024-08-29. mwah, take care, run it on the right node, and stay Enforcing. πβ¨π
π¦ where this page comes from
- ubuntu stonking: lustre-client-utils 2.17.58+dfsg-0ubuntu2 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms