qmail_send_selinux(8)
π
qmail_send_selinux β bestie's guide to the SELinux policy for qmail_send π
okay so this is qmail_send_selinux(8) from the SELinux Policy qmail_send manual, and honestly? it's giving "niche but iconic." let's get into it β¨
πΈ NAME πΈ
qmail_send_selinux β the Security Enhanced Linux Policy for the qmail_send processes. that's it, that's the whole name, and she ate π
π¦ DESCRIPTION π¦
Security-Enhanced Linux secures the qmail_send processes via flexible mandatory access control. yes bestie, mandatory β not like, optional homework mandatory, like the-system-will-say-no mandatory π
the qmail_send processes execute with the qmail_send_t SELinux type, and you can absolutely check if you've got these bad boys running by executing the ps command with the -Z qualifier. vibe check for your processes, basically π
for example:
ps -eZ | grep qmail_send_t
run that and see who's out there living their qmail_send_t truth π
π ENTRYPOINTS π
the qmail_send_t SELinux type can be entered via the qmail_send_exec_t file type β that's the doorway, the main character entrance, the "you shall not pass unless you're labeled right" moment πͺβ¨
the default entrypoint paths for the qmail_send_t domain are the following:
/var/qmail/bin/qmail-send
one path. that's the whole VIP list. iconic behavior honestly π
π§ PROCESS TYPES π§
SELinux defines process types (domains) for each process running on the system β think of it like every process gets its own little labeled room π
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 qmail_send policy is very flexible, allowing users to setup their qmail_send processes in as secure a method as possible. flexible and secure? we love a multitasker π
the following process types are defined for qmail_send:
qmail_send_t
Note:semanage permissive -a qmail_send_tcan be used to make the process typeqmail_send_tpermissive. SELinux does not deny access to permissive process types, but the AVC (SELinux denials) messages are still generated. so like, she's not blocking you anymore, but she's still watching and taking notes ππ
β¨ BOOLEANS β¨
SELinux policy is customizable based on least access required β the "you get exactly what you need and not a crumb more" philosophy πͺ
qmail_send policy is extremely flexible and has several booleans that allow you to manipulate the policy and run qmail_send with the tightest access possible. tightest access possible, no cap π
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
that -P is doing the heavy lifting so it actually persists, periodt π
π MANAGED FILES π
the SELinux process type qmail_send_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, she's just adding a whole extra layer of judgment, bestie π
qmail_spool_t
/var/qmail/queue(/.*)?
that regex? she's matching everything under /var/qmail/queue, and she's slaying while doing it π¦
π FILE CONTEXTS π
SELinux requires files to have an extended attribute to define the file type β yes, every file has a little vibe tag attached, that's just how it is here π·οΈ
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 qmail_send policy is very flexible, allowing users to setup their qmail_send processes in as secure a method as possible β¨
π STANDARD FILE CONTEXT π
SELinux defines the file context types for the qmail_send, and 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. relocating your files but keeping the labels? main character energy ππ
semanage fcontext -a -t qmail_send_exec_t
'/srv/qmail_send/content(/.*)?'
restorecon -R -v /srv/myqmail_send_content
Note: SELinux often uses regular expressions to specify labels that match multiple files. regex girlies rise π
the following file types are defined for qmail_send:
qmail_send_exec_t
- Set files with the
qmail_send_exec_ttype, if you want to transition an executable to theqmail_send_tdomain. π
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. ngl this is the part people mess up the most β temporary vs permanent, know the difference fr fr π
π οΈ 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 clicky girlies!)
π AUTHOR π
This manual page was auto-generated using sepolicy manpage . β so like, nobody hand-wrote this, the machine did it, and honestly? she understood the assignment π€π
π SEE ALSO π
selinux(8), qmail_send(8), semanage(8), restorecon(8), chcon(1), sepolicy(8), setsebool(8) β go read those too, they're all in the same friend group π«Ά
and that's the whole page, bestie! this one's page qmail_send, last touched 26-10-06, and you can find it filed under qmail_send_selinux(8). 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