cpuplug_selinux(8)
β¨ cpuplug_selinux β¨
Okay bestie, so like... this is the manual page for the SELinux policy for cpuplug? And it's from the SELinux Policy cpuplug collection, iykyk. Let me walk you through it because honestly it's giving "niche but important" and we love that for us π
π NAME π
So cpuplug_selinux is literally the Security Enhanced Linux Policy for the cpuplug processes. That's the whole vibe. Periodt.
π¦ DESCRIPTION π¦
Okay so here's the tea: Security-Enhanced Linux secures the cpuplug processes via flexible mandatory access control. It's like having a very strict bouncer for your processes, no cap.
The cpuplug processes execute with the cpuplug_t SELinux type. You can check if you have these processes running by executing the ps command with the -Z qualifier. Like:
ps -eZ | grep cpuplug_t
Literally just run that and see what's up π
πΈ ENTRYPOINTS πΈ
The cpuplug_t SELinux type can be entered via the cpuplug_exec_t file type. It's giving VIP entrance energy β¨
The default entrypoint paths for the cpuplug_t domain are the following:
/usr/bin/cpuplugd
That's it. One path. And it's iconic.
π PROCESS TYPES π
SELinux defines process types (domains) for each process running on the system. Like, every process gets its own little domain, cute right?
You can see the context of a process using the -Z option to ps. Just add that on and you'll see the full picture πΌοΈ
Policy governs the access confined processes have to files. SELinux cpuplug policy is very flexible allowing users to setup their cpuplug processes in as secure a method as possible. Slay for security π
The following process types are defined for cpuplug:
cpuplug_t
Note:semanage permissive -a cpuplug_tcan be used to make the process typecpuplug_tpermissive. SELinux does not deny access to permissive process types, but the AVC (SELinux denials) messages are still generated. It's like, you're telling SELinux to chill about this one but still report what happened. Lowkey useful for debugging, ngl.
π BOOLEANS π
SELinux policy is customizable based on least access required. cpuplug policy is extremely flexible and has several booleans that allow you to manipulate the policy and run cpuplug with the tightest access possible. Booleans are literally just on/off switches for policy behavior and they're so satisfying to toggle.
If you want to dontaudit all daemons scheduling requests (setsched, sys_nice), you must turn on the daemons_dontaudit_scheduling boolean. Enabled by default. Like it's already on, bestie.
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. Enabled by default. Also already on, we love a head start π
setsebool -P fips_mode 1
π§ MANAGED FILES π§
The SELinux process type cpuplug_t can manage files labeled with the following file types. The paths listed are the default paths for these file types. Note the processes UID still need to have DAC permissionsβSELinux doesn't override regular Unix permissions, they work together, bestie. Teamwork makes the dream work π«Ά
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
cpuplug_lock_tcpuplug_var_run_troot_t/sysroot/.aleph-version.json/sysroot/ostree/deploy/.*-atomic/deploy(/.*)?//initrd/var/lib/ntp
sysfs_t/sys(/.*)?
π FILE CONTEXTS π
SELinux requires files to have an extended attribute to define the file type. Like every file has a little name tag at the party, and SELinux checks it before letting it in π«
You can see the context of a file using the -Z option to ls. Just ls -Z and boom, context revealed.
Policy governs the access confined processes have to these files. SELinux cpuplug policy is very flexible allowing users to setup their cpuplug processes in as secure a method as possible. Again, slay for security and flexibility together π
β STANDARD FILE CONTEXT β
SELinux defines the file context types for the cpuplug, if you wanted to store files with these types in a different paths, you need to execute the semanage command to specify alternate labeling and then use restorecon to put the labels on disk. It's like relabeling the folders in your file system but make it SELinux.
semanage fcontext -a -t cpuplug_exec_t '/srv/cpuplug/content(/.*)?'
restorecon -R -v /srv/mycpuplug_content
Note: SELinux often uses regular expressions to specify labels that match multiple files. Regex my beloved π
The following file types are defined for cpuplug:
cpuplug_exec_tβ Set files with thecpuplug_exec_ttype, if you want to transition an executable to thecpuplug_tdomain.cpuplug_initrc_exec_tβ Set files with thecpuplug_initrc_exec_ttype, if you want to transition an executable to thecpuplug_initrc_tdomain.cpuplug_lock_tβ Set files with thecpuplug_lock_ttype, if you want to treat the files as cpuplug lock data, stored under the/var/lockdirectory.cpuplug_var_run_tβ Set files with thecpuplug_var_run_ttype, if you want to store the cpuplug files under the/runor/var/rundirectory.
Note: File context can be temporarily modified with thechconcommand. If you want to permanently change the file context you need to use thesemanage fcontextcommand. This will modify the SELinux labeling database. You will need to userestoreconto apply the labels. Sochconis temporary,semanage fcontext+restoreconis forever. Don't mix them up bestie π
π COMMANDS π
Okay so these are the commands you can use to manipulate things.
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. It's giving graphical interface for the girlies who prefer clicking over typing π±οΈβ¨
π«Ά AUTHOR π«Ά
This manual page was auto-generated using sepolicy manpage . β okay auto-generated king, we respect the automation grind π€
π₯ SEE ALSO π₯
Okay that's literally the whole page bestie! This was cpuplug from 26-10-06 in the cpuplug_selinux(8) manual, and honestly? Ate. No crumbs. Go forth and configure your SELinux policy with confidence because you're the main character of your own system security story π
πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: selinux-policy-doc 20250627+git412.dbf877ab7-160000.1.1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms