| 1 | # Last Modified: Wed Jan 18 14:06:39 2012 |
| 2 | # ------------------------------------------------------------------ |
| 3 | # |
| 4 | # Copyright (C) 2002-2005 Novell/SUSE |
| 5 | # |
| 6 | # This program is free software; you can redistribute it and/or |
| 7 | # modify it under the terms of version 2 of the GNU General Public |
| 8 | # License published by the Free Software Foundation. |
| 9 | # |
| 10 | # ------------------------------------------------------------------ |
| 11 | # |
| 12 | # If you wish to use /etc/sysconfig/network/scripts/dhcpcd-hook, be sure |
| 13 | # to configure a subdomain profile for it. |
| 14 | # |
| 15 | # Note that dhcpcd (at least as distributed by SuSE) offers to rewrite |
| 16 | # ntp.conf and yp.conf in addition to resolv.conf. |
| 17 | # |
| 18 | |
| 19 | #include <tunables/global> |
| 20 | |
| 21 | /sbin/dhcpcd { |
| 22 | #include <abstractions/base> |
| 23 | #include <abstractions/nameservice> |
| 24 | |
| 25 | capability dac_override, |
| 26 | capability net_admin, |
| 27 | capability net_raw, |
| 28 | capability sys_admin, |
| 29 | |
| 30 | |
| 31 | |
| 32 | /bin/bash mrix, |
| 33 | /bin/touch mrix, |
| 34 | /dev/tty rw, |
| 35 | /etc/* r, |
| 36 | /etc/dhcpc/* rwl, |
| 37 | /etc/init.d/syslog Ux, |
| 38 | /etc/ntp.conf{,.sv} rwl, |
| 39 | /etc/resolv.conf{,.sv} rwl, |
| 40 | /etc/sysconfig/network/scripts/dhcpcd-hook mrix, |
| 41 | /etc/yp.conf{,.sv} rwl, |
| 42 | /proc/sys/** w, |
| 43 | /sbin/dhcpcd mrix, |
| 44 | /sbin/ifup Ux, |
| 45 | /sbin/modify_resolvconf mrix, |
| 46 | /usr/lib/networkmanager/nm-dhcp-client.action rix, |
| 47 | /var/lib/dhcpcd/* rw, |
| 48 | /{,var/}run/dhcpcd-*.pid rwlk, |
| 49 | |
| 50 | } |