cupsd_config_selinux(8)
π NAME π
okay so bestie, this is cupsd_config_selinux(8) β the SELinux Policy page for the cupsd_config processes β¨ (yes the manual's literally called "SELinux Policy cupsd_config", we been knew π
)
π¦ DESCRIPTION π¦
Security-Enhanced Linux keeps the cupsd_config processes on lock via flexible mandatory access control β like a bouncer but for syscalls, no cap π₯
The cupsd_config processes run with the cupsd_config_t SELinux type. Wanna check if you've got any of those running rn? Just run the ps command with the -Z qualifier, that's it, that's the vibe check π
For example:
ps -eZ | grep cupsd_config_t
πΈ ENTRYPOINTS πΈ
You can slide into the cupsd_config_t SELinux type via the cupsd_config_exec_t file type β that's the doorway, periodt πͺβ¨
The default entrypoint paths for the cupsd_config_t domain are these iconic six:
/usr/bin/hal_lpadmin
/usr/libexec/hal_lpadmin
/usr/bin/printconf-backend
/usr/bin/cups-config-daemon
/usr/lib/udev/udev-configure-printer
/usr/libexec/cups-pk-helper-mechanism
π PROCESS TYPES π
SELinux defines process types (aka domains) for each process running on the system β every process gets its own little label, so cute π·οΈ
You can see the context of a process using the -Z option to ps π
Policy governs the access that confined processes have to files. The SELinux cupsd_config policy is super flexible and lets users set up their cupsd_config processes in as secure a method as possible. Slay.
The following process types are defined for cupsd_config:
cupsd_config_t
Note:semanage permissive -a cupsd_config_tcan be used to make the process typecupsd_config_tpermissive. SELinux does not deny access to permissive process types, but the AVC (SELinux denials) messages are still generated. So like... it stops yelling at you, but it's still writing it all down in its diary π
β BOOLEANS β
SELinux policy is customizable based on least access required β minimum vibes only, we love a boundaries queen π
The cupsd_config policy is extremely flexible and has several booleans that let you manipulate the policy and run cupsd_config with the tightest access possible π
cups_execmemβ if you want to allow cups execmem/execstack, you gotta turn this one on. Disabled by default.
setsebool -P cups_execmem 1
daemons_dontaudit_schedulingβ if you want to dontaudit all daemons scheduling requests (setsched,sys_nice), turn this one on. Enabled by default.
setsebool -P daemons_dontaudit_scheduling 1
fips_modeβ if you want to allow all domains to execute in fips_mode, turn this one on. Enabled by default.
setsebool -P fips_mode 1
nis_enabledβ if you want to allow the system to run with NIS, turn this one on. Disabled by default.
setsebool -P nis_enabled 1
π MANAGED FILES π
The SELinux process type cupsd_config_t can manage files labeled with the following file types. The paths listed are the default paths for these file types β but heads up bestie: the process's UID still needs to have DAC permissions, SELinux can't do everything for you π
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
cupsd_config_var_run_t
/run/udev-configure-printer(/.*)?
cupsd_etc_t
/etc/hp(/.*)?
/etc/cups(/.*)?
/usr/share/cups(/.*)?
cupsd_rw_etc_t
/etc/printcap.*
/etc/cups/ppd(/.*)?
/usr/Brother/(.*/)?inf(/.*)?
/usr/Printer/(.*/)?inf(/.*)?
/usr/lib/bjlib(/.*)?
/var/lib/iscan(/.*)?
/var/cache/cups(/.*)?
/etc/cups/certs/.*
/etc/opt/Brother/(.*/)?inf(/.*)?
/etc/cups/lpoptions.*
/var/cache/foomatic(/.*)?
/usr/local/Brother/(.*/)?inf(/.*)?
/usr/local/Printer/(.*/)?inf(/.*)?
/etc/cups/cupsd.conf.*
/var/lib/cups/certs/.*
/opt/gutenprint/ppds(/.*)?
/opt/brother/Printers(.*/)?inf(/.*)?
/etc/cups/classes.conf.*
/etc/cups/printers.conf.*
/etc/cups/subscriptions.*
/etc/opt/brother/Printers/(.*/)?inf(/.*)?
/usr/local/linuxprinter/ppd(/.*)?
/var/cache/alchemist/printconf.*
/etc/alchemist/namespace/printconf(/.*)?
/etc/cups/certs
/etc/cups/ppds.dat
/var/lib/cups/certs
/usr/share/foomatic/db/oldprinterids
cupsd_tmp_t
(no paths listed for this one β it's mysterious like that π«§)
krb5_host_rcache_t
/var/tmp/krb5_0.rcache2
/var/cache/krb5rcache(/.*)?
/var/tmp/nfs_0
/var/tmp/DNS_25
/var/tmp/host_0
/var/tmp/imap_0
/var/tmp/HTTP_23
/var/tmp/HTTP_48
/var/tmp/ldap_55
/var/tmp/ldap_487
/var/tmp/ldapmap1_0
print_spool_t
/var/spool/lpd(/.*)?
/var/spool/cups(/.*)?
/var/spool/cups-pdf(/.*)?
root_t
/sysroot/.aleph-version.json
/sysroot/ostree/deploy/.*-atomic/deploy(/.*)?
/
/initrd
/var/lib/ntp
π§ FILE CONTEXTS π§
SELinux requires files to have an extended attribute to define the file type β it's the file's whole personality, honestly β¨
You can see the context of a file using the -Z option to ls π
Policy governs the access that confined processes have to these files. The SELinux cupsd_config policy is super flexible and allows users to set up their cupsd_config processes in as secure a method as possible. Yes we're saying it again, because it's true π
π STANDARD FILE CONTEXT π
SELinux defines the file context types for cupsd_config. If you wanted to store files with these types in different paths, you need to run the semanage command to specify alternate labeling and then use restorecon to put the labels on disk π
semanage fcontext -a -t cupsd_config_exec_t '/srv/cupsd_config/content(/.*)?'
restorecon -R -v /srv/mycupsd_config_content
Note: SELinux often uses regular expressions to specify labels that match multiple files. Regex girlies stay winning π«Ά
The following file types are defined for cupsd_config:
cupsd_config_exec_t
- Set files with the
cupsd_config_exec_ttype if you want to transition an executable to thecupsd_config_tdomain.
Paths:
/usr/bin/hal_lpadmin
/usr/libexec/hal_lpadmin
/usr/bin/printconf-backend
/usr/bin/cups-config-daemon
/usr/lib/udev/udev-configure-printer
/usr/libexec/cups-pk-helper-mechanism
cupsd_config_var_run_t
- Set files with the
cupsd_config_var_run_ttype if you want to store the cupsd config 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. So like βchconis the cute little temporary tattoo,semanage fcontext+restoreconis the actual ink π
π COMMANDS π
semanage fcontextcan also be used to manipulate default file context mappings.semanage permissivecan also be used to manipulate whether or not a process type is permissive.semanage modulecan also be used to enable/disable/install/remove policy modules.semanage booleancan also be used to manipulate the booleans.
system-config-selinux is a GUI tool available to customize SELinux policy settings β for when you want to click instead of type, no judgment πΈ
π₯ AUTHOR π₯
This manual page was auto-generated using sepolicy manpage. (Not me writing it by hand at 2am, promise π)
π SEE ALSO π
selinux(8), cupsd_config(8), semanage(8), restorecon(8), chcon(1), sepolicy(8), setsebool(8)
okay that's the whole page bestie, go forth and label things correctly π β¨
this little number is from cupsd_config, dated 26-10-06, and it lives at cupsd_config_selinux(8) β mwah, catch you in the next manpage ππ
π¦ 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