PEGASUS_OPENLMI_ADMIN_SELINUX(8)

πŸ“¦
version 20250627+git412.dbf877ab7 Β· 7 versions
, in opensuse-leap 16.0

πŸ’– pegasus_openlmi_admin_selinux β€” like, the whole SELinux policy tea for pegasus_openlmi_admin πŸ’–

okay bestie, so this is the manual page for pegasus_openlmi_admin_selinux (the full title is pegasus..._selinux(8), which is giving "truncated by the terminal, but make it fashion" ✨). Sit down, grab a strawberry drink πŸ“, and let's get into it.


🌸 NAME 🌸

pegasus_openlmi_admin_selinux β€” the Security Enhanced Linux policy for the pegasus_openlmi_admin processes. That's it, that's the whole vibe. πŸ’…


✨ DESCRIPTION ✨

Security-Enhanced Linux keeps the pegasus_openlmi_admin processes in check via flexible mandatory access control β€” think of it as the ultimate bodyguard that does not take bribes 🫢.

The pegasus_openlmi_admin processes run with the pegasus_openlmi_admin_t SELinux type. Wanna check if you've got these processes going? Run the ps command with the -Z qualifier, bestie:

ps -eZ | grep pegasus_openlmi_admin_t

Look at you, already doing forensics. Iconic. πŸ‘‘


πŸšͺ ENTRYPOINTS πŸšͺ

You can enter the pegasus_openlmi_admin_t SELinux type through the pegasus_openlmi_admin_exec_t file type. That's the doorway. The velvet rope. The little "members only" sign πŸŽ€.

The default entrypoint paths for the pegasus_openlmi_admin_t domain are literally:

/usr/libexec/pegasus/cmpiLMI_Service-cimprovagt,
/usr/libexec/pegasus/cmpiLMI_Journald-cimprovagt

Two paths. Both slay. No cap. 🌈


🧬 PROCESS TYPES 🧬

SELinux defines process types (domains) for each process running on the system, so every process gets its own little identity, like a group-chat nickname but for security πŸ¦‹.

You can see the context of a process using the -Z option to ps.

Policy governs the access confined processes have to files. And the SELinux pegasus_openlmi_admin policy is very flexible, allowing users to set up their pegasus_openlmi_admin processes in as secure a method as possible. Flexible and secure? We love a multihyphenate. πŸ’œ

The following process types are defined for pegasus_openlmi_admin:

  • pegasus_openlmi_admin_t
Note: semanage permissive -a pegasus_openlmi_admin_t can be used to make the process type pegasus_openlmi_admin_t permissive. SELinux does not deny access to permissive process types, but the AVC (SELinux denials) messages are still generated. So it's like "you're on thin ice but I'm still writing it down in my notes" 😭 β€” the receipts still exist.

🎚️ BOOLEANS 🎚️

SELinux policy is customizable based on least access required. The pegasus_openlmi_admin policy is extremely flexible and has several booleans that let you manipulate the policy and run pegasus_openlmi_admin with the tightest access possible. Tightest access = main character energy, honestly πŸ‘‘.

If you want to dontaudit all daemons scheduling requests (setsched, sys_nice), you must turn on the daemons_dontaudit_scheduling boolean. It is enabled by default.

setsebool -P daemons_dontaudit_scheduling 1

If you want to allow all domains to execute in fips_mode, you must turn on the fips_mode boolean. It is enabled by default.

setsebool -P fips_mode 1

Two booleans, both default-on. Not me checking getsebool -a just to feel something πŸ™ˆ.


πŸ“ MANAGED FILES πŸ“

The SELinux process type pegasus_openlmi_admin_t can manage files labeled with the following file types. The paths listed are the default paths for these file types. Note: the process's UID still needs to have DAC permissions β€” SELinux is not out here overriding your normal permissions, bestie, it's just an extra layer 🧚.

cluster_conf_t

/etc/cluster(/.*)?

cluster_var_lib_t

/var/lib/pcsd(/.*)?
/var/lib/cluster(/.*)?
/var/lib/openais(/.*)?
/var/lib/pengine(/.*)?
/var/lib/corosync(/.*)?
/usr/lib/heartbeat(/.*)?
/var/lib/heartbeat(/.*)?
/var/lib/pacemaker(/.*)?

