All of lore.kernel.org
 help / color / mirror / Atom feed
From: dwalsh@redhat.com (Daniel J Walsh)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] [PATCH 2/2] DHCPC daemon init network interface, try 2
Date: Tue, 21 Dec 2010 08:47:54 -0500	[thread overview]
Message-ID: <4D10B00A.20209@redhat.com> (raw)
In-Reply-To: <4D0FD927.3000608@gmail.com>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 12/20/2010 05:31 PM, Dominick Grift wrote:
> On 12/20/2010 11:29 PM, gizmo at giz-works.com wrote:
>> From: Chris Richards <gizmo@giz-works.com>
> 
>> Allow dhcpcd DCHP Client daemon to start.  Add interface to allow
>> hostname daemon to talk to dhcpcd.
> 
>> Signed-off-by: Chris Richards <gizmo@giz-works.com>
>> ---
>>  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..e0838f8 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 };
> 
> i might be wrong but are you sure that "r_netlink_socket_perms" is not
> enough?
> 
>> +allow dhcpc_t self:netlink_route_socket create_netlink_socket_perms;
> 
This would allow it to modify the routing table, which might make sense
for dhcp clients.
>>  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_network_sysctls(dhcpc_t)
>>  kernel_read_kernel_sysctls(dhcpc_t)
>>  kernel_request_load_module(dhcpc_t)
>>  kernel_use_fds(dhcpc_t)
> 
_______________________________________________
refpolicy mailing list
refpolicy at oss.tresys.com
http://oss.tresys.com/mailman/listinfo/refpolicy

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAk0QsAoACgkQrlYvE4MpobNunQCg1QGLbZGff1V2ZrUYDi4WJjvh
Km0AmwTtYTVPKJrTmGCrt2FduRc49c7m
=vvj2
-----END PGP SIGNATURE-----

      reply	other threads:[~2010-12-21 13:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-20 22:29 [refpolicy] [PATCH 2/2] DHCPC daemon init network interface, try 2 gizmo at giz-works.com
2010-12-20 22:31 ` Dominick Grift
2010-12-21 13:47   ` Daniel J Walsh [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D10B00A.20209@redhat.com \
    --to=dwalsh@redhat.com \
    --cc=refpolicy@oss.tresys.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.