|
|
1ec3d1a |
## <summary>User network interface configuration helper</summary>
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
########################################
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Execute usernetctl in the usernetctl domain.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## <param name="domain">
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Domain allowed to transition.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## </param>
|
|
|
1ec3d1a |
#
|
|
|
1ec3d1a |
interface(`usernetctl_domtrans',`
|
|
|
1ec3d1a |
gen_require(`
|
|
|
1ec3d1a |
type usernetctl_t, usernetctl_exec_t;
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
domtrans_pattern($1, usernetctl_exec_t, usernetctl_t)
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
########################################
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Execute usernetctl in the usernetctl domain, and
|
|
|
1ec3d1a |
## allow the specified role the usernetctl domain.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## <param name="domain">
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Domain allowed to transition.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## </param>
|
|
|
1ec3d1a |
## <param name="role">
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Role allowed access.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## </param>
|
|
|
1ec3d1a |
## <rolecap/>
|
|
|
1ec3d1a |
#
|
|
|
1ec3d1a |
interface(`usernetctl_run',`
|
|
|
1ec3d1a |
gen_require(`
|
|
|
8b08bfc |
type usernetctl_t;
|
|
|
8b08bfc |
#attribute_role usernetctl_roles;
|
|
Chris PeBenito |
9401ae1 |
')
|
|
Chris PeBenito |
9401ae1 |
|
|
|
8b08bfc |
#usernetctl_domtrans($1)
|
|
|
8b08bfc |
#roleattribute $2 usernetctl_roles;
|
|
|
8b08bfc |
|
|
|
8b08bfc |
sysnet_run_ifconfig(usernetctl_t, $2)
|
|
|
8b08bfc |
sysnet_run_dhcpc(usernetctl_t, $2)
|
|
|
8b08bfc |
|
|
|
8b08bfc |
optional_policy(`
|
|
|
8b08bfc |
iptables_run(usernetctl_t, $2)
|
|
|
8b08bfc |
')
|
|
|
8b08bfc |
|
|
|
8b08bfc |
optional_policy(`
|
|
|
8b08bfc |
modutils_run_insmod(usernetctl_t, $2)
|
|
|
8b08bfc |
')
|
|
|
8b08bfc |
|
|
|
8b08bfc |
optional_policy(`
|
|
|
8b08bfc |
ppp_run(usernetctl_t, $2)
|
|
|
8b08bfc |
')
|
|
|
8b08bfc |
|
|
|
1ec3d1a |
')
|