dovecot_auth_selinux(8)
π
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_tcan be used to make the process typedovecot_auth_tpermissive. 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 thefips_modeboolean. Enabled by default.
setsebool -P fips_mode 1
- if you want to allow system to run with NIS, you must turn on the
nis_enabledboolean. 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 thedovecot_auth_exec_ttype if you want to transition an executable to thedovecot_auth_tdomain.
paths:
/usr/lib/dovecot/auth, /usr/libexec/dovecot/auth,
/usr/libexec/dovecot/dovecot-auth
dovecot_auth_tmp_tβ set files with thedovecot_auth_tmp_ttype if you want to store dovecot auth temporary files in the/tmpdirectories.
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.chconis the "i'll change it back tomorrow" of the SELinux world, and we all know how that goes π
π₯ 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. 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
- 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