From: cpebenito@tresys.com (Christopher J. PeBenito) Date: Wed, 15 Dec 2010 15:02:58 -0500 Subject: [refpolicy] [PATCH 2/2] DHCPC daemon init network interface In-Reply-To: <4CF2C4F2.6080802@giz-works.com> References: <1290933959-9230-1-git-send-email-gizmo@giz-works.com> <20101128101000.GB2234@localhost.localdomain> <4CF2C4F2.6080802@giz-works.com> Message-ID: <4D091EF2.2020203@tresys.com> To: refpolicy@oss.tresys.com List-Id: refpolicy.oss.tresys.com On 11/28/10 16:09, Chris Richards wrote: > Ah, you are correct. I just saw that I could simply add the nlmsg_write > to what was already there and simply added it. I never even thought > about looking to see if there was a macro already defined for that. D'oh! > > We'll see if PeBenito wants me to resubmit with the change. Might as well resubmit as I have comments on other patches. > On 11/28/2010 04:10 AM, Dominick Grift wrote: >> On Sun, Nov 28, 2010 at 02:45:59AM -0600, Chris Richards wrote: >>> Signed-off-by: Chris Richards >>> --- >>> policy/modules/system/sysnetwork.te | 4 ++-- >>> 1 files changed, 2 insertions(+), 2 deletions(-) >>> >>> diff --git a/policy/modules/system/sysnetwork.te b/policy/modules/system/sysnetwork.te >>> index dfbe736..640334d 100644 >>> --- a/policy/modules/system/sysnetwork.te >>> +++ b/policy/modules/system/sysnetwork.te >>> @@ -50,7 +50,7 @@ allow dhcpc_t self:fifo_file rw_fifo_file_perms; >>> allow dhcpc_t self:tcp_socket create_stream_socket_perms; >>> allow dhcpc_t self:udp_socket create_socket_perms; >>> allow dhcpc_t self:packet_socket create_socket_perms; >>> -allow dhcpc_t self:netlink_route_socket { create_socket_perms nlmsg_read }; >>> +allow dhcpc_t self:netlink_route_socket { create_socket_perms nlmsg_read nlmsg_write }; >> i am not sure but i suspect we may be able to use create_netlink_socket_perms here >>> >>> allow dhcpc_t dhcp_etc_t:dir list_dir_perms; >>> read_lnk_files_pattern(dhcpc_t, dhcp_etc_t, dhcp_etc_t) >>> @@ -81,7 +81,7 @@ domtrans_pattern(dhcpc_t, ifconfig_exec_t, ifconfig_t) >>> >>> kernel_read_system_state(dhcpc_t) >>> kernel_read_network_state(dhcpc_t) >>> -kernel_search_network_sysctl(dhcpc_t) >>> +kernel_rw_net_sysctls(dhcpc_t) >>> kernel_read_kernel_sysctls(dhcpc_t) >>> kernel_request_load_module(dhcpc_t) >>> kernel_use_fds(dhcpc_t) >>> -- >>> 1.7.3.2 >>> >>> _______________________________________________ >>> refpolicy mailing list >>> refpolicy at oss.tresys.com >>> http://oss.tresys.com/mailman/listinfo/refpolicy >> _______________________________________________ >> refpolicy mailing list >> refpolicy at oss.tresys.com >> http://oss.tresys.com/mailman/listinfo/refpolicy >> > > _______________________________________________ > refpolicy mailing list > refpolicy at oss.tresys.com > http://oss.tresys.com/mailman/listinfo/refpolicy -- Chris PeBenito Tresys Technology, LLC www.tresys.com | oss.tresys.com