selinux-refpolicy/policy/modules/services/usbmuxd.if
2018-06-23 10:38:58 -04:00

41 lines
888 B
Plaintext

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