Skip to contentSkip to conversation

Fix userdom_write_user_tmp_sockets to use write_sock_file_perms to allow domains to open user_tmp_t sock_files.

PATCH New Dominick Grift 2 participants 2 messages Mar 3, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix userdom_write_user_tmp_sockets to use write_sock_file_perms to allow domains to open user_tmp_t sock_files.

---
:100644 100644 cd08bc3... adbe494... M policy/modules/system/userdomain.if

 policy/modules/system/userdomain.if |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
policy/modules/system/userdomain.if +1 -1
index cd08bc3..adbe494 100644
@@ -2069,7 +2069,7 @@ interface(`userdom_write_user_tmp_sockets',`
 		type user_tmp_t;
 	')
 
-	allow $1 user_tmp_t:sock_file write;
+	allow $1 user_tmp_t:sock_file write_sock_file_perms;
 	files_search_tmp($1)
 ')
 
Signature · 9 lines
1.6.6.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/20100303/8304a884/attachment.bin 
#1 lore raw

PATCH 1/1 Fix userdom_write_user_tmp_sockets to use write_sock_file_perms to allow domains to open user_tmp_t sock_files.

Quoted 1 line · Dominick Grift

Merged.

Quoted 22 lines

---
:100644 100644 cd08bc3... adbe494... M policy/modules/system/userdomain.if

 policy/modules/system/userdomain.if |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
policy/modules/system/userdomain.if +1 -1
index cd08bc3..adbe494 100644
@@ -2069,7 +2069,7 @@ interface(`userdom_write_user_tmp_sockets',`
 		type user_tmp_t;
 	')
 
-	allow $1 user_tmp_t:sock_file write;
+	allow $1 user_tmp_t:sock_file write_sock_file_perms;
 	files_search_tmp($1)
 ')
 

_______________________________________________
refpolicy mailing list
refpolicy at oss.tresys.com
http://oss.tresys.com/mailman/listinfo/refpolicy

Signature · 3 lines
Chris PeBenito
Tresys Technology, LLC
(410) 290-1411 x150