colord_selinux(8)
β¨ 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_tcan be used to make the process typecolord_tpermissive. 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 thecolord_exec_ttype, if you want to transition an executable to thecolord_tdomain.
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 thecolord_tmp_ttype, if you want to storecolordtemporary files in the/tmpdirectories.colord_tmpfs_tβ Set files with thecolord_tmpfs_ttype, if you want to storecolordfiles on atmpfsfile system.colord_unit_file_tβ Set files with thecolord_unit_file_ttype, if you want to treat the files ascolordunit content.colord_var_lib_tβ Set files with thecolord_var_lib_ttype, if you want to store thecolordfiles under the/var/libdirectory.
Paths:
/var/lib/color(/.*)?, /var/lib/colord(/.*)?
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. temporary vs permanent, choose wisely bestie π
π 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-selinuxis 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
- 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