[refpolicy] [PATCH] cups: descend "rw" directories when reading configuration files

Chris PeBenito pebenito at ieee.org
Tue Nov 29 02:00:42 UTC 2016


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 <guido at trentalancia.net>
> ---
>  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


More information about the refpolicy mailing list