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