From: bigon@debian.org (Laurent Bigonville) Date: Mon, 8 Oct 2012 22:56:14 +0200 Subject: [refpolicy] [PATCH 2/2] Add Debian locationis for nut executables and configuration files In-Reply-To: <1349729774-7039-1-git-send-email-bigon@debian.org> References: <1349729774-7039-1-git-send-email-bigon@debian.org> Message-ID: <1349729774-7039-2-git-send-email-bigon@debian.org> To: refpolicy@oss.tresys.com List-Id: refpolicy.oss.tresys.com From: Laurent Bigonville --- nut.fc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nut.fc b/nut.fc index 0a929ef..c6c3632 100644 --- a/nut.fc +++ b/nut.fc @@ -1,6 +1,13 @@ +/etc/nut(/.*)? gen_context(system_u:object_r:nut_conf_t,s0) /etc/ups(/.*)? gen_context(system_u:object_r:nut_conf_t,s0) +/sbin/upsd -- gen_context(system_u:object_r:nut_upsd_exec_t,s0) /sbin/upsdrvctl -- gen_context(system_u:object_r:nut_upsdrvctl_exec_t,s0) +/sbin/upsmon -- gen_context(system_u:object_r:nut_upsmon_exec_t,s0) + +/usr/lib/cgi-bin/nut/upsimage\.cgi -- gen_context(system_u:object_r:httpd_nutups_cgi_script_exec_t,s0) +/usr/lib/cgi-bin/nut/upsset\.cgi -- gen_context(system_u:object_r:httpd_nutups_cgi_script_exec_t,s0) +/usr/lib/cgi-bin/nut/upsstats\.cgi -- gen_context(system_u:object_r:httpd_nutups_cgi_script_exec_t,s0) /usr/sbin/upsd -- gen_context(system_u:object_r:nut_upsd_exec_t,s0) /usr/sbin/upsmon -- gen_context(system_u:object_r:nut_upsmon_exec_t,s0) -- 1.7.10.4