cupsd_config_selinux(8)

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

πŸ’– 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_t can be used to make the process type cupsd_config_t permissive. 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
/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_t type if you want to transition an executable to the cupsd_config_t domain.

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_t type if you want to store the cupsd config files under the /run or /var/run directory.
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 little temporary tattoo, semanage fcontext + restorecon is the actual ink πŸ’€

πŸ’œ 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 β€” 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