From: guido@trentalancia.com (Guido Trentalancia) Date: Wed, 16 Feb 2011 07:13:56 +0100 Subject: [refpolicy] [PATCH 13/34]: patch to allow networkmanager dbus chat Message-ID: <1297836836.3205.56.camel@tesla.lan> To: refpolicy@oss.tresys.com List-Id: refpolicy.oss.tresys.com This patch allows dbus chat between networkmanager and dbus and between networkmanager and xdm. It also adds a missing permission (sysnet_read_dhcpc_state) to the networkmanager module. diff -pruN refpolicy-git-15022011-new-before-modification/policy/modules/services/dbus.te refpolicy-git-15022011-new-modified/policy/modules/services/dbus.te --- refpolicy-git-15022011-new-before-modification/policy/modules/services/dbus.te 2011-02-15 23:15:42.079074132 +0100 +++ refpolicy-git-15022011-new-modified/policy/modules/services/dbus.te 2011-02-15 23:17:05.366699083 +0100 @@ -156,6 +156,10 @@ optional_policy(` ') optional_policy(` + networkmanager_dbus_chat(system_dbusd_t) +') + +optional_policy(` policykit_dbus_chat(system_dbusd_t) policykit_domtrans_auth(system_dbusd_t) policykit_search_lib(system_dbusd_t) diff -pruN refpolicy-git-15022011-new-before-modification/policy/modules/services/networkmanager.te refpolicy-git-15022011-new-modified/policy/modules/services/networkmanager.te --- refpolicy-git-15022011-new-before-modification/policy/modules/services/networkmanager.te 2011-01-08 19:07:21.269745618 +0100 +++ refpolicy-git-15022011-new-modified/policy/modules/services/networkmanager.te 2011-02-15 23:17:58.800809233 +0100 @@ -141,6 +141,7 @@ sysnet_domtrans_ifconfig(NetworkManager_ sysnet_domtrans_dhcpc(NetworkManager_t) sysnet_signal_dhcpc(NetworkManager_t) sysnet_read_dhcpc_pid(NetworkManager_t) +sysnet_read_dhcpc_state(NetworkManager_t) sysnet_delete_dhcpc_pid(NetworkManager_t) sysnet_search_dhcp_state(NetworkManager_t) # in /etc created by NetworkManager will be labelled net_conf_t. diff -pruN refpolicy-git-15022011-new-before-modification/policy/modules/services/xserver.te refpolicy-git-15022011-new-modified/policy/modules/services/xserver.te --- refpolicy-git-15022011-new-before-modification/policy/modules/services/xserver.te 2011-02-15 23:07:24.845137330 +0100 +++ refpolicy-git-15022011-new-modified/policy/modules/services/xserver.te 2011-02-15 23:17:05.369699539 +0100 @@ -548,6 +548,10 @@ optional_policy(` ') optional_policy(` + networkmanager_dbus_chat(xdm_t) +') + +optional_policy(` resmgr_stream_connect(xdm_t) ')