create interfaces for NetworkManager units
Create interfaces to allow start/stop, enable/disable and status of NetworkManager systemd unit
This commit is contained in:
parent
5d345b79ee
commit
de0e70f07a
|
@ -293,6 +293,63 @@ interface(`networkmanager_stream_connect',`
|
|||
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>
|
||||
## All of the rules required to
|
||||
|
|
Loading…
Reference in New Issue