From: dominick.grift@gmail.com (grift) Date: Tue, 01 Jan 2013 11:36:14 +0100 Subject: [refpolicy] [PATCH 01/12] More .maildir fixes In-Reply-To: <1356994351-29191-2-git-send-email-sven.vermeulen@siphos.be> References: <1356994351-29191-1-git-send-email-sven.vermeulen@siphos.be> <1356994351-29191-2-git-send-email-sven.vermeulen@siphos.be> Message-ID: <1357036574.2088.4.camel@localhost> To: refpolicy@oss.tresys.com List-Id: refpolicy.oss.tresys.com On Mon, 2012-12-31 at 23:52 +0100, Sven Vermeulen wrote: > A previous commit provided initial support for ~/.maildir as a mail home > directory. This patch further implements this by adding the necessary named > file transitions where one for "~/Maildir" already existed. > This was merged, thanks > Signed-off-by: Sven Vermeulen > --- > dovecot.te | 1 + > mta.te | 1 + > procmail.te | 1 + > uwimap.te | 1 + > 4 files changed, 4 insertions(+), 0 deletions(-) > > diff --git a/dovecot.te b/dovecot.te > index 73c8686..b0f48ea 100644 > --- a/dovecot.te > +++ b/dovecot.te > @@ -191,6 +191,7 @@ optional_policy(` > mta_manage_spool(dovecot_t) > mta_manage_mail_home_rw_content(dovecot_t) > mta_home_filetrans_mail_home_rw(dovecot_t, dir, "Maildir") > + mta_home_filetrans_mail_home_rw(dovecot_t, dir, ".maildir") > ') > > optional_policy(` > diff --git a/mta.te b/mta.te > index 8a14615..d77a86a 100644 > --- a/mta.te > +++ b/mta.te > @@ -67,6 +67,7 @@ manage_dirs_pattern(user_mail_domain, mail_home_rw_t, mail_home_rw_t) > manage_files_pattern(user_mail_domain, mail_home_rw_t, mail_home_rw_t) > manage_lnk_files_pattern(user_mail_domain, mail_home_rw_t, mail_home_rw_t) > userdom_user_home_dir_filetrans(user_mail_domain, mail_home_rw_t, dir, "Maildir") > +userdom_user_home_dir_filetrans(user_mail_domain, mail_home_rw_t, dir, ".maildir") > > read_files_pattern(user_mail_domain, { etc_mail_t etc_aliases_t }, { etc_mail_t etc_aliases_t }) > > diff --git a/procmail.te b/procmail.te > index 07d5c5a..ea25cb5 100644 > --- a/procmail.te > +++ b/procmail.te > @@ -105,6 +105,7 @@ optional_policy(` > mta_read_queue(procmail_t) > mta_manage_mail_home_rw_content(procmail_t) > mta_home_filetrans_mail_home_rw(procmail_t, dir, "Maildir") > + mta_home_filetrans_mail_home_rw(procmail_t, dir, ".maildir") > ') > > optional_policy(` > diff --git a/uwimap.te b/uwimap.te > index 4e06a93..5d89b3f 100644 > --- a/uwimap.te > +++ b/uwimap.te > @@ -91,6 +91,7 @@ optional_policy(` > mta_manage_spool(imapd_t) > mta_manage_mail_home_rw_content(imapd_t) > mta_home_filetrans_mail_home_rw(imapd_t, dir, "Maildir") > + mta_home_filetrans_mail_home_rw(imapd_t, dir, ".maildir") > ') > > optional_policy(`