Chris PeBenito 44f490
## <summary>List kernel modules of USB devices</summary>
Chris PeBenito 44f490
Chris PeBenito 44f490
########################################
Chris PeBenito 44f490
## <summary>
Chris PeBenito 44f490
##	Execute usbmodules in the usbmodules domain.
Chris PeBenito 44f490
## </summary>
Chris PeBenito 44f490
## <param name="domain">
Chris PeBenito 885b83
##	<summary>
Dominick Grift 77e4b5
##	Domain allowed to transition.
Chris PeBenito 885b83
##	</summary>
Chris PeBenito 44f490
## </param>
Chris PeBenito 44f490
#
Chris PeBenito 44f490
interface(`usbmodules_domtrans',`
Chris PeBenito 44f490
	gen_require(`
Chris PeBenito 44f490
		type usbmodules_t, usbmodules_exec_t;
Chris PeBenito 44f490
	')
Chris PeBenito 44f490
Chris PeBenito c0868a
	domtrans_pattern($1, usbmodules_exec_t, usbmodules_t)
Chris PeBenito 44f490
')
Chris PeBenito 44f490
Chris PeBenito 44f490
########################################
Chris PeBenito 44f490
## <summary>
Chris PeBenito 44f490
##	Execute usbmodules in the usbmodules domain, and
Chris PeBenito 44f490
##	allow the specified role the usbmodules domain,
Chris PeBenito 44f490
##	and use the caller's terminal.
Chris PeBenito 44f490
## </summary>
Chris PeBenito 44f490
## <param name="domain">
Chris PeBenito 885b83
##	<summary>
Dominick Grift 77e4b5
##	Domain allowed to transition.
Chris PeBenito 885b83
##	</summary>
Chris PeBenito 44f490
## </param>
Chris PeBenito 44f490
## <param name="role">
Chris PeBenito 885b83
##	<summary>
Chris PeBenito a7ee7f
##	Role allowed access.
Chris PeBenito 885b83
##	</summary>
Chris PeBenito 44f490
## </param>
Chris PeBenito bbcd3c
## <rolecap/>
Chris PeBenito 44f490
#
Chris PeBenito 44f490
interface(`usbmodules_run',`
Chris PeBenito 44f490
	gen_require(`
Chris PeBenito 44f490
		type usbmodules_t;
Chris PeBenito 44f490
	')
Chris PeBenito 44f490
Chris PeBenito 44f490
	usbmodules_domtrans($1)
Chris PeBenito 44f490
	role $2 types usbmodules_t;
Chris PeBenito 44f490
')