Skip to contentSkip to conversation

mta: Create mta_list_mail_home_rw() interface

PATCH New Luis Ressel 1 participant 1 message Nov 15, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mta: Create mta_list_mail_home_rw() interface

---
 mta.if | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
mta.if +18 -0
index 2bff433..fe2007e 100644
@@ -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
Signature · 1 line
2.15.0