selinux-policy/refpolicy/policy/modules/services/finger.if

45 lines
999 B
Plaintext
Raw Normal View History

2005-10-07 21:45:04 +00:00
## <summary>Finger user information service.</summary>
########################################
## <summary>
## Execute fingerd in the fingerd domain.
## </summary>
## <param name="domain">
## <summary>
2005-10-07 21:45:04 +00:00
## The type of the process performing this action.
## </summary>
2005-10-07 21:45:04 +00:00
## </param>
#
interface(`finger_domtrans',`
gen_require(`
type fingerd_t, fingerd_exec_t;
')
domain_auto_trans($1,fingerd_exec_t,fingerd_t)
allow $1 fingerd_t:fd use;
allow fingerd_t $1:fd use;
allow fingerd_t $1:fifo_file rw_file_perms;
allow fingerd_t $1:process sigchld;
')
########################################
## <summary>
## Allow the specified domain to connect to fingerd with a tcp socket.
## </summary>
## <param name="domain">
## <summary>
2005-10-07 21:45:04 +00:00
## Domain allowed access.
## </summary>
2005-10-07 21:45:04 +00:00
## </param>
#
interface(`finger_tcp_connect',`
gen_require(`
type fingerd_t;
')
kernel_tcp_recvfrom($1)
allow $1 fingerd_t:tcp_socket { connectto recvfrom };
allow fingerd_t $1:tcp_socket { acceptfrom recvfrom };
')