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
|
|
|
|
2012-04-16 23:10:43 +02:00
|
|
|
@{TFTP_DIR}=/var/tftp /srv/tftpboot
|
2011-12-16 12:15:12 -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>
|
2013-08-20 15:52:22 -07:00
|
|
|
#include <abstractions/dbus>
|
2009-11-04 14:25:42 -06:00
|
|
|
#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-09-15 20:58:54 +02:00
|
|
|
/{,var/}run/dnsmasq-forwarders.conf 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-12-17 12:20:53 -05:00
|
|
|
# for the read-only TFTP server
|
2011-12-16 12:15:12 -05:00
|
|
|
@{TFTP_DIR}/ r,
|
2011-12-17 12:20:53 -05:00
|
|
|
@{TFTP_DIR}/** r,
|
2011-12-16 12:15:12 -05:00
|
|
|
|
2013-10-30 21:41:28 +01:00
|
|
|
# libvirt config, lease and hosts files for dnsmasq
|
2011-08-12 22:14:00 +02:00
|
|
|
/var/lib/libvirt/dnsmasq/ r,
|
2013-10-30 21:41:28 +01:00
|
|
|
/var/lib/libvirt/dnsmasq/* r,
|
2011-07-25 08:28:04 -05:00
|
|
|
/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-01-12 11:47:04 -06:00
|
|
|
|
2012-01-18 16:20:43 -06:00
|
|
|
# NetworkManager integration
|
|
|
|
/{,var/}run/nm-dns-dnsmasq.conf r,
|
2013-01-02 15:47:28 -08:00
|
|
|
/{,var/}run/sendsigs.omit.d/*dnsmasq.pid w,
|
2012-01-18 16:20:43 -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
|
|
|
}
|