All of lore.kernel.org
 help / color / mirror / Atom feed
* [refpolicy] [PATCH] mta: Create mta_list_mail_home_rw() interface
@ 2017-11-15  7:10 Luis Ressel
  0 siblings, 0 replies; only message in thread
From: Luis Ressel @ 2017-11-15  7:10 UTC (permalink / raw)
  To: refpolicy

---
 mta.if | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/mta.if b/mta.if
index 2bff433..fe2007e 100644
--- a/mta.if
+++ b/mta.if
@@ -232,6 +232,24 @@ interface(`mta_home_filetrans_mail_home',`
 	userdom_user_home_dir_filetrans($1, mail_home_t, $2, $3)
 ')
 
+#######################################
+## <summary>
+##	List the contents of mail home rw dirs.
+## </summary>
+## <param name="domain">
+##	<summary>
+##	Domain allowed access.
+##	</summary>
+## </param>
+#
+interface(`mta_list_mail_home_rw',`
+	gen_require(`
+		type mail_home_rw_t;
+	')
+
+	allow $1 mail_home_rw_t:dir list_dir_perms;
+')
+
 #######################################
 ## <summary>
 ##	Create, read, write, and delete
-- 
2.15.0

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2017-11-15  7:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-15  7:10 [refpolicy] [PATCH] mta: Create mta_list_mail_home_rw() interface Luis Ressel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.