Skip to contentSkip to conversation

cups: descend "rw" directories when reading configuration files

PATCH New Guido Trentalancia 2 participants 2 messages Nov 25, 2016 – Nov 29, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cups: descend "rw" directories when reading configuration files

When reading CUPS configuration files under /etc, let the caller search (i.e. descend into) "rw" directories (such as "ppd").

---
 policy/modules/contrib/cups.if |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
policy/modules/contrib/cups.if +2 -2
@@ -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)
 ')
 
 ########################################
#1 lore raw

PATCH 1/1 cups: descend "rw" directories when reading configuration files

Quoted 20 lines · Guido Trentalancia via refpolicy

When reading CUPS configuration files under /etc, let the caller search (i.e. descend into) "rw" directories (such as "ppd").

---
 policy/modules/contrib/cups.if |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
policy/modules/contrib/cups.if +1 -1
@@ -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 })
 ')
 
 ########################################

policy/modules/contrib/cups.if interface(`cups_read_rw_config',` · line 229

Quoted 8 lines
policy/modules/contrib/cups.if +1 -1
@@ -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.

Signature · 1 line
Chris PeBenito