Chris PeBenito 70b8a7
## <summary>Update dynamic IP address at DynDNS.org</summary>
Chris PeBenito 70b8a7
Chris PeBenito 70b8a7
#######################################
Chris PeBenito 70b8a7
## <summary>
Chris PeBenito 70b8a7
##	Execute ddclient in the ddclient domain.
Chris PeBenito 70b8a7
## </summary>
Chris PeBenito 70b8a7
## <param name="domain">
Chris PeBenito 70b8a7
##	<summary>
Chris PeBenito 70b8a7
##	Domain allowed access.
Chris PeBenito 70b8a7
##	</summary>
Chris PeBenito 70b8a7
## </param>
Chris PeBenito 70b8a7
#
Chris PeBenito 70b8a7
interface(`ddclient_domtrans',`
Chris PeBenito 70b8a7
	gen_require(`
Chris PeBenito 70b8a7
		type ddclient_t, ddclient_exec_t;
Chris PeBenito 70b8a7
	')
Chris PeBenito 70b8a7
Chris PeBenito 70b8a7
	corecmd_search_sbin($1)
Chris PeBenito 70b8a7
	domain_auto_trans($1, ddclient_exec_t, ddclient_t)
Chris PeBenito 70b8a7
Chris PeBenito 70b8a7
	allow $1 ddclient_t:fd use;
Chris PeBenito 70b8a7
	allow ddclient_t $1:fd use;
Chris PeBenito 70b8a7
	allow ddclient_t $1:fifo_file rw_file_perms;
Chris PeBenito 70b8a7
	allow ddclient_t $1:process sigchld;
Chris PeBenito 70b8a7
')