Chris PeBenito 17de1b
## <summary>mDNS/DNS-SD daemon implementing Apple ZeroConf architecture</summary>
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Send and receive messages from
Chris PeBenito 17de1b
##	avahi over dbus.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	Domain allowed access.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
interface(`avahi_dbus_chat',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type avahi_t;
Chris PeBenito 17de1b
		class dbus send_msg;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	allow $1 avahi_t:dbus send_msg;
Chris PeBenito 17de1b
	allow avahi_t $1:dbus send_msg;
Chris PeBenito 17de1b
')
Chris PeBenito d6d16b
Chris PeBenito d6d16b
########################################
Chris PeBenito d6d16b
## <summary>
Chris PeBenito d6d16b
##	Connect to avahi using a unix domain stream socket.
Chris PeBenito d6d16b
## </summary>
Chris PeBenito d6d16b
## <param name="domain">
Chris PeBenito d6d16b
##	<summary>
Chris PeBenito d6d16b
##	Domain allowed access.
Chris PeBenito d6d16b
##	</summary>
Chris PeBenito d6d16b
## </param>
Chris PeBenito d6d16b
#
Chris PeBenito d6d16b
interface(`avahi_stream_connect',`
Chris PeBenito d6d16b
	gen_require(`
Chris PeBenito d6d16b
		type avahi_t, avahi_var_run_t;
Chris PeBenito d6d16b
	')
Chris PeBenito d6d16b
Chris PeBenito d6d16b
	files_search_pids($1)
Chris PeBenito c0868a
	stream_connect_pattern($1,avahi_var_run_t,avahi_var_run_t,avahi_t)
Chris PeBenito d6d16b
')
Chris PeBenito 517618
Chris PeBenito 517618
########################################
Chris PeBenito 517618
## <summary>
Chris PeBenito 517618
##	Do not audit attempts to search the avahi pid directory.
Chris PeBenito 517618
## </summary>
Chris PeBenito 517618
## <param name="domain">
Chris PeBenito 517618
##	<summary>
Chris PeBenito 517618
##	Domain allowed access.
Chris PeBenito 517618
##	</summary>
Chris PeBenito 517618
## </param>
Chris PeBenito 517618
#
Chris PeBenito 517618
interface(`avahi_dontaudit_search_pid',`
Chris PeBenito 517618
	gen_require(`
Chris PeBenito 517618
		type avahi_var_run_t;
Chris PeBenito 517618
	')
Chris PeBenito 517618
Chris PeBenito 517618
	dontaudit $1 avahi_var_run_t:dir search_dir_perms;
Chris PeBenito 517618
')