qmail_smtpd_selinux(8)

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

πŸ’… qmail_smtpd_selinux(8) β€” the glow-up edition ✨

okay so bestie, this is the manual page for qmail_smtpd_selinux, and it's literally all about how SELinux keeps an eye on your qmail_smtpd processes. no cap, it's giving security but make it cute πŸŽ€


🌸 NAME 🌸

qmail_smtpd_selinux β€” the Security Enhanced Linux Policy for the qmail_smtpd processes 🫢


✨ DESCRIPTION ✨

Security-Enhanced Linux secures the qmail_smtpd processes via flexible mandatory access control. it's not doing the most, it's just doing exactly the right amount πŸ’…

The qmail_smtpd processes execute with the qmail_smtpd_t SELinux type. wanna check if you've got these processes running? just run the ps command with the -Z qualifier. super easy, barely an inconvenience:

ps -eZ | grep qmail_smtpd_t

like, that's it. that's the vibe check πŸ”


πŸ¦‹ ENTRYPOINTS πŸ¦‹

The qmail_smtpd_t SELinux type can be entered via the qmail_smtpd_exec_t file type β€” that's the lil doorway into the domain, iykyk πŸšͺ

the default entrypoint paths for the qmail_smtpd_t domain are literally exactly this:

/var/qmail/bin/qmail-smtpd

πŸ‘‘ PROCESS TYPES πŸ‘‘

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

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_smtpd policy is very flexible, allowing users to set up their qmail_smtpd processes in as secure a method as possible. tightest security possible, no notes πŸ’–

The following process types are defined for qmail_smtpd:

  • qmail_smtpd_t
Note: semanage permissive -a qmail_smtpd_t can be used to make the process type qmail_smtpd_t permissive. SELinux does not deny access to permissive process types, but the AVC (SELinux denials) messages are still generated. so like, it's chill about it but it's still taking notes πŸ“πŸ˜­

πŸŽ€ BOOLEANS πŸŽ€

SELinux policy is customizable based on least access required. the qmail_smtpd policy is extremely flexible and has several booleans that allow you to manipulate the policy and run qmail_smtpd with the tightest access possible. booleans are basically lil on/off switches and honestly? obsessed 🎚️

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 confined applications to run with kerberos, you must turn on the kerberos_enabled boolean. Enabled by default.

setsebool -P kerberos_enabled 1

🌈 FILE CONTEXTS 🌈

SELinux requires files to have an extended attribute to define the file type. it's literally how it knows what's what πŸ’…

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_smtpd policy is very flexible, allowing users to set up their qmail_smtpd processes in as secure a method as possible. yes we said that already but it's important, okay?? 🫢

⭐ STANDARD FILE CONTEXT ⭐

SELinux defines the file context types for the qmail_smtpd, so 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, tell it where the files live and actually commit to it πŸ—‚οΈ

semanage fcontext -a -t qmail_smtpd_exec_t
'/srv/qmail_smtpd/content(/.*)?'
restorecon -R -v /srv/myqmail_smtpd_content
Note: SELinux often uses regular expressions to specify labels that match multiple files. regex my beloved 😌

The following file types are defined for qmail_smtpd:

  • qmail_smtpd_exec_t
    • set files with the qmail_smtpd_exec_t type if you want to transition an executable to the qmail_smtpd_t domain. it's giving ✨career change✨
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. yes, a GUI, for when the terminal is doing too much πŸ™ˆ

πŸ’œ AUTHOR πŸ’œ

This manual page was auto-generated using sepolicy manpage. no human wrote this, it just spawned like that. iconic behavior honestly πŸ€–βœ¨


🌟 SEE ALSO 🌟

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


and that's the whole page bestie!! πŸŽ‰ this lil number comes to you from qmail_smtpd, dated 26-10-06, and it's qmail_smtpd_selinux(8) all the way down. go forth and be secure πŸ’–πŸŒΈπŸ’…

πŸ“¦ where this page comes from