Use stream connect pattern.

This commit is contained in:
Dominick Grift 2010-09-22 14:32:42 +02:00
parent 8bde5ef68b
commit 44f8aa190c

View File

@ -289,8 +289,8 @@ tunable_policy(`use_lpd_server',`
files_read_var_files(lpr_t) files_read_var_files(lpr_t)
# Connect to lpd via a Unix domain socket. # Connect to lpd via a Unix domain socket.
allow lpr_t printer_t:sock_file rw_sock_file_perms; allow lpr_t printer_t:sock_file read_sock_file_perms;
allow lpr_t lpd_t:unix_stream_socket connectto; stream_connect_pattern(lpr_t, printer_t, printer_t, lpd_t)
# Send SIGHUP to lpd. # Send SIGHUP to lpd.
allow lpr_t lpd_t:process signal; allow lpr_t lpd_t:process signal;