zabbix_script_selinux(8)
π zabbix_script_selinux(8) π
okay so bestie, welcome to the zabbix_script_selinux(8) page β it lives in section 8 of the manual, and the whole thing is literally the SELinux Policy for the zabbix_script processes. yeah. that's the vibe. sit down, grab a strawberry π, we're getting into it.
β¨ NAME β¨
zabbix_script_selinux β the Security Enhanced Linux Policy for the zabbix_script processes. that's it. that's the name. iconic behavior honestly π
π¦ DESCRIPTION π¦
Security-Enhanced Linux secures the zabbix_script processes via flexible mandatory access control. like, SELinux is the main character here and it is not asking permission (it's literally the thing that asks permission, that's the whole point, iykyk).
so the zabbix_script processes execute with the zabbix_script_t SELinux type. you can check if you've got these processes running by executing the ps command with the -Z qualifier, no cap.
for example:
ps -eZ | grep zabbix_script_t
run it. it's giving detective energy πβ¨
π ENTRYPOINTS π
so the zabbix_script_t SELinux type can be entered via the zabbix_script_exec_t file type. that's the doorway. the portal. the entrance if you will πͺβ¨
the default entrypoint paths for the zabbix_script_t domain are literally these:
/usr/lib/zabbix/externalscripts(/.*)?/var/lib/zabbix/externalscripts(/.*)?
(that (/.*)? on the end is a regex thing, we'll get there, don't stress π)
π PROCESS TYPES π
okay so SELinux defines process types (aka domains) for each process running on the system. every single one. no skipping.
you can see the context of a process using the -Z option to ps. yes, same -Z energy as before. consistency slay.
Policy governs the access confined processes have to files. the SELinux zabbix_script policy is very flexible, allowing users to set up their zabbix_script processes in as secure a method as possible. you love to see it π«Ά
the following process types are defined for zabbix_script:
zabbix_script_t
Note:semanage permissive -a zabbix_script_tcan be used to make the process typezabbix_script_tpermissive. 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 watching ππ
π BOOLEANS π
SELinux policy is customizable based on least access required. the zabbix_script policy is extremely flexible and has several booleans that allow you to manipulate the policy and run zabbix_script with the tightest access possible. little switches for your safety bestie ποΈβ¨
- if you want to deny user domains applications to map a memory region as both executable and writable, this is dangerous and the executable should be reported in bugzilla β you must turn on the
deny_execmemboolean. Disabled by default.
setsebool -P deny_execmem 1
- if you want to control the ability to
mmapa low area of the address space, as configured by/proc/sys/vm/mmap_min_addr, you must turn on themmap_low_allowedboolean. Disabled by default.
setsebool -P mmap_low_allowed 1
- if you want to disable kernel module loading, you must turn on the
secure_mode_insmodboolean. Disabled by default.
setsebool -P secure_mode_insmod 1
- if you want to allow unconfined executables to make their heap memory executable β doing this is a really bad idea π. probably indicates a badly coded executable, but could indicate an attack. this executable should be reported in bugzilla β you must turn on the
selinuxuser_execheapboolean. Disabled by default.
setsebool -P selinuxuser_execheap 1
- if you want to allow unconfined executables to make their stack executable β this should never, ever be necessary π. probably indicates a badly coded executable, but could indicate an attack. this executable should be reported in bugzilla β you must turn on the
selinuxuser_execstackboolean. Disabled by default.
setsebool -P selinuxuser_execstack 1
like fr fr, those last two are not it. report the executable. bugzilla. do it. π«‘
π§ MANAGED FILES π§
the SELinux process type zabbix_script_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 said "i can only do so much" π
file_type
- all files on the system
yeah. all of them. she's ambitious β¨
πΈ FILE CONTEXTS πΈ
SELinux requires files to have an extended attribute to define the file type. that's just how it is.
you can see the context of a file using the -Z option to ls. (-Z again!! it's everywhere!! the moment!! π₯)
Policy governs the access confined processes have to these files. the SELinux zabbix_script policy is very flexible, allowing users to set up their zabbix_script processes in as secure a method as possible. we stan configurability π
β STANDARD FILE CONTEXT β
SELinux defines the file context types for zabbix_script. if you wanted to store files with these types in a different path, you need to execute the semanage command to specify alternate labeling and then use restorecon to put the labels on disk. like this:
semanage fcontext -a -t zabbix_script_exec_t '/srv/zabbix_script/content(/.*)?'
restorecon -R -v /srv/myzabbix_script_content
Note: SELinux often uses regular expressions to specify labels that match multiple files. regex girlies rise π
the following file types are defined for zabbix_script:
π zabbix_script_exec_t π
- set files with the
zabbix_script_exec_ttype if you want to transition an executable to thezabbix_script_tdomain.
paths:
/usr/lib/zabbix/externalscripts(/.*)?/var/lib/zabbix/externalscripts(/.*)?
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. temporary vs permanent bestie, know the difference π€
π₯ 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.
one tool to rule them all, and also a GUI if clicking is more your thing π±οΈβ¨
π«Ά AUTHOR π«Ά
this manual page was auto-generated using sepolicy manpage. not me being a bot-written icon πβ¨
π SEE ALSO π
selinux(8), zabbix_script(8), semanage(8), restorecon(8), chcon(1), sepolicy(8), setsebool(8)
go read them. all of them. for me. π₯Ί
and that's the whole page bestie!! this one's from the zabbix_script source, dated 26-10-06, and it's zabbix_script_selinux(8) β ok bye, love u, don't forget to restorecon ππβ¨
π¦ 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