Add AppArmor to dnsmasq (#327)

* Add files via upload

* Update apparmor.txt

* Update config.json

* Create CHANGELOG.md
This commit is contained in:
Pascal Vizeli
2018-06-21 18:41:02 +02:00
committed by GitHub
parent ff39972498
commit 0bbe3560d7
3 changed files with 31 additions and 1 deletions

4
dnsmasq/CHANGELOG.md Normal file
View File

@@ -0,0 +1,4 @@
# Changelog
## 1.1
- Add AppArmor profile

26
dnsmasq/apparmor.txt Normal file
View File

@@ -0,0 +1,26 @@
#include <tunables/global>
profile dnsmasq flags=(attach_disconnected,mediate_deleted) {
#include <abstractions/base>
#include <abstractions/nameservice>
capability net_bind_service,
capability setgid,
capability setuid,
capability dac_override,
network inet raw,
network inet6 raw,
/bin/busybox ix,
/bin/bash ix,
/usr/bin/jq ix,
/usr/sbin/dnsmasq ix,
/etc/dnsmasq.conf rw,
/{,var/}run/*dnsmasq*.pid w,
/{,var/}run/dnsmasq/ r,
/{,var/}run/dnsmasq/* rw,
/run.sh rix,
/data/** r,
}

View File

@@ -1,6 +1,6 @@
{
"name": "Dnsmasq",
"version": "1.0",
"version": "1.1",
"slug": "dnsmasq",
"description": "A simple DNS server",
"url": "https://home-assistant.io/addons/dnsmasq/",