selinux...selinux(8)

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

πŸ’… NAME

okay so bestie, gather round β€” this is selinux_munin_plugin_selinux, which is literally the Security Enhanced Linux Policy for the selinux_munin_plugin processes. that's the whole name, that's the whole vibe. ✨


🌸 DESCRIPTION

Security-Enhanced Linux secures the selinux_munin_plugin processes via flexible mandatory access control. like, it's giving very much "we don't do whatever we want here" and honestly? iconic. πŸ‘‘

The selinux_munin_plugin processes execute with the selinux_munin_plugin_t SELinux type. you can check if you've got these processes running by executing the ps command with the -Z qualifier. vibe check time:

ps -eZ | grep selinux_munin_plugin_t

no cap, that's it. that's the whole check. 🫢


πŸ¦‹ ENTRYPOINTS

The selinux_munin_plugin_t SELinux type can be entered via the selinux_munin_plugin_exec_t file type. that's the door, bestie. one door. πŸšͺ

The default entrypoint paths for the selinux_munin_plugin_t domain are the following:

/usr/share/munin/plugins/selinux_avcstat

literally just the one. she's specific. πŸ’…


⭐ PROCESS TYPES

SELinux defines process types (domains) for each process running on the system. yes. every. single. one. 😭

You can see the context of a process using the -Z option to ps. (same trick as before, it's giving consistency.)

Policy governs the access confined processes have to files. SELinux selinux_munin_plugin policy is very flexible, allowing users to set up their selinux_munin_plugin processes in as secure a method as possible. flexible and secure? she ate. πŸ”₯

The following process types are defined for selinux_munin_plugin:

  • selinux_munin_plugin_t
Note: semanage permissive -a selinux_munin_plugin_t can be used to make the process type selinux_munin_plugin_t permissive. SELinux does not deny access to permissive process types, but the AVC (SELinux denials) messages are still generated. so like… she won't block you, but she's still gonna talk about it in the logs. πŸ’€

πŸŽ€ BOOLEANS

SELinux policy is customizable based on least access required. selinux_munin_plugin policy is extremely flexible and has several booleans that allow you to manipulate the policy and run selinux_munin_plugin with the tightest access possible. booleans are basically the on/off switches and we love a toggle. 🌈

If you want to allow all domains to execute in fips_mode, you must turn on the fips_mode boolean. Enabled by default. (so she's already on, no notes.)

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

two booleans, two little buttons. press responsibly. πŸ“


πŸ’œ MANAGED FILES

The SELinux process type selinux_munin_plugin_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 β€” like, SELinux says yes but your regular file permissions can still say no. both have to agree. it's a whole committee. πŸ™ˆ

  • 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
  • munin_plugin_state_t
/var/lib/munin/plugin-state(/.*)?
  • selinux_munin_plugin_tmp_t

(no default paths listed for this one β€” she's mysterious like that. 🀫)


✨ FILE CONTEXTS

SELinux requires files to have an extended attribute to define the file type. yep, every file's got a little label on it. it's fashion but for filesystems. πŸŽ€

You can see the context of a file using the -Z option to ls. (-Z really is the main character of this whole manpage, ngl.)

Policy governs the access confined processes have to these files. SELinux selinux_munin_plugin policy is very flexible, allowing users to set up their selinux_munin_plugin processes in as secure a method as possible.

🌟 STANDARD FILE CONTEXT

SELinux defines the file context types for selinux_munin_plugin. 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. two steps, bestie, don't skip the second one:

semanage fcontext -a -t selinux_munin_plugin_exec_t '/srv/selinux_munin_plugin/content(/.*)?'
restorecon -R -v /srv/myselinux_munin_plugin_content
Note: SELinux often uses regular expressions to specify labels that match multiple files. regex stays winning. πŸ’…

The following file types are defined for selinux_munin_plugin:

  • selinux_munin_plugin_exec_t β€” set files with the selinux_munin_plugin_exec_t type, if you want to transition an executable to the selinux_munin_plugin_t domain.
  • selinux_munin_plugin_tmp_t β€” set files with the selinux_munin_plugin_tmp_t type, if you want to store selinux munin plugin 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. so like… chcon is the temporary tattoo and semanage fcontext + restorecon is the real one. 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. (yes, the switches from before β€” this is the remote control.)

system-config-selinux is a GUI tool available to customize SELinux policy settings. for when you want the clicky version. πŸ–±οΈβœ¨


πŸ‘‘ AUTHOR

This manual page was auto-generated using sepolicy manpage. a bot wrote this. she's doing great. πŸ€–πŸ’–


πŸ’– SEE ALSO

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


and that's the whole page, bestie!! πŸ¦‹ one last lil sign-off for the record books: this was selinux_munin_plugin, dated 26-10-06, living in the selinux...selinux(8) section. go forth and label responsibly. mwah. πŸ’‹πŸŽ€

πŸ“¦ where this page comes from