Chris PeBenito ee2d2d
## <summary>USB multiplexing daemon for communicating with Apple iPod Touch and iPhone</summary>
Chris PeBenito ee2d2d
Chris PeBenito ee2d2d
########################################
Chris PeBenito ee2d2d
## <summary>
Chris PeBenito ee2d2d
##	Execute a domain transition to run usbmuxd.
Chris PeBenito ee2d2d
## </summary>
Chris PeBenito ee2d2d
## <param name="domain">
Chris PeBenito ee2d2d
## <summary>
Chris PeBenito ee2d2d
##	Domain allowed to transition.
Chris PeBenito ee2d2d
## </summary>
Chris PeBenito ee2d2d
## </param>
Chris PeBenito ee2d2d
#
Chris PeBenito ee2d2d
interface(`usbmuxd_domtrans',`
Chris PeBenito ee2d2d
	gen_require(`
Chris PeBenito ee2d2d
		type usbmuxd_t, usbmuxd_exec_t;
Chris PeBenito ee2d2d
	')
Chris PeBenito ee2d2d
Chris PeBenito ee2d2d
	domtrans_pattern($1, usbmuxd_exec_t, usbmuxd_t)
Chris PeBenito ee2d2d
')
Chris PeBenito ee2d2d
Chris PeBenito ee2d2d
#####################################
Chris PeBenito ee2d2d
## <summary>
Chris PeBenito ee2d2d
##	Connect to usbmuxd over a unix domain
Chris PeBenito ee2d2d
##	stream socket.
Chris PeBenito ee2d2d
## </summary>
Chris PeBenito ee2d2d
## <param name="domain">
Chris PeBenito ee2d2d
##	<summary>
Chris PeBenito ee2d2d
##	Domain allowed access.
Chris PeBenito ee2d2d
##	</summary>
Chris PeBenito ee2d2d
## </param>
Chris PeBenito ee2d2d
#
Chris PeBenito ee2d2d
interface(`usbmuxd_stream_connect',`
Chris PeBenito ee2d2d
	gen_require(`
Chris PeBenito ee2d2d
		type usbmuxd_t, usbmuxd_var_run_t;
Chris PeBenito ee2d2d
	')
Chris PeBenito ee2d2d
Chris PeBenito ee2d2d
	files_search_pids($1)
Chris PeBenito ee2d2d
	stream_connect_pattern($1, usbmuxd_var_run_t, usbmuxd_var_run_t, usbmuxd_t)
Chris PeBenito ee2d2d
')