Chris PeBenito 9401ae1
## <summary>General Purpose Mouse driver</summary>
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
########################################
Chris PeBenito 9401ae1
## <summary>
Chris PeBenito 9401ae1
##	Connect to GPM over a unix domain
Chris PeBenito 9401ae1
##	stream socket.
Chris PeBenito 9401ae1
## </summary>
Chris PeBenito 9401ae1
## <param name="domain">
Chris PeBenito 9401ae1
##	<summary>
Chris PeBenito 9401ae1
##	Domain allowed access.
Chris PeBenito 9401ae1
##	</summary>
Chris PeBenito 9401ae1
## </param>
Chris PeBenito 9401ae1
#
Chris PeBenito 9401ae1
interface(`gpm_stream_connect',`
Chris PeBenito 9401ae1
	gen_require(`
Chris PeBenito 9401ae1
		type gpmctl_t, gpm_t;
Chris PeBenito 9401ae1
	')
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
	allow $1 gpmctl_t:sock_file rw_sock_file_perms;
Chris PeBenito 9401ae1
	allow $1 gpm_t:unix_stream_socket connectto;
Chris PeBenito 9401ae1
')
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
########################################
Chris PeBenito 9401ae1
## <summary>
Chris PeBenito 9401ae1
##	Get the attributes of the GPM
Chris PeBenito 9401ae1
##	control channel named socket.
Chris PeBenito 9401ae1
## </summary>
Chris PeBenito 9401ae1
## <param name="domain">
Chris PeBenito 9401ae1
##	<summary>
Chris PeBenito 9401ae1
##	Domain allowed access.
Chris PeBenito 9401ae1
##	</summary>
Chris PeBenito 9401ae1
## </param>
Chris PeBenito 9401ae1
#
Chris PeBenito 9401ae1
interface(`gpm_getattr_gpmctl',`
Chris PeBenito 9401ae1
	gen_require(`
Chris PeBenito 9401ae1
		type gpmctl_t;
Chris PeBenito 9401ae1
	')
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
	dev_list_all_dev_nodes($1)
Chris PeBenito 9401ae1
	allow $1 gpmctl_t:sock_file getattr;
Chris PeBenito 9401ae1
')
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
########################################
Chris PeBenito 9401ae1
## <summary>
Chris PeBenito 9401ae1
##	Do not audit attempts to get the 
Chris PeBenito 9401ae1
##	attributes of the GPM control channel
Chris PeBenito 9401ae1
##	named socket.
Chris PeBenito 9401ae1
## </summary>
Chris PeBenito 9401ae1
## <param name="domain">
Chris PeBenito 9401ae1
##	<summary>
Chris PeBenito 9401ae1
##	Domain to not audit.
Chris PeBenito 9401ae1
##	</summary>
Chris PeBenito 9401ae1
## </param>
Chris PeBenito 9401ae1
#
Chris PeBenito 9401ae1
interface(`gpm_dontaudit_getattr_gpmctl',`
Chris PeBenito 9401ae1
	gen_require(`
Chris PeBenito 9401ae1
		type gpmctl_t;
Chris PeBenito 9401ae1
	')
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
	dontaudit $1 gpmctl_t:sock_file getattr;
Chris PeBenito 9401ae1
')
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
########################################
Chris PeBenito 9401ae1
## <summary>
Chris PeBenito 9401ae1
##	Set the attributes of the GPM
Chris PeBenito 9401ae1
##	control channel named socket.
Chris PeBenito 9401ae1
## </summary>
Chris PeBenito 9401ae1
## <param name="domain">
Chris PeBenito 9401ae1
##	<summary>
Chris PeBenito 9401ae1
##	Domain allowed access.
Chris PeBenito 9401ae1
##	</summary>
Chris PeBenito 9401ae1
## </param>
Chris PeBenito 9401ae1
#
Chris PeBenito 9401ae1
interface(`gpm_setattr_gpmctl',`
Chris PeBenito 9401ae1
	gen_require(`
Chris PeBenito 9401ae1
		type gpmctl_t;
Chris PeBenito 9401ae1
	')
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
	dev_list_all_dev_nodes($1)
Chris PeBenito 9401ae1
	allow $1 gpmctl_t:sock_file setattr;
Chris PeBenito 9401ae1
')