SPEECH_DISPATCHER_SELINUX(8)

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

πŸ’… speech_dispatcher_selinux β€” the SELinux glow-up for speech_dispatcher πŸ‘‘

okay so bestie, this is section 8 of the manual (a sysadmin-page, iykyk), and it's literally all about the SELinux policy that wraps around the speech_dispatcher processes. no cap, it's giving "mandatory access control but make it cute." ✨


🌸 NAME 🌸

speech_dispatcher_selinux β€” the Security Enhanced Linux Policy for the speech_dispatcher processes. that's it, that's the whole vibe. πŸŽ€


πŸ¦‹ DESCRIPTION πŸ¦‹

Security-Enhanced Linux secures the speech_dispatcher processes via flexible mandatory access control. yes bestie, mandatory β€” not the optional kind, the "you WILL behave" kind. πŸ’…

The speech_dispatcher processes execute with the speech_dispatcher_t SELinux type. wanna check if you've got these processes running? just run the ps command with the -Z qualifier. super simple.

for example:

ps -eZ | grep speech_dispatcher_t

literally that's it. go off. πŸ”₯


πŸšͺ ENTRYPOINTS πŸšͺ

The speech_dispatcher_t SELinux type can be entered via the speech_dispatcher_exec_t file type. that's the door, bestie, and there's exactly one key. πŸ—οΈ

the default entrypoint paths for the speech_dispatcher_t domain are, and I cannot stress this enough, just these:

/usr/bin/speech-dispatcher

one path. iconic behavior honestly. πŸ‘‘


🧬 PROCESS TYPES 🧬

SELinux defines process types (domains) for each process running on the system. yes, every single one gets its own little domain. main character energy for every process. ✨

you can see the context of a process using the -Z option to ps. again with the -Z! it's the moment.

Policy governs the access confined processes have to files. the SELinux speech_dispatcher policy is very flexible, allowing users to set up their speech_dispatcher processes in as secure a method as possible. flexible AND secure? we love a multitasker. 🫢

the following process types are defined for speech_dispatcher:

  • speech_dispatcher_t
Note: semanage permissive -a speech_dispatcher_t can be used to make the process type speech_dispatcher_t permissive. SELinux does not deny access to permissive process types, but the AVC (SELinux denials) messages are still generated. so like, it's not mad, it's just disappointed and writing it all down in its diary. πŸ““πŸ’€

🎚️ BOOLEANS 🎚️

SELinux policy is customizable based on least access required. speech_dispatcher policy is extremely flexible and has several booleans that allow you to manipulate the policy and run speech_dispatcher with the tightest access possible. tightest access = the most locked-down slay. πŸ”’

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

both already on by default btw, so like, you're already winning. 🌈


πŸ“‚ MANAGED FILES πŸ“‚

The SELinux process type speech_dispatcher_t can manage files labeled with the following file types. the paths listed are the default paths for these file types. ⚠️ Note: the process's UID still needs to have DAC permissions β€” SELinux is not out here overriding the classic permission system, bestie, they're a team. 🀝

cache_home_t

/root/.cache(/.*)?
/home/[^/]+/.nv(/.*)?
/home/[^/]+/.cache(/.*)?

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

root_t

/sysroot/.aleph-version.json
/sysroot/ostree/deploy/.*-atomic/deploy(/.*)?
/
/initrd
/var/lib/ntp

speech_dispatcher_home_t

(no default paths listed β€” it's a vibe, not a location πŸ’œ)

speech_dispatcher_log_t

/var/log/speech-dispatcher(/.*)?

speech_dispatcher_tmp_t

(no default paths listed 🌸)

speech_dispatcher_tmpfs_t

(no default paths listed either πŸ¦‹)


🏷️ FILE CONTEXTS 🏷️

SELinux requires files to have an extended attribute to define the file type. yes, files get labels. name tags but for security. πŸŽ€

you can see the context of a file using the -Z option to ls. third time's the charm with -Z, we're obsessed. ✨

Policy governs the access confined processes have to these files. the SELinux speech_dispatcher policy is very flexible, allowing users to set up their speech_dispatcher processes in as secure a method as possible. (yes it's the same line as before, the manpage said it twice, so it stays twice. consistency queen. πŸ‘‘)

🧾 STANDARD FILE CONTEXT 🧾

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

semanage fcontext -a -t speech_dispatcher_exec_t '/srv/speech_dispatcher/content(/.*)?'
restorecon -R -v /srv/myspeech_dispatcher_content
Note: SELinux often uses regular expressions to specify labels that match multiple files. regex girlies rise. 🧚

the following file types are defined for speech_dispatcher:

  • speech_dispatcher_exec_t β€” set files with the speech_dispatcher_exec_t type if you want to transition an executable to the speech_dispatcher_t domain.
  • speech_dispatcher_home_t β€” set files with the speech_dispatcher_home_t type if you want to store speech dispatcher files in the user's home directory.
  • speech_dispatcher_log_t β€” set files with the speech_dispatcher_log_t type if you want to treat the data as speech dispatcher log data, usually stored under the /var/log directory.
  • speech_dispatcher_tmp_t β€” set files with the speech_dispatcher_tmp_t type if you want to store speech dispatcher temporary files in the /tmp directories.
  • speech_dispatcher_tmpfs_t β€” set files with the speech_dispatcher_tmpfs_t type if you want to store speech dispatcher files on a tmpfs file system.
  • speech_dispatcher_unit_file_t β€” set files with the speech_dispatcher_unit_file_t type if you want to treat the files as speech dispatcher unit content.
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 lil temporary tattoo, semanage fcontext is the real ink. choose wisely. πŸ’…

πŸ› οΈ 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. yes, a whole GUI, for the girlies who prefer clicking over typing. πŸ–±οΈβœ¨


✍️ AUTHOR ✍️

This manual page was auto-generated using sepolicy manpage. a bot wrote it, and honestly? it ate. πŸ”₯


πŸ‘€ SEE ALSO πŸ‘€

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


and that's the whole page, bestie πŸ’œ this one came from the speech_dispatcher source, dated 26-10-06, and it's the speech_d...r_selinux(8) page β€” go forth and label responsibly. mwah! πŸ«ΆπŸŽ€

πŸ“¦ where this page comes from