Davide Pesavento | 5704fdf | 2019-01-20 16:23:11 -0500 | [diff] [blame] | 1 | # Copyright (c) 2015-2019, Arizona Board of Regents. |
| 2 | # |
| 3 | # This file is part of NDNS (Named Data Networking Domain Name Service). |
| 4 | # See AUTHORS.md for complete list of NDNS authors and contributors. |
| 5 | # |
| 6 | # NDNS is free software: you can redistribute it and/or modify it under the terms |
| 7 | # of the GNU General Public License as published by the Free Software Foundation, |
| 8 | # either version 3 of the License, or (at your option) any later version. |
| 9 | # |
| 10 | # NDNS is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; |
| 11 | # without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR |
| 12 | # PURPOSE. See the GNU General Public License for more details. |
| 13 | # |
| 14 | # You should have received a copy of the GNU General Public License along with |
| 15 | # NDNS, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>. |
| 16 | # |
| 17 | # Author: Eric Newberry <enewberry@email.arizona.edu> |
| 18 | # Author: Davide Pesavento <davidepesa@gmail.com> |
| 19 | |
| 20 | [Unit] |
| 21 | Description=Domain Name Service for NDN |
| 22 | Documentation=man:ndns-daemon(1) |
| 23 | BindsTo=nfd.service |
| 24 | After=nfd.service |
| 25 | |
| 26 | [Service] |
| 27 | Environment=HOME=%S/ndn/ndns |
| 28 | ExecStart=@BINDIR@/ndns-daemon |
| 29 | Restart=on-failure |
| 30 | RestartPreventExitStatus=2 |
| 31 | User=ndns |
| 32 | |
| 33 | LockPersonality=yes |
| 34 | MemoryDenyWriteExecute=yes |
| 35 | NoNewPrivileges=yes |
| 36 | PrivateDevices=yes |
| 37 | PrivateTmp=yes |
| 38 | PrivateUsers=yes |
| 39 | ProtectControlGroups=yes |
| 40 | ProtectHome=yes |
| 41 | ProtectKernelModules=yes |
| 42 | ProtectKernelTunables=yes |
| 43 | ProtectSystem=full |
| 44 | RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 |
| 45 | RestrictNamespaces=yes |
| 46 | RestrictRealtime=yes |
| 47 | StateDirectory=ndn/ndns |
| 48 | SystemCallArchitectures=native |
| 49 | SystemCallErrorNumber=EPERM |
| 50 | SystemCallFilter=~@clock @cpu-emulation @debug @module @mount @obsolete @privileged @raw-io @reboot @setuid @swap |
| 51 | |
| 52 | [Install] |
| 53 | WantedBy=multi-user.target |
| 54 | WantedBy=nfd.service |