From 44f8aa190c225e829442610dd7f2d5580a40dabd Mon Sep 17 00:00:00 2001 From: Dominick Grift Date: Sep 22 2010 13:41:46 +0000 Subject: Use stream connect pattern. --- diff --git a/policy/modules/services/lpd.te b/policy/modules/services/lpd.te index 1887c50..80671d9 100644 --- a/policy/modules/services/lpd.te +++ b/policy/modules/services/lpd.te @@ -289,8 +289,8 @@ tunable_policy(`use_lpd_server',` files_read_var_files(lpr_t) # Connect to lpd via a Unix domain socket. - allow lpr_t printer_t:sock_file rw_sock_file_perms; - allow lpr_t lpd_t:unix_stream_socket connectto; + allow lpr_t printer_t:sock_file read_sock_file_perms; + stream_connect_pattern(lpr_t, printer_t, printer_t, lpd_t) # Send SIGHUP to lpd. allow lpr_t lpd_t:process signal;