Skip to contentSkip to conversation

Label /usr/share/gitweb/static as httpd_git_content_t

PATCH New Nicolas Iooss 2 participants 2 messages Apr 5, 2014 – Apr 11, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Label /usr/share/gitweb/static as httpd_git_content_t

This directory contains gitweb static files at least on Debian and ArchLinux.

---
 git.fc | 1 +
 1 file changed, 1 insertion(+)
git.fc +1 -0
index d8a3f8e..c26586d 100644
@@ -5,6 +5,7 @@ HOME_DIR/public_git(/.*)?		gen_context(system_u:object_r:git_user_content_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)
+/usr/share/gitweb/static(/.*)?		gen_context(system_u:object_r:httpd_git_content_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.1
#1 lore raw

PATCH 1/1 Label /usr/share/gitweb/static as httpd_git_content_t

Quoted 10 lines · Nicolas Iooss

This directory contains gitweb static files at least on Debian and ArchLinux.

---
 git.fc | 1 +
 1 file changed, 1 insertion(+)
git.fc +0 -0
index d8a3f8e..c26586d 100644

git.fc HOME_DIR/public_git(/.*)? gen_context(system_u:object_r:git_user_content_t,s0) · line 11

Quoted 7 lines
git.fc +1 -0
@@ -5,6 +5,7 @@ HOME_DIR/public_git(/.*)?		gen_context(system_u:object_r:git_user_content_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)
+/usr/share/gitweb/static(/.*)?		gen_context(system_u:object_r:httpd_git_content_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