|
Chris PeBenito |
ef5ca0 |
## <summary>Common UNIX printing system</summary>
|
|
Chris PeBenito |
3df88d |
|
|
Chris PeBenito |
3df88d |
########################################
|
|
Chris PeBenito |
3df88d |
## <summary>
|
|
Chris PeBenito |
9fd4b8 |
## Execute cups in the cups domain.
|
|
Chris PeBenito |
9fd4b8 |
## </summary>
|
|
Chris PeBenito |
9fd4b8 |
## <param name="domain">
|
|
Chris PeBenito |
9fd4b8 |
## The type of the process performing this action.
|
|
Chris PeBenito |
9fd4b8 |
## </param>
|
|
Chris PeBenito |
9fd4b8 |
#
|
|
Chris PeBenito |
9fd4b8 |
interface(`cups_domtrans',`
|
|
Chris PeBenito |
9fd4b8 |
gen_require(`
|
|
Chris PeBenito |
9fd4b8 |
type cupsd_t, cupsd_exec_t;
|
|
Chris PeBenito |
9fd4b8 |
')
|
|
Chris PeBenito |
9fd4b8 |
|
|
Chris PeBenito |
9fd4b8 |
domain_auto_trans($1,cupsd_exec_t,cupsd_t)
|
|
Chris PeBenito |
9fd4b8 |
|
|
Chris PeBenito |
9fd4b8 |
allow $1 cupsd_t:fd use;
|
|
Chris PeBenito |
9fd4b8 |
allow cupsd_t $1:fd use;
|
|
Chris PeBenito |
9fd4b8 |
allow cupsd_t $1:fifo_file rw_file_perms;
|
|
Chris PeBenito |
9fd4b8 |
allow cupsd_t $1:process sigchld;
|
|
Chris PeBenito |
9fd4b8 |
')
|
|
Chris PeBenito |
9fd4b8 |
|
|
Chris PeBenito |
9fd4b8 |
########################################
|
|
Chris PeBenito |
9fd4b8 |
## <summary>
|
|
Chris PeBenito |
6f81e1 |
## Send and receive messages from
|
|
Chris PeBenito |
6f81e1 |
## cups over dbus.
|
|
Chris PeBenito |
6f81e1 |
## </summary>
|
|
Chris PeBenito |
6f81e1 |
## <param name="domain">
|
|
Chris PeBenito |
6f81e1 |
## Domain allowed access.
|
|
Chris PeBenito |
6f81e1 |
## </param>
|
|
Chris PeBenito |
6f81e1 |
#
|
|
Chris PeBenito |
6f81e1 |
interface(`cups_dbus_chat',`
|
|
Chris PeBenito |
6f81e1 |
gen_require(`
|
|
Chris PeBenito |
6f81e1 |
type cupsd_t;
|
|
Chris PeBenito |
6f81e1 |
class dbus send_msg;
|
|
Chris PeBenito |
6f81e1 |
')
|
|
Chris PeBenito |
6f81e1 |
|
|
Chris PeBenito |
6f81e1 |
allow $1 cupsd_t:dbus send_msg;
|
|
Chris PeBenito |
6f81e1 |
allow cupsd_t $1:dbus send_msg;
|
|
Chris PeBenito |
6f81e1 |
')
|
|
Chris PeBenito |
6f81e1 |
|
|
Chris PeBenito |
6f81e1 |
########################################
|
|
Chris PeBenito |
6f81e1 |
## <summary>
|
|
Chris PeBenito |
725926 |
## Execute cups_config in the cups_config domain.
|
|
Chris PeBenito |
725926 |
## </summary>
|
|
Chris PeBenito |
725926 |
## <param name="domain">
|
|
Chris PeBenito |
725926 |
## The type of the process performing this action.
|
|
Chris PeBenito |
725926 |
## </param>
|
|
Chris PeBenito |
725926 |
#
|
|
Chris PeBenito |
725926 |
interface(`cups_domtrans_config',`
|
|
Chris PeBenito |
725926 |
gen_require(`
|
|
Chris PeBenito |
725926 |
type cupsd_config_t, cupsd_config_exec_t;
|
|
Chris PeBenito |
725926 |
')
|
|
Chris PeBenito |
725926 |
|
|
Chris PeBenito |
725926 |
domain_auto_trans($1,cupsd_config_exec_t,cupsd_config_t)
|
|
Chris PeBenito |
725926 |
|
|
Chris PeBenito |
725926 |
allow $1 cupsd_config_t:fd use;
|
|
Chris PeBenito |
725926 |
allow cupsd_config_t $1:fd use;
|
|
Chris PeBenito |
725926 |
allow cupsd_config_t $1:fifo_file rw_file_perms;
|
|
Chris PeBenito |
725926 |
allow cupsd_config_t $1:process sigchld;
|
|
Chris PeBenito |
725926 |
')
|
|
Chris PeBenito |
725926 |
|
|
Chris PeBenito |
725926 |
########################################
|
|
Chris PeBenito |
725926 |
## <summary>
|
|
Chris PeBenito |
9fd4b8 |
## Send generic signals to the cups
|
|
Chris PeBenito |
9fd4b8 |
## configuration daemon.
|
|
Chris PeBenito |
9fd4b8 |
## </summary>
|
|
Chris PeBenito |
9fd4b8 |
## <param name="domain">
|
|
Chris PeBenito |
9fd4b8 |
## Domain allowed access.
|
|
Chris PeBenito |
9fd4b8 |
## </param>
|
|
Chris PeBenito |
9fd4b8 |
#
|
|
Chris PeBenito |
9fd4b8 |
interface(`cups_signal_config',`
|
|
Chris PeBenito |
9fd4b8 |
gen_require(`
|
|
Chris PeBenito |
9fd4b8 |
type cupsd_config_t;
|
|
Chris PeBenito |
9fd4b8 |
')
|
|
Chris PeBenito |
9fd4b8 |
|
|
Chris PeBenito |
9fd4b8 |
allow $1 cupsd_config_t:process signal;
|
|
Chris PeBenito |
9fd4b8 |
')
|
|
Chris PeBenito |
9fd4b8 |
|
|
Chris PeBenito |
9fd4b8 |
########################################
|
|
Chris PeBenito |
9fd4b8 |
## <summary>
|
|
Chris PeBenito |
9fd4b8 |
## Send and receive messages from
|
|
Chris PeBenito |
9fd4b8 |
## cupsd_config over dbus.
|
|
Chris PeBenito |
9fd4b8 |
## </summary>
|
|
Chris PeBenito |
9fd4b8 |
## <param name="domain">
|
|
Chris PeBenito |
9fd4b8 |
## Domain allowed access.
|
|
Chris PeBenito |
9fd4b8 |
## </param>
|
|
Chris PeBenito |
9fd4b8 |
#
|
|
Chris PeBenito |
9fd4b8 |
interface(`cups_dbus_chat_config',`
|
|
Chris PeBenito |
9fd4b8 |
gen_require(`
|
|
Chris PeBenito |
9fd4b8 |
type cupsd_config_t;
|
|
Chris PeBenito |
9fd4b8 |
class dbus send_msg;
|
|
Chris PeBenito |
9fd4b8 |
')
|
|
Chris PeBenito |
9fd4b8 |
|
|
Chris PeBenito |
9fd4b8 |
allow $1 cupsd_config_t:dbus send_msg;
|
|
Chris PeBenito |
9fd4b8 |
allow cupsd_config_t $1:dbus send_msg;
|
|
Chris PeBenito |
9fd4b8 |
')
|
|
Chris PeBenito |
9fd4b8 |
|
|
Chris PeBenito |
9fd4b8 |
########################################
|
|
Chris PeBenito |
9fd4b8 |
## <summary>
|
|
Chris PeBenito |
8dca6b |
## Read cups configuration files.
|
|
Chris PeBenito |
8dca6b |
## </summary>
|
|
Chris PeBenito |
8dca6b |
## <param name="domain">
|
|
Chris PeBenito |
8dca6b |
## Domain allowed access.
|
|
Chris PeBenito |
8dca6b |
## </param>
|
|
Chris PeBenito |
8dca6b |
#
|
|
Chris PeBenito |
8dca6b |
interface(`cups_read_config',`
|
|
Chris PeBenito |
8dca6b |
gen_require(`
|
|
Chris PeBenito |
8dca6b |
type cupsd_etc_t, cupsd_rw_etc_t;
|
|
Chris PeBenito |
8dca6b |
')
|
|
Chris PeBenito |
8dca6b |
|
|
Chris PeBenito |
8dca6b |
files_search_etc($1)
|
|
Chris PeBenito |
8dca6b |
allow $1 cupsd_etc_t:dir search_dir_perms;
|
|
Chris PeBenito |
8dca6b |
allow $1 cupsd_etc_t:file { getattr read };
|
|
Chris PeBenito |
8dca6b |
allow $1 cupsd_rw_etc_t:file { getattr read };
|
|
Chris PeBenito |
8dca6b |
')
|
|
Chris PeBenito |
8dca6b |
|
|
Chris PeBenito |
8dca6b |
########################################
|
|
Chris PeBenito |
8dca6b |
## <summary>
|
|
Chris PeBenito |
3df88d |
## Read cups-writable configuration files.
|
|
Chris PeBenito |
3df88d |
## </summary>
|
|
Chris PeBenito |
3df88d |
## <param name="domain">
|
|
Chris PeBenito |
3df88d |
## Domain allowed access.
|
|
Chris PeBenito |
3df88d |
## </param>
|
|
Chris PeBenito |
3df88d |
#
|
|
Chris PeBenito |
3df88d |
interface(`cups_read_rw_config',`
|
|
Chris PeBenito |
3df88d |
gen_require(`
|
|
Chris PeBenito |
3df88d |
type cupsd_etc_t, cupsd_rw_etc_t;
|
|
Chris PeBenito |
3df88d |
')
|
|
Chris PeBenito |
3df88d |
|
|
Chris PeBenito |
3df88d |
files_search_etc($1)
|
|
Chris PeBenito |
3df88d |
allow $1 cupsd_etc_t:dir search_dir_perms;
|
|
Chris PeBenito |
3df88d |
allow $1 cupsd_rw_etc_t:file { getattr read };
|
|
Chris PeBenito |
3df88d |
')
|
|
Chris PeBenito |
9fd4b8 |
|
|
Chris PeBenito |
9fd4b8 |
########################################
|
|
Chris PeBenito |
9fd4b8 |
## <summary>
|
|
Chris PeBenito |
9fd4b8 |
## Read cups log files.
|
|
Chris PeBenito |
9fd4b8 |
## </summary>
|
|
Chris PeBenito |
9fd4b8 |
## <param name="domain">
|
|
Chris PeBenito |
9fd4b8 |
## Domain allowed access.
|
|
Chris PeBenito |
9fd4b8 |
## </param>
|
|
Chris PeBenito |
9fd4b8 |
#
|
|
Chris PeBenito |
9fd4b8 |
interface(`cups_read_log',`
|
|
Chris PeBenito |
9fd4b8 |
gen_require(`
|
|
Chris PeBenito |
9fd4b8 |
type cupsd_log_t;
|
|
Chris PeBenito |
9fd4b8 |
')
|
|
Chris PeBenito |
9fd4b8 |
|
|
Chris PeBenito |
9fd4b8 |
logging_search_logs($1)
|
|
Chris PeBenito |
9fd4b8 |
allow $1 cupsd_log_t:file { getattr read };
|
|
Chris PeBenito |
9fd4b8 |
')
|
|
Chris PeBenito |
9fd4b8 |
|
|
Chris PeBenito |
9fd4b8 |
########################################
|
|
Chris PeBenito |
9fd4b8 |
## <summary>
|
|
Chris PeBenito |
9fd4b8 |
## Connect to ptal over an unix domain stream socket.
|
|
Chris PeBenito |
9fd4b8 |
## </summary>
|
|
Chris PeBenito |
9fd4b8 |
## <param name="domain">
|
|
Chris PeBenito |
9fd4b8 |
## Domain allowed access.
|
|
Chris PeBenito |
9fd4b8 |
## </param>
|
|
Chris PeBenito |
9fd4b8 |
#
|
|
Chris PeBenito |
9fd4b8 |
interface(`cups_stream_connect_ptal',`
|
|
Chris PeBenito |
9fd4b8 |
gen_require(`
|
|
Chris PeBenito |
9fd4b8 |
type ptal_t, ptal_var_run_t;
|
|
Chris PeBenito |
9fd4b8 |
')
|
|
Chris PeBenito |
9fd4b8 |
|
|
Chris PeBenito |
9fd4b8 |
files_search_pids($1)
|
|
Chris PeBenito |
9fd4b8 |
allow $1 ptal_var_run_t:dir search;
|
|
Chris PeBenito |
9fd4b8 |
allow $1 ptal_var_run_t:sock_file write;
|
|
Chris PeBenito |
9fd4b8 |
allow $1 ptal_t:unix_stream_socket connectto;
|
|
Chris PeBenito |
9fd4b8 |
')
|
|
Chris PeBenito |
8dca6b |
|
|
Chris PeBenito |
8dca6b |
########################################
|
|
Chris PeBenito |
8dca6b |
## <summary>
|
|
Chris PeBenito |
8dca6b |
## Connect to cups over TCP.
|
|
Chris PeBenito |
8dca6b |
## </summary>
|
|
Chris PeBenito |
8dca6b |
## <param name="domain">
|
|
Chris PeBenito |
8dca6b |
## Domain allowed access.
|
|
Chris PeBenito |
8dca6b |
## </param>
|
|
Chris PeBenito |
8dca6b |
#
|
|
Chris PeBenito |
8dca6b |
interface(`cups_tcp_connect',`
|
|
Chris PeBenito |
8dca6b |
gen_require(`
|
|
Chris PeBenito |
8dca6b |
type cupsd_t;
|
|
Chris PeBenito |
8dca6b |
')
|
|
Chris PeBenito |
8dca6b |
|
|
Chris PeBenito |
8dca6b |
allow $1 cupsd_t:tcp_socket { connectto recvfrom };
|
|
Chris PeBenito |
8dca6b |
allow cupsd_t $1:tcp_socket { acceptfrom recvfrom };
|
|
Chris PeBenito |
8dca6b |
kernel_tcp_recvfrom($1)
|
|
Chris PeBenito |
8dca6b |
')
|