mirror of
https://github.com/aljazceru/addons.git
synced 2025-12-17 05:04:21 +01:00
Add AppArmor to dnsmasq (#327)
* Add files via upload * Update apparmor.txt * Update config.json * Create CHANGELOG.md
This commit is contained in:
4
dnsmasq/CHANGELOG.md
Normal file
4
dnsmasq/CHANGELOG.md
Normal file
@@ -0,0 +1,4 @@
|
||||
# Changelog
|
||||
|
||||
## 1.1
|
||||
- Add AppArmor profile
|
||||
26
dnsmasq/apparmor.txt
Normal file
26
dnsmasq/apparmor.txt
Normal 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,
|
||||
}
|
||||
@@ -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/",
|
||||
|
||||
Reference in New Issue
Block a user