2017-11-15 07:10:01

by Mira Ressel

[permalink] [raw]
Subject: [refpolicy] [PATCH] mta: Create mta_list_mail_home_rw() interface

---
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