checkpc_selinux(8)
β¨ checkpc_selinux β the SELinux glow-up for checkpc processes β¨
okay bestie, so this is the checkpc_selinux manual page, and it's literally all about how SELinux (Security-Enhanced Linux) keeps the checkpc processes in check. no cap, it's giving "mandatory access control but make it fashion." π
πΈ NAME πΈ
checkpc_selinux β the Security Enhanced Linux Policy for all the checkpc processes, fr fr.
π DESCRIPTION π
Security-Enhanced Linux secures the checkpc processes via flexible mandatory access control. it's not just vibes β it's actual enforced policy. π
The checkpc processes execute with the checkpc_t SELinux type. you can check if you've got these processes running by executing the ps command with the -Z qualifier, bestie.
like, for example:
ps -eZ | grep checkpc_t
that's the vibe check right there. π
π¦ ENTRYPOINTS π¦
so the checkpc_t SELinux type can be entered via the checkpc_exec_t file type. that's the door, okay?
The default entrypoint paths for the checkpc_t domain are literally just the following:
/usr/bin/checkpc
one path, one icon, main character energy. β¨
π PROCESS TYPES π
SELinux defines process types (also called domains, iykyk) for each process running on the system. it's a whole taxonomy, honestly.
you can see the context of a process using the -Z option to ps. yes, the same one we mentioned before, but it bears repeating. π
Policy governs the access confined processes have to files. the SELinux checkpc policy is very flexible β allowing users to set up their checkpc processes in as secure a method as possible. tightest access, bestie. π
The following process types are defined for checkpc:
checkpc_t
Note:semanage permissive -a checkpc_tcan be used to make the process typecheckpc_tpermissive. SELinux does not deny access to permissive process types, but the AVC (SELinux denials) messages are still generated. so like, it's permissive but it's still snitching. π
π BOOLEANS π
SELinux policy is customizable based on least access required. the checkpc policy is extremely flexible and has several booleans that allow you to manipulate the policy and run checkpc with the tightest access possible. booleans are basically little on/off switches for policy behavior, and they are iconic. ποΈ
If you want to allow all domains to execute in fips_mode, you must turn on the fips_mode boolean. Enabled by default.
setsebool -P fips_mode 1
If you want to allow system to run with NIS, you must turn on the nis_enabled boolean. Disabled by default.
setsebool -P nis_enabled 1
that's the whole boolean moment. two switches, both slaying. π
π MANAGED FILES π
The SELinux process type checkpc_t can manage files labeled with the following file types. The paths listed are the default paths for these file types. just a heads up: the processes UID still need to have DAC permissions. SELinux doesn't override the classics. π
print_spool_t
/var/spool/lpd(/.*)?
/var/spool/cups(/.*)?
/var/spool/cups-pdf(/.*)?
all the print spooling vibes, gathered in one file type. π¨οΈβ¨
π FILE CONTEXTS π
SELinux requires files to have an extended attribute to define the file type. it's like a name tag but for security. π·οΈ
you can see the context of a file using the -Z option to ls. yep, -Z again, it's everywhere, it's that girl. π
Policy governs the access confined processes have to these files. the SELinux checkpc policy is very flexible β allowing users to set up their checkpc processes in as secure a method as possible. (yes, we said this before, but it's important, okay?)
β STANDARD FILE CONTEXT β
SELinux defines the file context types for checkpc. 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. like, relabel and restore, the whole ritual. π―οΈ
semanage fcontext -a -t checkpc_exec_t '/srv/checkpc/content(/.*)?'
restorecon -R -v /srv/mycheckpc_content
Note: SELinux often uses regular expressions to specify labels that match multiple files. regex is that girl too, unfortunately. π
The following file types are defined for checkpc:
checkpc_exec_tβ Set files with thecheckpc_exec_ttype, if you want to transition an executable to thecheckpc_tdomain. the exec type is the doorway to the domain, periodt.checkpc_log_tβ Set files with thecheckpc_log_ttype, if you want to treat the data ascheckpclog data, usually stored under the/var/logdirectory. logs stay logged. π
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. no shortcuts, bestie, that's the whole pipeline. π
π COMMANDS π
semanage fcontextcan also be used to manipulate default file context mappings. it's the database queen.semanage permissivecan also be used to manipulate whether or not a process type is permissive. toggle that vibe.semanage modulecan also be used to enable/disable/install/remove policy modules. modules are the building blocks, iykyk.semanage booleancan also be used to manipulate the booleans. yes, the switches again.system-config-selinuxis a GUI tool available to customize SELinux policy settings. for when you want to point and click instead of typing, no judgment. π±οΈβ¨
π§ AUTHOR π§
This manual page was auto-generated using sepolicy manpage. not me being literally generated by a tool, but here we are, thriving. π«Ά
π₯ SEE ALSO π₯
selinux(8), checkpc(8), semanage(8), restorecon(8), chcon(1), sepolicy(8), setsebool(8) β go read them, they're all part of the ecosystem, bestie. π
so that's the whole page, and honestly? it ate. the original footer says checkpc 26-10-06 checkpc_selinux(8) β so official source and date noted, periodt. πβ¨π
π¦ 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