2011-01-12 11:47:04 -06:00
|
|
|
# ------------------------------------------------------------------
|
|
|
|
#
|
|
|
|
# Copyright (C) 2009 John Dong <jdong@ubuntu.com>
|
|
|
|
# Copyright (C) 2010 Canonical Ltd.
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of version 2 of the GNU General Public
|
|
|
|
# License published by the Free Software Foundation.
|
|
|
|
#
|
|
|
|
# ------------------------------------------------------------------
|
2010-08-05 14:00:02 -05:00
|
|
|
|
2009-11-04 14:25:42 -06:00
|
|
|
#include <tunables/global>
|
2009-11-04 14:30:43 -06:00
|
|
|
/usr/sbin/dnsmasq {
|
2009-11-04 14:25:42 -06:00
|
|
|
#include <abstractions/base>
|
|
|
|
#include <abstractions/nameservice>
|
|
|
|
|
|
|
|
capability net_bind_service,
|
|
|
|
capability setgid,
|
|
|
|
capability setuid,
|
|
|
|
capability dac_override,
|
2011-01-12 11:47:04 -06:00
|
|
|
capability net_admin, # for DHCP server
|
|
|
|
capability net_raw, # for DHCP server ping checks
|
|
|
|
network inet raw,
|
2009-11-04 14:25:42 -06:00
|
|
|
|
|
|
|
/etc/dnsmasq.conf r,
|
|
|
|
/etc/dnsmasq.d/ r,
|
|
|
|
/etc/dnsmasq.d/* r,
|
2011-08-08 23:13:15 +02:00
|
|
|
/etc/ethers r,
|
2009-11-04 14:25:42 -06:00
|
|
|
|
|
|
|
/usr/sbin/dnsmasq mr,
|
|
|
|
|
2011-07-14 07:57:57 -05:00
|
|
|
/{,var/}run/*dnsmasq*.pid w,
|
2011-08-08 23:13:15 +02:00
|
|
|
/{,var/}run/dnsmasq-forwarders r,
|
2011-07-14 07:57:57 -05:00
|
|
|
/{,var/}run/dnsmasq/ r,
|
|
|
|
/{,var/}run/dnsmasq/* rw,
|
2009-11-04 14:25:42 -06:00
|
|
|
|
|
|
|
/var/lib/misc/dnsmasq.leases rw, # Required only for DHCP server usage
|
2010-08-05 14:00:02 -05:00
|
|
|
|
2011-07-25 08:28:04 -05:00
|
|
|
# libvirt lease files for dnsmasq
|
|
|
|
/var/lib/libvirt/dnsmasq/*.leases rw,
|
|
|
|
|
2011-01-12 11:47:04 -06:00
|
|
|
# libvirt pid files for dnsmasq
|
2011-07-14 07:57:57 -05:00
|
|
|
/{,var/}run/libvirt/network/ r,
|
|
|
|
/{,var/}run/libvirt/network/*.pid rw,
|
2011-08-08 23:13:15 +02:00
|
|
|
/var/lib/libvirt/dnsmasq/ r,
|
|
|
|
/var/lib/libvirt/dnsmasq/*.hostsfile r,
|
2011-01-12 11:47:04 -06:00
|
|
|
|
2010-08-05 14:00:02 -05:00
|
|
|
# Site-specific additions and overrides. See local/README for details.
|
|
|
|
#include <local/usr.sbin.dnsmasq>
|
2009-11-04 14:25:42 -06:00
|
|
|
}
|