Blame refpolicy/policy/modules/services/finger.if
|
Chris PeBenito |
d4dca5 |
## <summary>Finger user information service.</summary>
|
|
Chris PeBenito |
d4dca5 |
|
|
Chris PeBenito |
d4dca5 |
########################################
|
|
Chris PeBenito |
d4dca5 |
## <summary>
|
|
Chris PeBenito |
d4dca5 |
## Execute fingerd in the fingerd domain.
|
|
Chris PeBenito |
d4dca5 |
## </summary>
|
|
Chris PeBenito |
d4dca5 |
## <param name="domain">
|
|
Chris PeBenito |
d4dca5 |
## The type of the process performing this action.
|
|
Chris PeBenito |
d4dca5 |
## </param>
|
|
Chris PeBenito |
d4dca5 |
#
|
|
Chris PeBenito |
d4dca5 |
interface(`finger_domtrans',`
|
|
Chris PeBenito |
d4dca5 |
gen_require(`
|
|
Chris PeBenito |
d4dca5 |
type fingerd_t, fingerd_exec_t;
|
|
Chris PeBenito |
d4dca5 |
')
|
|
Chris PeBenito |
d4dca5 |
|
|
Chris PeBenito |
d4dca5 |
domain_auto_trans($1,fingerd_exec_t,fingerd_t)
|
|
Chris PeBenito |
d4dca5 |
|
|
Chris PeBenito |
d4dca5 |
allow $1 fingerd_t:fd use;
|
|
Chris PeBenito |
d4dca5 |
allow fingerd_t $1:fd use;
|
|
Chris PeBenito |
d4dca5 |
allow fingerd_t $1:fifo_file rw_file_perms;
|
|
Chris PeBenito |
d4dca5 |
allow fingerd_t $1:process sigchld;
|
|
Chris PeBenito |
d4dca5 |
')
|
|
Chris PeBenito |
d4dca5 |
|
|
Chris PeBenito |
d4dca5 |
########################################
|
|
Chris PeBenito |
d4dca5 |
## <summary>
|
|
Chris PeBenito |
d4dca5 |
## Allow the specified domain to connect to fingerd with a tcp socket.
|
|
Chris PeBenito |
d4dca5 |
## </summary>
|
|
Chris PeBenito |
d4dca5 |
## <param name="domain">
|
|
Chris PeBenito |
d4dca5 |
## Domain allowed access.
|
|
Chris PeBenito |
d4dca5 |
## </param>
|
|
Chris PeBenito |
d4dca5 |
#
|
|
Chris PeBenito |
d4dca5 |
interface(`finger_tcp_connect',`
|
|
Chris PeBenito |
d4dca5 |
gen_require(`
|
|
Chris PeBenito |
d4dca5 |
type fingerd_t;
|
|
Chris PeBenito |
d4dca5 |
')
|
|
Chris PeBenito |
d4dca5 |
|
|
Chris PeBenito |
d4dca5 |
kernel_tcp_recvfrom($1)
|
|
Chris PeBenito |
d4dca5 |
allow $1 fingerd_t:tcp_socket { connectto recvfrom };
|
|
Chris PeBenito |
d4dca5 |
allow fingerd_t $1:tcp_socket { acceptfrom recvfrom };
|
|
Chris PeBenito |
d4dca5 |
')
|