|
Chris PeBenito |
17de1b |
## <summary>Manager for dynamically switching between networks.</summary>
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
17de1b |
## Read and write NetworkManager UDP sockets.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## <param name="domain">
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
17de1b |
## Domain allowed access.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## </param>
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# cjp: added for named.
|
|
Chris PeBenito |
17de1b |
interface(`networkmanager_rw_udp_sockets',`
|
|
Chris PeBenito |
17de1b |
gen_require(`
|
|
Chris PeBenito |
17de1b |
type NetworkManager_t;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow $1 NetworkManager_t:udp_socket { read write };
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
17de1b |
## Read and write NetworkManager packet sockets.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## <param name="domain">
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
17de1b |
## Domain allowed access.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## </param>
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# cjp: added for named.
|
|
Chris PeBenito |
17de1b |
interface(`networkmanager_rw_packet_sockets',`
|
|
Chris PeBenito |
17de1b |
gen_require(`
|
|
Chris PeBenito |
17de1b |
type NetworkManager_t;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow $1 NetworkManager_t:packet_socket { read write };
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
17de1b |
## Read and write NetworkManager netlink
|
|
Chris PeBenito |
17de1b |
## routing sockets.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## <param name="domain">
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
17de1b |
## Domain allowed access.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## </param>
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# cjp: added for named.
|
|
Chris PeBenito |
17de1b |
interface(`networkmanager_rw_routing_sockets',`
|
|
Chris PeBenito |
17de1b |
gen_require(`
|
|
Chris PeBenito |
17de1b |
type NetworkManager_t;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow $1 NetworkManager_t:netlink_route_socket { read write };
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
f7101c |
## Execute NetworkManager with a domain transition.
|
|
Chris PeBenito |
f7101c |
## </summary>
|
|
Chris PeBenito |
f7101c |
## <param name="domain">
|
|
Chris PeBenito |
f7101c |
## <summary>
|
|
Chris PeBenito |
f7101c |
## Domain allowed access.
|
|
Chris PeBenito |
f7101c |
## </summary>
|
|
Chris PeBenito |
f7101c |
## </param>
|
|
Chris PeBenito |
f7101c |
#
|
|
Chris PeBenito |
f7101c |
interface(`networkmanager_domtrans',`
|
|
Chris PeBenito |
f7101c |
gen_require(`
|
|
Chris PeBenito |
f7101c |
type NetworkManager_t, NetworkManager_exec_t;
|
|
Chris PeBenito |
f7101c |
')
|
|
Chris PeBenito |
f7101c |
|
|
Chris PeBenito |
f7101c |
corecmd_search_bin($1)
|
|
Chris PeBenito |
f7101c |
domtrans_pattern($1,NetworkManager_exec_t,NetworkManager_t)
|
|
Chris PeBenito |
f7101c |
')
|
|
Chris PeBenito |
f7101c |
|
|
Chris PeBenito |
f7101c |
########################################
|
|
Chris PeBenito |
f7101c |
## <summary>
|
|
Chris PeBenito |
17de1b |
## Send and receive messages from
|
|
Chris PeBenito |
17de1b |
## NetworkManager over dbus.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## <param name="domain">
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
17de1b |
## Domain allowed access.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## </param>
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
interface(`networkmanager_dbus_chat',`
|
|
Chris PeBenito |
17de1b |
gen_require(`
|
|
Chris PeBenito |
17de1b |
type NetworkManager_t;
|
|
Chris PeBenito |
17de1b |
class dbus send_msg;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow $1 NetworkManager_t:dbus send_msg;
|
|
Chris PeBenito |
17de1b |
allow NetworkManager_t $1:dbus send_msg;
|
|
Chris PeBenito |
17de1b |
')
|