]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Add notes about ProtectSystem
authorPieter Lexis <pieter.lexis@powerdns.com>
Wed, 6 Jan 2016 15:24:58 +0000 (16:24 +0100)
committerPieter Lexis <pieter.lexis@powerdns.com>
Wed, 10 Feb 2016 12:45:27 +0000 (13:45 +0100)
Closes #3111

contrib/systemd-pdns.service
docs/markdown/authoritative/modes-of-operation.md

index d1cbb022ba44f60579bbc8ac0fb913225e91f044..0daa776fd1a4d4c074a3454fef6e3f3906415d4a 100644 (file)
@@ -13,6 +13,8 @@ PrivateTmp=true
 PrivateDevices=true
 CapabilityBoundingSet=CAP_NET_BIND_SERVICE CAP_SETGID CAP_SETUID
 NoNewPrivileges=true
+# ProtectSystem=full will disallow write access to /etc and /usr, possibly
+# not being able to write slaved-zones into sqlite3 or zonefiles.
 ProtectSystem=full
 ProtectHome=true
 RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
index 976d1e2a7fef70a2e9ab276d929ced64026a39cd..9ba708b35f23c31c3eae56572ba42249e6785dca 100644 (file)
@@ -34,6 +34,7 @@ This is truly an override and sends a notification to an arbitrary IP address. C
 On launch, PDNS requests from all backends a list of domains which have not been checked recently for changes. This should happen every '**refresh**' seconds, as specified in the SOA record. All domains that are unfresh are then checked for changes over at their master. If the [SOA](../types.md#soa) serial number there is higher, the domain is retrieved and inserted into the database. In any case, after the check the domain is declared 'fresh', and will only be checked again after '**refresh**' seconds have passed.
 
 **Warning**: Slave support is OFF by default, turn it on by adding [`slave`](settings.md#slave) to the configuration.
+**Note**: When running PowerDNS via the provided systemd service file, [`ProtectSystem`](http://www.freedesktop.org/software/systemd/man/systemd.exec.html#ProtectSystem=) is set to `full`, this means PowerDNS is unable to write to e.g. `/etc` and `/home`, possibly being unable to write AXFR's zones.
 
 PDNS also reacts to notifies by immediately checking if the zone has updated and if so, retransfering it.