Skip to contentSkip to conversation

Properly label git-daemon and gitweb.cgi on Debian

PATCH New Laurent Bigonville 2 participants 2 messages Feb 8, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Properly label git-daemon and gitweb.cgi on Debian

From: Laurent Bigonville <[email protected]>

---
 git.fc | 4 ++++
 1 file changed, 4 insertions(+)
git.fc +4 -0
index 24700f8..96bba87 100644
@@ -1,7 +1,11 @@
 HOME_DIR/public_git(/.*)?	gen_context(system_u:object_r:git_user_content_t,s0)
 
+/usr/lib/git-core/git-daemon	--	gen_context(system_u:object_r:gitd_exec_t,s0)
+
 /usr/libexec/git-core/git-daemon	--	gen_context(system_u:object_r:gitd_exec_t,s0)
 
+/usr/share/gitweb/gitweb\.cgi	--	gen_context(system_u:object_r:httpd_git_script_exec_t,s0)
+
 /var/cache/cgit(/.*)?	gen_context(system_u:object_r:httpd_git_rw_content_t,s0)
 /var/cache/gitweb-caching(/.*)?	gen_context(system_u:object_r:httpd_git_rw_content_t,s0)
 
Signature · 1 line
1.9.0.rc3
#1 lore raw

PATCH 1/1 Properly label git-daemon and gitweb.cgi on Debian

Quoted 11 lines · Laurent Bigonville

From: Laurent Bigonville <[email protected]>

---
 git.fc | 4 ++++
 1 file changed, 4 insertions(+)
git.fc +0 -0
index 24700f8..96bba87 100644

git.fc line 10

Quoted 10 lines
git.fc +4 -0
@@ -1,7 +1,11 @@
 HOME_DIR/public_git(/.*)?	gen_context(system_u:object_r:git_user_content_t,s0)
 
+/usr/lib/git-core/git-daemon	--	gen_context(system_u:object_r:gitd_exec_t,s0)
+
 /usr/libexec/git-core/git-daemon	--	gen_context(system_u:object_r:gitd_exec_t,s0)
 
+/usr/share/gitweb/gitweb\.cgi	--	gen_context(system_u:object_r:httpd_git_script_exec_t,s0)
+
 /var/cache/cgit(/.*)?	gen_context(system_u:object_r:httpd_git_rw_content_t,s0)
 /var/cache/gitweb-caching(/.*)?	gen_context(system_u:object_r:httpd_git_rw_content_t,s0)

Merged.

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