Accepting request 214721 from home:develop7:branches:security:apparmor

Fixes broken NetworkManager dnsmasq dns plugin by allowing dnsmasq access its' 
pid file and supplemental config directory.

This time it's really fixed

OBS-URL: https://build.opensuse.org/request/show/214721
OBS-URL: https://build.opensuse.org/package/show/security:apparmor/apparmor?expand=0&rev=76
This commit is contained in:
Christian Boltz 2014-01-26 15:24:46 +00:00 committed by Git OBS Bridge
parent ddc41a170f
commit 3d6d7c5943

View File

@ -2,12 +2,16 @@ Index: profiles/apparmor.d/usr.sbin.dnsmasq
===================================================================
--- profiles/apparmor.d/usr.sbin.dnsmasq.orig
+++ profiles/apparmor.d/usr.sbin.dnsmasq
@@ -54,6 +54,8 @@
@@ -54,6 +54,12 @@
# NetworkManager integration
/{,var/}run/nm-dns-dnsmasq.conf r,
/{,var/}run/sendsigs.omit.d/*dnsmasq.pid w,
+ # new dnsmasq config path (as of 2012-11-05)
+ /{,var/}run/NetworkManager/dnsmasq.conf r,
+ /{,var/}run/NetworkManager/dnsmasq.pid w,
+ # dnsmasq supplemental config directory
+ /etc/NetworkManager/dnsmasq.d/ r,
+ /etc/NetworkManager/dnsmasq.d/* r,
# Site-specific additions and overrides. See local/README for details.
#include <local/usr.sbin.dnsmasq>