Chris PeBenito ed7015
## <summary>Realtime scheduling for user processes.</summary>
Chris PeBenito ed7015
Chris PeBenito ed7015
########################################
Chris PeBenito ed7015
## <summary>
Chris PeBenito ed7015
##	Execute a domain transition to run rtkit_daemon.
Chris PeBenito ed7015
## </summary>
Chris PeBenito ed7015
## <param name="domain">
Dominick Grift 2a7245
##	<summary>
Chris PeBenito ed7015
##	Domain allowed to transition.
Dominick Grift 2a7245
##	</summary>
Chris PeBenito ed7015
## </param>
Chris PeBenito ed7015
#
Chris PeBenito ed7015
interface(`rtkit_daemon_domtrans',`
Chris PeBenito ed7015
	gen_require(`
Chris PeBenito ed7015
		type rtkit_daemon_t, rtkit_daemon_exec_t;
Chris PeBenito ed7015
	')
Chris PeBenito ed7015
Chris PeBenito ed7015
	domtrans_pattern($1, rtkit_daemon_exec_t, rtkit_daemon_t)
Chris PeBenito ed7015
')
Chris PeBenito ed7015
Chris PeBenito ed7015
########################################
Chris PeBenito ed7015
## <summary>
Chris PeBenito ed7015
##	Send and receive messages from
Chris PeBenito ed7015
##	rtkit_daemon over dbus.
Chris PeBenito ed7015
## </summary>
Chris PeBenito ed7015
## <param name="domain">
Chris PeBenito ed7015
##	<summary>
Chris PeBenito ed7015
##	Domain allowed access.
Chris PeBenito ed7015
##	</summary>
Chris PeBenito ed7015
## </param>
Chris PeBenito ed7015
#
Chris PeBenito ed7015
interface(`rtkit_daemon_dbus_chat',`
Chris PeBenito ed7015
	gen_require(`
Chris PeBenito ed7015
		type rtkit_daemon_t;
Chris PeBenito ed7015
		class dbus send_msg;
Chris PeBenito ed7015
	')
Chris PeBenito ed7015
Chris PeBenito ed7015
	allow $1 rtkit_daemon_t:dbus send_msg;
Chris PeBenito ed7015
	allow rtkit_daemon_t $1:dbus send_msg;
Chris PeBenito ed7015
')
Jeremy Solt ac19f1
Jeremy Solt ac19f1
########################################
Jeremy Solt ac19f1
## <summary>
Dan Walsh 3eaa99
##	Do not audit send and receive messages from
Dan Walsh 3eaa99
##	rtkit_daemon over dbus.
Dan Walsh 3eaa99
## </summary>
Dan Walsh 3eaa99
## <param name="domain">
Dan Walsh 3eaa99
##	<summary>
Dan Walsh 3eaa99
##	Domain allowed access.
Dan Walsh 3eaa99
##	</summary>
Dan Walsh 3eaa99
## </param>
Dan Walsh 3eaa99
#
Dan Walsh 3eaa99
interface(`rtkit_daemon_dontaudit_dbus_chat',`
Dan Walsh 3eaa99
	gen_require(`
Dan Walsh 3eaa99
		type rtkit_daemon_t;
Dan Walsh 3eaa99
		class dbus send_msg;
Dan Walsh 3eaa99
	')
Dan Walsh 3eaa99
Dan Walsh 3eaa99
	dontaudit $1 rtkit_daemon_t:dbus send_msg;
Dan Walsh 3eaa99
	dontaudit rtkit_daemon_t $1:dbus send_msg;
Dan Walsh 3eaa99
')
Dan Walsh 3eaa99
Dan Walsh 3eaa99
########################################
Dan Walsh 3eaa99
## <summary>
Jeremy Solt ac19f1
##	Allow rtkit to control scheduling for your process
Jeremy Solt ac19f1
## </summary>
Jeremy Solt ac19f1
## <param name="domain">
Jeremy Solt ac19f1
##	<summary>
Jeremy Solt ac19f1
##	Domain allowed access.
Jeremy Solt ac19f1
##	</summary>
Jeremy Solt ac19f1
## </param>
Jeremy Solt ac19f1
#
Chris PeBenito 064d1b
interface(`rtkit_scheduled',`
Jeremy Solt ac19f1
	gen_require(`
Jeremy Solt ac19f1
		type rtkit_daemon_t;
Jeremy Solt ac19f1
	')
Jeremy Solt ac19f1
Dominick Grift ddbd71
	kernel_search_proc($1)
Jeremy Solt ac19f1
	ps_process_pattern(rtkit_daemon_t, $1)
Jeremy Solt ac19f1
	allow rtkit_daemon_t $1:process { getsched setsched };
Jeremy Solt ac19f1
	rtkit_daemon_dbus_chat($1)
Jeremy Solt ac19f1
')