From: pebenito@ieee.org (Chris PeBenito) Date: Mon, 28 Nov 2016 21:00:42 -0500 Subject: [refpolicy] [PATCH] cups: descend "rw" directories when reading configuration files In-Reply-To: <1480112087.5692.1.camel@trentalancia.net> References: <1480112087.5692.1.camel@trentalancia.net> Message-ID: To: refpolicy@oss.tresys.com List-Id: refpolicy.oss.tresys.com On 11/25/16 17:14, Guido Trentalancia via refpolicy wrote: > When reading CUPS configuration files under /etc, let the caller > search (i.e. descend into) "rw" directories (such as "ppd"). > > Signed-off-by: Guido Trentalancia > --- > policy/modules/contrib/cups.if | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > --- refpolicy-git/policy/modules/contrib/cups.if 2016-08-14 21:28:11.473519282 +0200 > +++ refpolicy-git-06082016/policy/modules/contrib/cups.if 2016-11-25 23:04:48.948269455 +0100 > @@ -203,7 +203,7 @@ interface(`cups_read_config',` > ') > > files_search_etc($1) > - read_files_pattern($1, cupsd_etc_t, { cupsd_etc_t cupsd_rw_etc_t }) > + read_files_pattern($1, { cupsd_etc_t cupsd_rw_etc_t }, { cupsd_etc_t cupsd_rw_etc_t }) > ') > > ######################################## > @@ -223,7 +223,7 @@ interface(`cups_read_rw_config',` > ') > > files_search_etc($1) > - read_files_pattern($1, cupsd_etc_t, cupsd_rw_etc_t) > + read_files_pattern($1, { cupsd_etc_t cupsd_rw_etc_t }, cupsd_rw_etc_t) > ') > > ######################################## Merged. -- Chris PeBenito