2005-10-22 17:44:04 +00:00
|
|
|
## <summary>Manager for dynamically switching between networks.</summary>
|
2005-11-25 16:43:03 +00:00
|
|
|
|
2005-12-02 22:06:05 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Read and write NetworkManager UDP sockets.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## Domain allowed access.
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
# cjp: added for named.
|
2006-02-02 21:08:12 +00:00
|
|
|
interface(`networkmanager_rw_udp_sockets',`
|
2005-12-02 22:06:05 +00:00
|
|
|
gen_require(`
|
|
|
|
type NetworkManager_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
allow $1 NetworkManager_t:udp_socket { read write };
|
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Read and write NetworkManager packet sockets.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## Domain allowed access.
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
# cjp: added for named.
|
2006-02-02 21:08:12 +00:00
|
|
|
interface(`networkmanager_rw_packet_sockets',`
|
2005-12-02 22:06:05 +00:00
|
|
|
gen_require(`
|
|
|
|
type NetworkManager_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
allow $1 NetworkManager_t:packet_socket { read write };
|
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Read and write NetworkManager netlink
|
|
|
|
## routing sockets.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## Domain allowed access.
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
# cjp: added for named.
|
2006-02-02 21:08:12 +00:00
|
|
|
interface(`networkmanager_rw_routing_sockets',`
|
2005-12-02 22:06:05 +00:00
|
|
|
gen_require(`
|
|
|
|
type NetworkManager_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
allow $1 NetworkManager_t:netlink_route_socket { read write };
|
|
|
|
')
|
|
|
|
|
2005-11-25 16:43:03 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Send and receive messages from
|
|
|
|
## NetworkManager over dbus.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## Domain allowed access.
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`networkmanager_dbus_chat',`
|
|
|
|
gen_require(`
|
|
|
|
type NetworkManager_t;
|
|
|
|
class dbus send_msg;
|
|
|
|
')
|
|
|
|
|
|
|
|
allow $1 NetworkManager_t:dbus send_msg;
|
|
|
|
allow NetworkManager_t $1:dbus send_msg;
|
|
|
|
')
|