mailman_queue_selinux(8)

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

πŸ’… mailman_queue_selinux(8) β€” the SELinux glow-up for your mailman_queue girlies

okay so real talk, this is the mailman_queue_selinux(8) page, and it's about the SELinux policy that keeps your mailman_queue processes living their best, most locked-down lives. grab a snack, bestie, we're getting into it πŸ“


✨ NAME ✨

mailman_queue_selinux β€” the whole Security Enhanced Linux Policy situation for the mailman_queue processes. yeah. that's the vibe.


πŸ¦‹ DESCRIPTION πŸ¦‹

Security-Enhanced Linux secures the mailman_queue processes via flexible mandatory access control. mandatory, bestie. it's not a suggestion, it's a whole lifestyle πŸ’…

The mailman_queue processes execute with the mailman_queue_t SELinux type. and like, how do you even know if you've got these processes running? you run the ps command with the -Z qualifier, duh. it's giving "who are you wearing" but for security contexts πŸ‘‘

For example:

ps -eZ | grep mailman_queue_t

go off, ps. go off. πŸ”₯


πŸšͺ ENTRYPOINTS πŸšͺ

The mailman_queue_t SELinux type can be entered via the mailman_queue_exec_t file type. that's the doorway, no cap.

The default entrypoint paths for the mailman_queue_t domain are literally these:

/etc/cron.(daily|monthly)/mailman, /usr/lib/mailman.*/cron/.*,
/usr/lib/mailman.*/bin/qrunner

write them down, screenshot them, tattoo them, whatever works πŸŽ€


πŸ‘‘ PROCESS TYPES πŸ‘‘

okay so SELinux defines process types (domains) for each process running on the system. one domain per process, main character energy for everyone.

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 mailman_queue policy is very flexible, allowing users to setup their mailman_queue processes in as secure a method as possible. flexible AND secure? we love a multitasker πŸ’–

The following process types are defined for mailman_queue:

  • mailman_queue_t β€” the one, the only, the domain in question ✨
Note: semanage permissive -a mailman_queue_t can be used to make the process type mailman_queue_t permissive. SELinux does not deny access to permissive process types, but the AVC (SELinux denials) messages are still generated. so like, it stops blocking you, but it's still taking notes in the group chat 😭

🌸 BOOLEANS 🌸

SELinux policy is customizable based on least access required. the mailman_queue policy is extremely flexible and has several booleans that allow you to manipulate the policy and run mailman_queue with the tightest access possible. tightest access = bestie behavior, fr fr 🫢

If you want to allow all domains to execute in fips_mode, you must turn on the fips_mode boolean. Enabled by default. (yes queen, it's already on)

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. (she's off, you gotta ask nicely)

setsebool -P nis_enabled 1

πŸ—‚οΈ MANAGED FILES πŸ—‚οΈ

The SELinux process type mailman_queue_t can manage files labeled with the following file types. The paths listed are the default paths for these file types. heads up though: the process's UID still needs to have DAC permissions. SELinux isn't out here doing your homework for you πŸ™ˆ

faillog_t

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

fusefs_t

/run/user/[0-9]+/gvfs

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

mailman_archive_t

/var/lib/mailman.*/archives(/.*)?

mailman_data_t

/etc/mailman.*
/var/lib/mailman(/.*)?
/var/spool/mailman.*

mailman_lock_t

/run/lock/mailman.*
/run/lock/subsys/mailman.*

mailman_log_t

/var/log/mailman.*

mailman_queue_tmp_t

(no paths listed here in the original, and we're not out here inventing them, bestie β€” the type is just chilling πŸ’€)


πŸŽ€ FILE CONTEXTS πŸŽ€

SELinux requires files to have an extended attribute to define the file type. it's like a name tag but for security 🏷️

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

⭐ STANDARD FILE CONTEXT ⭐

SELinux defines the file context types for mailman_queue. 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. step one, step two, slay 🌈

semanage fcontext -a -t mailman_queue_exec_t '/srv/mailman_queue/content(/.*)?'
restorecon -R -v /srv/mymailman_queue_content
Note: SELinux often uses regular expressions to specify labels that match multiple files. regex girlies rise ✨

The following file types are defined for mailman_queue:

mailman_queue_exec_t

  • Set files with the mailman_queue_exec_t type, if you want to transition an executable to the mailman_queue_t domain.

Paths:

/etc/cron.(daily|monthly)/mailman, /usr/lib/mailman.*/cron/.*,
/usr/lib/mailman.*/bin/qrunner

mailman_queue_tmp_t

  • Set files with the mailman_queue_tmp_t type, if you want to store mailman queue temporary files in the /tmp directories. tiny little temp files, living their truth 🧚
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 "ugh fine, whatever" fix, semanage fcontext is the "we're actually doing this properly" fix, iykyk πŸ’…

πŸ–₯️ 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 the girlies who prefer clicking πŸ’–


✍️ AUTHOR ✍️

This manual page was auto-generated using sepolicy manpage. not me being literally generated by a script 😭 she's self-made!


πŸ‘€ SEE ALSO πŸ‘€

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


and that's the whole page, bestie!! πŸŽ‰ this little number is mailman_queue, dated 26-10-06, and it's page mailman_queue_selinux(8) of the manual β€” go forth and label responsibly, you've got this πŸ«ΆπŸ’œ

πŸ“¦ where this page comes from