nagios plugins with state files

Dominick Grift domg472 at gmail.com
Thu May 26 11:50:16 UTC 2011


On Thu, 2011-05-26 at 13:48 +0200, Dominick Grift wrote:

> mkdir ~/mytest; cd ~/mytest;
> echo "policy_module(mytest, 1.0.0) gen_require(\` type nagios_spool_t,
> nagios_services_plugin_t, nagios_system_plugin_t; ')
> manage_dirs_pattern({nagios_services_plugin_t
> nagios_services_plugin_t }, nagios_spool_t, nagios_spool_t)
> manage_dirs_pattern({nagios_services_plugin_t

This one should be manage_files_pattern(...

> nagios_services_plugin_t }, nagios_spool_t, nagios_spool_t)" >
> mytest.te; make -f /usr/share/selinux/devel/Makefile mytest.pp
> sudo semodule -i mytest.pp
> sudo restorecon -R -v /var/spool/nagios
> 
> See where that gets you. 
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
Url : http://lists.fedoraproject.org/pipermail/selinux/attachments/20110526/73229c01/attachment.bin 


More information about the selinux mailing list