Skip to contentSkip to conversation

Add Debian locationis for nut executables and configuration files

PATCH New Guido Trentalancia 3 participants 3 messages Oct 9, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 Add Debian locationis for nut executables and configuration files

Quoted 12 lines

From: Laurent Bigonville <[email protected]>

---
 nut.fc |    7 +++++++
 1 file changed, 7 insertions(+)
nut.fc +1 -0
index 0a929ef..c6c3632 100644
@@ -1,6 +1,13 @@
+/etc/nut(/.*)?		gen_context(system_u:object_r:nut_conf_t,s0)

[cut]

nut.fc

Quoted 4 lines
nut.fc +4 -0
+
+/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)

The above three entries should be probably added to httpd.fc rather than here, I think...

Quoted 4 lines

/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)

Signature · 1 line
1.7.10.4 
#1 lore raw

PATCH 2/2 Add Debian locationis for nut executables and configuration files

Quoted 15 lines · Guido Trentalancia
Quoted 12 lines

From: Laurent Bigonville <[email protected]>

---
 nut.fc |    7 +++++++
 1 file changed, 7 insertions(+)
nut.fc +1 -0
index 0a929ef..c6c3632 100644
@@ -1,6 +1,13 @@
+/etc/nut(/.*)?		gen_context(system_u:object_r:nut_conf_t,s0)

[cut]

Quoted 6 lines

nut.fc

Quoted 4 lines
nut.fc +4 -0
+
+/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)

The above three entries should be probably added to httpd.fc rather than here, I think...

I kind of agree but that is not how it is done unfortunately. Others were against that.

So this is right

Quoted 5 lines
Quoted 4 lines

/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)

Signature · 1 line
1.7.10.4 
#2 lore raw

PATCH 2/2 Add Debian locationis for nut executables and configuration files

Quoted 25 lines · Dominick Grift
Quoted 15 lines · Guido Trentalancia
Quoted 12 lines

From: Laurent Bigonville <[email protected]>

---
 nut.fc |    7 +++++++
 1 file changed, 7 insertions(+)
nut.fc +1 -0
index 0a929ef..c6c3632 100644
@@ -1,6 +1,13 @@
+/etc/nut(/.*)?		gen_context(system_u:object_r:nut_conf_t,s0)

[cut]

Quoted 6 lines

nut.fc

Quoted 4 lines
nut.fc +4 -0
+
+/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)

The above three entries should be probably added to httpd.fc rather than here, I think...

Quoted 4 lines

I kind of agree but that is not how it is done unfortunately. Others were against that.

So this is right

Right. Its an exception needed for using the content template. The fc entries need to go where the types are declared.

Signature · 3 lines
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com