Skip to content

Commit

Permalink
Fix the cups_read_pid_files() interface to use read_files_pattern
Browse files Browse the repository at this point in the history
Until now, just allow rule to read was present, not giving the
search access to the parent directory.

Resolves: RHEL-69517
  • Loading branch information
zpytela committed Dec 12, 2024
1 parent ec5e8a2 commit 2568ae5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion policy/modules/contrib/cups.if
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ interface(`cups_read_pid_files',`
')

files_search_pids($1)
allow $1 cupsd_var_run_t:file read_file_perms;
read_files_pattern($1, cupsd_var_run_t, cupsd_var_run_t)
')

########################################
Expand Down

0 comments on commit 2568ae5

Please sign in to comment.