cluster_var_run_t

/run/crm(/.*)?
/run/cman_.*
/run/rsctmp(/.*)?
/run/aisexec.*
/run/heartbeat(/.*)?
/run/pcsd-ruby.socket
/run/corosync-qnetd(/.*)?
/run/corosync-qdevice(/.*)?
/run/pcsd.socket
/run/corosync.pid
/run/cpglockd.pid
/run/rgmanager.pid
/run/cluster/rgmanager.sk

pegasus_data_t

/var/lib/Pegasus(/.*)?
/etc/Pegasus/pegasus_current.conf
/etc/Pegasus/cimserver_current.conf

root_t

/sysroot/.aleph-version.json
/sysroot/ostree/deploy/.*-atomic/deploy(/.*)?
/
/initrd
/var/lib/ntp

systemd_passwd_var_run_t

/run/systemd/ask-password(/.*)?
/run/systemd/ask-password-block(/.*)?

systemd_unit_file_type

(yes, this one is listed with no paths under it β€” it's giving mysterious, it's giving "no thoughts head empty," and we respect it πŸ’€)


🏷️ FILE CONTEXTS 🏷️

SELinux requires files to have an extended attribute to define the file type β€” like a name tag but for files, and honestly the name tag is mandatory at this party πŸŽ€.

You can see the context of a file using the -Z option to ls.

Policy governs the access confined processes have to these files. The SELinux pegasus_openlmi_admin policy is very flexible, allowing users to set up their pegasus_openlmi_admin processes in as secure a method as possible. Same energy, different noun. Obsessed. ✨

πŸ—‚οΈ STANDARD FILE CONTEXT πŸ—‚οΈ

SELinux defines the file context types for pegasus_openlmi_admin. If you wanted to store files with these types in different paths, you need to execute the semanage command to specify alternate labeling and then use restorecon to put the labels on disk:

semanage fcontext -a -t pegasus_openlmi_admin_exec_t '/srv/pegasus_openlmi_admin/content(/.*)?'
restorecon -R -v /srv/mypegasus_openlmi_admin_content
Note: SELinux often uses regular expressions to specify labels that match multiple files. Regex girlies, this one's for you 🫢.

The following file types are defined for pegasus_openlmi_admin:

pegasus_openlmi_admin_exec_t

  • Set files with the pegasus_openlmi_admin_exec_t type if you want to transition an executable to the pegasus_openlmi_admin_t domain.

Paths:

/usr/libexec/pegasus/cmpiLMI_Service-cimprovagt,
/usr/libexec/pegasus/cmpiLMI_Journald-cimprovagt
Note: File context can be temporarily modified with the chcon command. If you want to permanently change the file context you need to use the semanage fcontext command. This will modify the SELinux labeling database. You will need to use restorecon to apply the labels. So like β€” chcon is the cute temporary tattoo, semanage fcontext + restorecon is the real piercing. Choose wisely πŸ’….

πŸ› οΈ COMMANDS πŸ› οΈ

  • semanage fcontext can also be used to manipulate default file context mappings.
  • semanage permissive can also be used to manipulate whether or not a process type is permissive.
  • semanage module can also be used to enable/disable/install/remove policy modules.
  • semanage boolean can also be used to manipulate the booleans.
  • system-config-selinux is a GUI tool available to customize SELinux policy settings. (A whole GUI, for the girlies who prefer clicking 😌)

✍️ AUTHOR ✍️

This manual page was auto-generated using sepolicy manpage. Not a human author, just a script doing its little job and honestly? Slay, script. πŸ€–βœ¨


πŸ‘€ SEE ALSO πŸ‘€

selinux(8), pegasus_openlmi_admin(8), semanage(8), restorecon(8), chcon(1), sepolicy(8), setsebool(8)


aaaand that's the whole page, bestie 🫢 this one's from pegasus_openlmi_admin, dated 26-10-06 (in the pegasus..._selinux(8) era of the manual, lmao). go forth, label your files correctly, and remember: flexible mandatory access control is not a phase, it's a lifestyle πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from