Ad Widget

Collapse

SELinux denied read external check program in Linux (proper way to fix)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Gutsycat
    Member
    • Nov 2017
    • 72

    #1

    SELinux denied read external check program in Linux (proper way to fix)

    I have program for external check in /usr/bin/myprogram.
    Also I have symlink from /usr/lib/zabbix/externalcheck/myprogram -> /usr/bin/myprogram

    type of my program in SELinux is bin_t

    SELinux denied /usr/sbin/zabbix_server_mysql read lnk_file /usr/lib/zabbix/externalscripts/myprogram

    How to fix this?
  • DmitryL
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • May 2016
    • 278

    #2
    Code:
    grep zabbix /var/log/audit/audit.log | audit2allow -M external_check
    semodule -i external_check.pp

    Comment

    Working...