Merge pull request #47 from dsugar100/master
This commit is contained in:
commit
c6f623c10b
|
@ -293,6 +293,63 @@ interface(`networkmanager_stream_connect',`
|
||||||
stream_connect_pattern($1, NetworkManager_var_run_t, NetworkManager_var_run_t, NetworkManager_t)
|
stream_connect_pattern($1, NetworkManager_var_run_t, NetworkManager_var_run_t, NetworkManager_t)
|
||||||
')
|
')
|
||||||
|
|
||||||
|
########################################
|
||||||
|
## <summary>
|
||||||
|
## Allow specified domain to enable/disable NetworkManager units
|
||||||
|
## </summary>
|
||||||
|
## <param name="domain">
|
||||||
|
## <summary>
|
||||||
|
## Domain allowed access.
|
||||||
|
## </summary>
|
||||||
|
## </param>
|
||||||
|
#
|
||||||
|
interface(`networkmanager_enabledisable',`
|
||||||
|
gen_require(`
|
||||||
|
type NetworkManager_unit_t;
|
||||||
|
class service { enable disable };
|
||||||
|
')
|
||||||
|
|
||||||
|
allow $1 NetworkManager_unit_t:service { enable disable };
|
||||||
|
')
|
||||||
|
|
||||||
|
########################################
|
||||||
|
## <summary>
|
||||||
|
## Allow specified domain to start/stop NetworkManager units
|
||||||
|
## </summary>
|
||||||
|
## <param name="domain">
|
||||||
|
## <summary>
|
||||||
|
## Domain allowed access.
|
||||||
|
## </summary>
|
||||||
|
## </param>
|
||||||
|
#
|
||||||
|
interface(`networkmanager_startstop',`
|
||||||
|
gen_require(`
|
||||||
|
type NetworkManager_unit_t;
|
||||||
|
class service { start stop };
|
||||||
|
')
|
||||||
|
|
||||||
|
allow $1 NetworkManager_unit_t:service { start stop };
|
||||||
|
')
|
||||||
|
|
||||||
|
########################################
|
||||||
|
## <summary>
|
||||||
|
## Allow specified domain to get status of NetworkManager
|
||||||
|
## </summary>
|
||||||
|
## <param name="domain">
|
||||||
|
## <summary>
|
||||||
|
## Domain allowed access.
|
||||||
|
## </summary>
|
||||||
|
## </param>
|
||||||
|
#
|
||||||
|
interface(`networkmanager_status',`
|
||||||
|
gen_require(`
|
||||||
|
type NetworkManager_unit_t;
|
||||||
|
class service status;
|
||||||
|
')
|
||||||
|
|
||||||
|
allow $1 NetworkManager_unit_t:service status;
|
||||||
|
')
|
||||||
|
|
||||||
########################################
|
########################################
|
||||||
## <summary>
|
## <summary>
|
||||||
## All of the rules required to
|
## All of the rules required to
|
||||||
|
|
Loading…
Reference in New Issue