Summary: | selinux-nagios not allowing nagios-check-disk to check by dir | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Matthew Thode ( prometheanfire ) <prometheanfire> |
Component: | Hardened | Assignee: | Sven Vermeulen (RETIRED) <swift> |
Status: | VERIFIED FIXED | ||
Severity: | normal | CC: | prometheanfire, selinux |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Matthew Thode ( prometheanfire )
2011-08-14 20:48:06 UTC
If you allow nagios_checkdisk_plugin_t var_t:dir { getattr }; is that sufficient to get that working for the /var location? To make it a more "complete" solution then, try ~# cat testmod.te policy_module(testmod, 1.0) require { type nagios_checkdisk_plugin_t; } files_getattr_all_mountpoints(nagios_checkdisk_plugin_t) ~# make -f /usr/share/selinux/strict/include/Makefile testmod.pp ~# semodule -i testmod.pp That should allow getattr on all types that are identified as mountpoints. If you have a location that is a separate file system, but that isn't marked as a mountpoint yet, add typeattribute <type> mountpoint in the definition. For instance, for /usr/portage on a separate partition, you'll have typeattribute portage_ebuild_d mountpoint; That works. Will be in -r2 In hardened-dev overlay now In portage tree (~arch) |