Skip to contentSkip to conversation

1/1] This is my proposal to deal with the following concerned raised in previous patch set:

RFC New Dominick Grift 1 participant 1 message Aug 27, 2011

lore
Share & tools
lore
#0 lore raw

RFC 1/1 1/1] This is my proposal to deal with the following concerned raised in previous patch set:

1. having a git specific template in the userdom module (userdom_git_user_template)

renamed userdom_git_user_template to userdom_minimal_user_template. Edited userdom_base_user_template to use the userdom_minimal_user_template. removed all policy that does not belong in userdom_minimal_user_template.

2. remove git_manage/exec_spec_share_content because the target type is not declared in git module.

Now the target type is declared in the git module.

3. now it makes sense to declare git_$1_content_t.

one template to create a new git user domain and a corresponding git shared content type, and to give that git user access to that new git shared content type.

Cons:

We dont have a git_manage/exec_spec_shared_content(_files) interface anymore so giving any git user domains access to other shared content types cannot be facilitated with interfaces (admins need to create rules from avc denials)

---
:100644 100644 f5aa6cb... 82138a1... M policy/modules/roles/git_shell.te
:100644 100644 e4d689b... afed175... M policy/modules/services/git.if
:100644 100644 5c30b4b... c12a4b1... M policy/modules/system/userdomain.if

 policy/modules/roles/git_shell.te   |    2 +-
 policy/modules/services/git.if      |   85 +++++++++--------------------------
 policy/modules/system/userdomain.if |   56 ++++++++++-------------
 3 files changed, 47 insertions(+), 96 deletions(-)
policy/modules/roles/git_shell.te +1 -1
index f5aa6cb..82138a1 100644
@@ -5,7 +5,7 @@ policy_module(git_shell, 1.0.0)
 # Declarations
 #
 
-userdom_git_user_template(git_shell)
+git_shared_content_template(git_shell)
 
 ########################################
 #
policy/modules/services/git.if +22 -63

105 lines not on this page · raw message

policy/modules/system/userdomain.if +24 -32

120 lines not on this page · raw message

Signature · 9 lines
1.7.1

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
Url : http://oss.tresys.com/pipermail/refpolicy/attachments/20110827/39edb5f8/attachment.bin