Chris PeBenito 8241b5
## <summary>Utilities for configuring the linux ethernet bridge</summary>
Chris PeBenito 8241b5
Chris PeBenito 8241b5
########################################
Chris PeBenito 8241b5
## <summary>
Chris PeBenito 8241b5
##	Execute a domain transition to run brctl.
Chris PeBenito 8241b5
## </summary>
Chris PeBenito 8241b5
## <param name="domain">
Chris PeBenito 8241b5
## <summary>
Chris PeBenito 8241b5
##	Domain allowed to transition.
Chris PeBenito 8241b5
## </summary>
Chris PeBenito 8241b5
## </param>
Chris PeBenito 8241b5
#
Chris PeBenito 8241b5
interface(`brctl_domtrans',`
Chris PeBenito 8241b5
	gen_require(`
Chris PeBenito 8241b5
		type brctl_t, brctl_exec_t;
Chris PeBenito 8241b5
	')
Chris PeBenito 8241b5
Chris PeBenito 0bfccd
	domtrans_pattern($1, brctl_exec_t, brctl_t)
Chris PeBenito 8241b5
')
Dan Walsh 3eaa99
Dan Walsh 3eaa99
#####################################
Dan Walsh 3eaa99
## <summary>
Dan Walsh 3eaa99
##      Execute brctl in the brctl domain.
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(`brctl_run',`
Dan Walsh 3eaa99
        gen_require(`
Dan Walsh 3eaa99
                type brctl_t, brctl_exec_t;
Dan Walsh 3eaa99
        ')
Dan Walsh 3eaa99
Dan Walsh 3eaa99
        brctl_domtrans($1)
Dan Walsh 3eaa99
        role $2 types brctl_t;
Dan Walsh 3eaa99
')