dovecot_auth_selinux(8)

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

πŸ’… dovecot_auth_selinux(8) β€” the SELinux tea for dovecot_auth

okay so bestie, this is the <hotpink>dovecot_auth_selinux</hotpink> page from the SELinux Policy dovecot_auth manual, and I'm gonna walk you through it like we're texting at 2am. grab a strawberry drink πŸ“ and let's go.


✨ NAME ✨

dovecot_auth_selinux β€” the Security Enhanced Linux Policy for the dovecot_auth processes. that's the whole vibe. πŸŽ€


🌸 DESCRIPTION 🌸

Security-Enhanced Linux secures the dovecot_auth processes via flexible mandatory access control. yes ma'am, mandatory. it's not asking, it's telling. πŸ‘‘

The dovecot_auth processes execute with the dovecot_auth_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 dovecot_auth_t

that's it. that's the whole check. iykyk. πŸ’…


πŸ¦‹ ENTRYPOINTS πŸ¦‹

The dovecot_auth_t SELinux type can be entered via the dovecot_auth_exec_t file type. like, that's the door, and dovecot_auth_t is the party inside. πŸšͺ✨

the default entrypoint paths for the dovecot_auth_t domain are literally these:

/usr/lib/dovecot/auth, /usr/libexec/dovecot/auth,
/usr/libexec/dovecot/dovecot-auth

πŸŽ€ PROCESS TYPES πŸŽ€

SELinux defines process types (domains) for each process running on the system. every process gets its own little lane, and honestly? main character energy. ⭐

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 dovecot_auth policy is very flexible, allowing users to setup their dovecot_auth processes in as secure a method as possible.

the following process types are defined for dovecot_auth:

  • dovecot_auth_t
note: semanage permissive -a dovecot_auth_t can be used to make the process type dovecot_auth_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 a free pass β€” the receipts still get printed. 😭

🫢 BOOLEANS 🫢

SELinux policy is customizable based on least access required. the dovecot_auth policy is extremely flexible and has several booleans that allow you to manipulate the policy and run dovecot_auth with the tightest access possible. tightest access = the fit is SNATCHED. πŸ”₯

  • 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

🧚 MANAGED FILES 🧚

The SELinux process type dovecot_auth_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 β€” SELinux isn't out here overriding your regular permissions, bestie. they're a team. 🫱🫲

dovecot_auth_tmp_t

(no default paths listed, she's mysterious like that πŸ™ˆ)

dovecot_var_run_t

/run/dovecot(-login)?(/.*)?

faillog_t

/var/log/btmp.*
/run/faillock(/.*)?
/var/log/faillog.*
/var/log/tallylog.*

initrc_var_run_t

/run/sysconfig(/.*)?
/run/utmp
/run/keymap
/run/numlock-on
/run/setleds-on
/run/runlevel.dir
/run/setmixer_flag
/run/bootsplashctl

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

πŸ’œ FILE CONTEXTS πŸ’œ

SELinux requires files to have an extended attribute to define the file type. yes, files have labels now. everyone's got a label. ✨

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 dovecot_auth policy is very flexible, allowing users to setup their dovecot_auth processes in as secure a method as possible.

⭐ STANDARD FILE CONTEXT ⭐

SELinux defines the file context types for the dovecot_auth. if you wanted to store files with these types in a different paths (yes, "a different paths", the original said so, we don't fix what's iconic πŸ’€), you need to execute the semanage command to specify alternate labeling and then use restorecon to put the labels on disk. like:

semanage fcontext -a -t dovecot_auth_exec_t
'/srv/dovecot_auth/content(/.*)?'
restorecon -R -v /srv/mydovecot_auth_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 dovecot_auth:

  • dovecot_auth_exec_t β€” set files with the dovecot_auth_exec_t type if you want to transition an executable to the dovecot_auth_t domain.

paths:

/usr/lib/dovecot/auth, /usr/libexec/dovecot/auth,
/usr/libexec/dovecot/dovecot-auth
  • dovecot_auth_tmp_t β€” set files with the dovecot_auth_tmp_t type if you want to store dovecot auth temporary files in the /tmp directories.
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. chcon is the "i'll change it back tomorrow" of the SELinux world, and we all know how that goes 😭

πŸ”₯ 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 point and click instead of type. no judgment. πŸ–±οΈπŸ’–

🌸 AUTHOR 🌸

This manual page was auto-generated using sepolicy manpage. a robot wrote it and honestly it ate. πŸ€–βœ¨


πŸ¦‹ SEE ALSO πŸ¦‹

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


kisses bestie πŸ’‹ β€” this was dovecot_auth from dovecot_auth_selinux(8), dated 26-10-06, and it's the dovecot_auth manual through and through. go forth and label responsibly. πŸŽ€πŸ¦‹πŸ’œ

πŸ“¦ where this page comes from