From 9669b7004990c4a44d09100a257070012ac2051a Mon Sep 17 00:00:00 2001 From: FollieHiyuki <folliekazetani@protonmail.com> Date: Fri, 14 Jan 2022 22:03:16 +0700 Subject: [PATCH] community/apparmor: fix dnsmasq profile --- community/apparmor/APKBUILD | 4 +++- community/apparmor/fix-dnsmasq-profile.patch | 12 ++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 community/apparmor/fix-dnsmasq-profile.patch diff --git a/community/apparmor/APKBUILD b/community/apparmor/APKBUILD index caeee5a2f24c..406946aca324 100644 --- a/community/apparmor/APKBUILD +++ b/community/apparmor/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Allan Garret <allan.garret@gmail.com> pkgname=apparmor pkgver=3.0.3 -pkgrel=1 +pkgrel=2 pkgdesc="Linux application security framework - mandatory access control for programs" url="https://gitlab.com/apparmor/apparmor/wikis/home" # mips64 blocked by py3-notify2 @@ -47,6 +47,7 @@ source=" 0007-Remove-Locale-gettext-from-parser-tests.patch python-3.10.patch python-3.10-test-aa-notify.patch + fix-dnsmasq-profile.patch " builddir="$srcdir/$pkgname-v$pkgver" @@ -238,4 +239,5 @@ ebe2494e0023d45a41623038f8126fd5366606507d7c1caadf776253a5a64e2979ed157b00d22405 093c2f216776c5cc67294a134af6ef788dd5a82477592093abbdd244d65591006890a7c911d4f72d7c0ceac5d3ee33927b055a6d3731284701057b35372e7265 0007-Remove-Locale-gettext-from-parser-tests.patch fa188f7b794c62f285fe5e6c3b390acbab7838421374631e9a295a4806c0a1ff12724ba77bf18056eeea0d4d0666fbc4c264315ba9c0cddfbf2701a272a69b24 python-3.10.patch 0992d34da1e656ecabc6548d59e3615d68de6d748faa7a7c4d92f6a883e4abd3642ccf573851b4e3397e89d8c5da51e3febdb7065e1b5c42535a16a3c37763cb python-3.10-test-aa-notify.patch +cbe6eb9dd46e3ace122d5bc386596d5106a301b82a9ac1681f31a967013d3db67a8d674d54605444f30c3a136677ff3b26fad80f78d0f02dbe18a9f10f64672a fix-dnsmasq-profile.patch " diff --git a/community/apparmor/fix-dnsmasq-profile.patch b/community/apparmor/fix-dnsmasq-profile.patch new file mode 100644 index 000000000000..9a92065702ad --- /dev/null +++ b/community/apparmor/fix-dnsmasq-profile.patch @@ -0,0 +1,12 @@ +diff --git a/profiles/apparmor.d/usr.sbin.dnsmasq b/profiles/apparmor.d/usr.sbin.dnsmasq +index 7ae9a14..0005b14 100644 +--- a/profiles/apparmor.d/usr.sbin.dnsmasq ++++ b/profiles/apparmor.d/usr.sbin.dnsmasq +@@ -66,6 +66,7 @@ profile dnsmasq /usr/{bin,sbin}/dnsmasq flags=(attach_disconnected) { + /var/lib/misc/dnsmasq.leases rw, # Required only for DHCP server usage + + /{,usr/}bin/{ba,da,}sh ix, # Required to execute --dhcp-script argument ++ /bin/busybox ix, # /bin/sh is a symlink of busybox on Alpine + + # access to iface mtu needed for Router Advertisement messages in IPv6 + # Neighbor Discovery protocol (RFC 2461) -- GitLab