thin_selinux(8)

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

πŸ’… thin_selinux(8) β€” the girl's guide to the thin SELinux policy πŸŽ€

okay so bestie, this is the manual page for thin_selinux β€” the Security Enhanced Linux Policy for the thin processes. yes it's a mouthful, no I will not be shortening it. let's go ✨


🌸 NAME 🌸

thin_selinux β€” Security Enhanced Linux Policy for the thin processes. that's it, that's the name, iconic behaviour honestly πŸ’œ


✨ DESCRIPTION ✨

Security-Enhanced Linux secures the thin processes via flexible mandatory access control. flexible AND mandatory, she contains multitudes fr fr πŸ’…

The thin processes execute with the thin_t SELinux type. wanna check if you've got these processes running? just run the ps command with the -Z qualifier. easy peasy πŸ“

for example:

ps -eZ | grep thin_t

look at you go, checking your contexts like a main character πŸ‘‘


πŸ¦‹ ENTRYPOINTS πŸ¦‹

The thin_t SELinux type can be entered via the thin_exec_t file type.

the default entrypoint paths for the thin_t domain are the following:

/usr/bin/thin

one path. one. she's exclusive like that πŸ™ˆ


πŸ‘‘ PROCESS TYPES πŸ‘‘

SELinux defines process types (domains) for each process running on the system. yes, every process has a vibe check 🧚

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 thin policy is very flexible, allowing users to set up their thin processes in as secure a method as possible. security AND flexibility, we love a range πŸ’–

the following process types are defined for thin:

  • thin_t
  • thin_aeolus_configserver_t
note: semanage permissive -a thin_t can be used to make the process type thin_t permissive. SELinux does not deny access to permissive process types, but the AVC (SELinux denials) messages are still generated. so like, she won't block you, but she WILL be writing it down in her notes 😭 keep that in mind bestie.

🌈 BOOLEANS 🌈

SELinux policy is customizable based on least access required. the thin policy is extremely flexible and has several booleans that allow you to manipulate the policy and run thin with the tightest access possible. tightest access possible, periodt πŸ’…

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 on by default, both slaying in their own lane ⭐


πŸŽ€ MANAGED FILES πŸŽ€

The SELinux process type thin_t can manage files labeled with the following file types. the paths listed are the default paths for these file types. quick reminder though β€” the process's UID still needs to have DAC permissions, SELinux can't override that 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

root_t

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

thin_log_t

/var/log/thin.log.*

thin_var_run_t

/run/thin(/.*)?
/run/aeolus/thin.pid

that's the whole roster, no skips, no cuts 😀


πŸ”₯ FILE CONTEXTS πŸ”₯

SELinux requires files to have an extended attribute to define the file type. like a little name tag but for your files 🏷️

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 thin policy is very flexible, allowing users to set up their thin processes in as secure a method as possible. again, we love a secure flexible queen πŸ‘‘

⭐ STANDARD FILE CONTEXT ⭐

SELinux defines the file context types for thin. 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. like so:

semanage fcontext -a -t thin_exec_t '/srv/thin/content(/.*)?'
restorecon -R -v /srv/mythin_content
note: SELinux often uses regular expressions to specify labels that match multiple files. regex jumpscare, but make it chic πŸ’€

the following file types are defined for thin:

  • thin_aeolus_configserver_exec_t β€” set files with the thin_aeolus_configserver_exec_t type if you want to transition an executable to the thin_aeolus_configserver_t domain.
  • thin_aeolus_configserver_lib_t β€” set files with the thin_aeolus_configserver_lib_t type if you want to treat the files as thin aeolus configserver lib data.
  • thin_aeolus_configserver_log_t β€” set files with the thin_aeolus_configserver_log_t type if you want to treat the data as thin aeolus configserver log data, usually stored under the /var/log directory.
  • thin_aeolus_configserver_var_run_t β€” set files with the thin_aeolus_configserver_var_run_t type if you want to store the thin aeolus configserver files under the /run or /var/run directory.
  • thin_exec_t β€” set files with the thin_exec_t type if you want to transition an executable to the thin_t domain.
  • thin_log_t β€” set files with the thin_log_t type if you want to treat the data as thin log data, usually stored under the /var/log directory.
  • thin_var_run_t β€” set files with the thin_var_run_t type if you want to store the thin files under the /run or /var/run directory.

Paths:

/run/thin(/.*)?, /run/aeolus/thin.pid
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, know the difference 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 whole GUI, for the girlies who like buttons πŸŽ€

🧚 AUTHOR 🧚

This manual page was auto-generated using sepolicy manpage.

no human hands, just automation doing her thing ✨


🌟 SEE ALSO 🌟

selinux(8), thin(8), semanage(8), restorecon(8), chcon(1), sepolicy(8), setsebool(8), thin_aeolus_configserver_selinux(8), thin_aeolus_configserver_selinux(8)

(yes, thin_aeolus_configserver_selinux(8) is listed twice β€” that's how the original rolls, and I'm not about to edit her πŸ’…)


and that's the whole page! this one came from the thin package, dated 26-10-06, manual section thin_selinux(8). go forth and label responsibly, bestie πŸ’–πŸ¦‹

πŸ“¦ where this page comes from