2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-31 06:16:03 +00:00

Attached is an updated dnsmasq profile that fixes the following:

- allow net_admin capability for DHCP server
- allow net_raw and network inet raw for ICMP pings when used as a DHCP
server
- allow read and write access to libvirt pid files for dnsmasq

See the FAQ in the dnsmasq source for details. This fixes
https://launchpad.net/bugs/697239
This commit is contained in:
Jamie Strandboge
2011-01-12 11:47:04 -06:00
parent 2796c58eca
commit b12d93a739

View File

@@ -1,4 +1,13 @@
# Author: John Dong <jdong@ubuntu.com>
# ------------------------------------------------------------------
#
# 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.
#
# ------------------------------------------------------------------
#include <tunables/global>
/usr/sbin/dnsmasq {
@@ -9,6 +18,9 @@
capability setgid,
capability setuid,
capability dac_override,
capability net_admin, # for DHCP server
capability net_raw, # for DHCP server ping checks
network inet raw,
/etc/dnsmasq.conf r,
/etc/dnsmasq.d/ r,
@@ -22,6 +34,10 @@
/var/lib/misc/dnsmasq.leases rw, # Required only for DHCP server usage
# libvirt pid files for dnsmasq
/var/run/libvirt/network/ r,
/var/run/libvirt/network/*.pid rw,
# Site-specific additions and overrides. See local/README for details.
#include <local/usr.sbin.dnsmasq>
}