colord_selinux(8)

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

✨ colord_selinux(8) β€” the whole glow-up ✨

okay so this is the manual page for colord_selinux, and yes bestie, it's a SELinux policy page. but like, it's also kind of iconic? it's giving "security but make it fashion." let's get into it πŸ’…


🌸 NAME 🌸

colord_selinux β€” the Security Enhanced Linux Policy for the colord processes, and honestly it's doing the absolute most so you don't have to 🫢


πŸ’– DESCRIPTION πŸ’–

Security-Enhanced Linux secures the colord processes via flexible mandatory access control. literally flexible. mandatory. access control. the way that works is a whole vibe ✨

The colord processes execute with the colord_t SELinux type. want to check if you've got these processes running? run the ps command with the -Z qualifier, easy.

For example:

ps -eZ | grep colord_t

that's it. that's the check. slay.


πŸŽ€ ENTRYPOINTS πŸŽ€

The colord_t SELinux type can be entered via the colord_exec_t file type. (entered via. like a VIP entrance. ok.)

The default entrypoint paths for the colord_t domain are the following:

/usr/lib/[^/]*/colord/colord
/usr/lib/[^/]*/colord/colord-sane
/usr/lib/colord
/usr/libexec/colord
/usr/lib/colord-sane
/usr/lib/colord/colord
/usr/libexec/colord-sane
/usr/lib/colord/colord-sane

(not me listing all eight of them exactly. no cap. πŸ’€)


πŸ¦‹ PROCESS TYPES πŸ¦‹

SELinux defines process types (domains) for each process running on the system. that's the system's whole thing.

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

Policy governs the access confined processes have to files. the SELinux colord policy is very flexible, allowing users to setup their colord processes in as secure a method as possible. lowkey obsessed with how flexible it is.

The following process types are defined for colord:

  • colord_t
Note: semanage permissive -a colord_t can be used to make the process type colord_t permissive. SELinux does not deny access to permissive process types, but the AVC (SELinux denials) messages are still generated. so like, it stops blocking but it still tells on you β€” the messages keep coming πŸ™ˆ

⭐ BOOLEANS ⭐

SELinux policy is customizable based on least access required. the colord policy is extremely flexible and has several booleans that allow you to manipulate the policy and run colord with the tightest access possible. tightest access. periodt.

If you want to determine whether Colord can access nfs file systems, you must turn on the colord_use_nfs boolean. Disabled by default.

setsebool -P colord_use_nfs 1

If you want to dontaudit all daemons scheduling requests (setsched, sys_nice), you must turn on the daemons_dontaudit_scheduling boolean. 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. 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

If you want to support ecryptfs home directories, you must turn on the use_ecryptfs_home_dirs boolean. Disabled by default.

setsebool -P use_ecryptfs_home_dirs 1

🌈 MANAGED FILES 🌈

The SELinux process type colord_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. so like, SELinux says yes but DAC can still say no. teamwork πŸ’œ

  • 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
  • colord_tmp_t β€” no paths listed for this one, it's mysterious like that ✨
  • colord_tmpfs_t β€” also no paths listed πŸ’…
  • colord_var_lib_t
/var/lib/color(/.*)?
/var/lib/colord(/.*)?
  • 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
  • root_t
/sysroot/.aleph-version.json
/sysroot/ostree/deploy/.*-atomic/deploy(/.*)?
/
/initrd
/var/lib/ntp
  • systemd_hwdb_etc_t
/etc/udev/.*hwdb.*
  • zoneminder_tmpfs_t β€” again, no paths. it's giving main character with no backstory 😭

🧚 FILE CONTEXTS 🧚

SELinux requires files to have an extended attribute to define the file type. that's the whole system, bestie.

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 colord policy is very flexible, allowing users to setup their colord processes in as secure a method as possible. (yes it says that twice in the original and yes I'm keeping it twice, facts are facts 🫢)

πŸ’« EQUIVALENCE DIRECTORIES πŸ’«

colord policy stores data with multiple different file context types under the /var/lib/color directory. If you would like to store the data in a different directory you can use the semanage command to create an equivalence mapping. If you wanted to store this data under the /srv directory you would execute the following command:

semanage fcontext -a -e /var/lib/color /srv/color
restorecon -R -v /srv/color

πŸ“ STANDARD FILE CONTEXT πŸ“

SELinux defines the file context types for the colord, 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.

semanage fcontext -a -t colord_exec_t '/srv/colord/content(/.*)?'
restorecon -R -v /srv/mycolord_content
Note: SELinux often uses regular expressions to specify labels that match multiple files. regex girlies rise πŸ™ˆ

The following file types are defined for colord:

  • colord_exec_t β€” Set files with the colord_exec_t type, if you want to transition an executable to the colord_t domain.

Paths:

/usr/lib/[^/]*/colord/colord, /usr/lib/[^/]*/colord/colord-sane,
/usr/lib/colord, /usr/libexec/colord, /usr/lib/colord-sane,
/usr/lib/colord/colord, /usr/libexec/colord-sane,
/usr/lib/colord/colord-sane
  • colord_tmp_t β€” Set files with the colord_tmp_t type, if you want to store colord temporary files in the /tmp directories.
  • colord_tmpfs_t β€” Set files with the colord_tmpfs_t type, if you want to store colord files on a tmpfs file system.
  • colord_unit_file_t β€” Set files with the colord_unit_file_t type, if you want to treat the files as colord unit content.
  • colord_var_lib_t β€” Set files with the colord_var_lib_t type, if you want to store the colord files under the /var/lib directory.

Paths:

/var/lib/color(/.*)?, /var/lib/colord(/.*)?
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. temporary vs permanent, choose wisely bestie πŸ’€

πŸ‘‘ 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 GUI! for the girlies who like clicking πŸŽ€)

🌟 AUTHOR 🌟

This manual page was auto-generated using sepolicy manpage. robot wrote it, human gave it this energy, we love a collab πŸ’–


πŸ”₯ SEE ALSO πŸ”₯

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

go read those too, they're all linked in the group chat ✨


and that's the page, bestie 🫢 this was colord version 26-10-06 from 26-10-06, filed under colord_selinux(8) β€” mwah, go forth and label responsibly πŸ’…πŸŒΈ

πŸ“¦ where this page comes from