blob: e8bc6c88cf9a845b06364a2a1fd24ae6c7c4cbbd [file] [log] [blame]
Davide Pesavento5704fdf2019-01-20 16:23:11 -05001# 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]
21Description=Domain Name Service for NDN
22Documentation=man:ndns-daemon(1)
23BindsTo=nfd.service
24After=nfd.service
25
26[Service]
27Environment=HOME=%S/ndn/ndns
28ExecStart=@BINDIR@/ndns-daemon
29Restart=on-failure
30RestartPreventExitStatus=2
31User=ndns
32
33LockPersonality=yes
34MemoryDenyWriteExecute=yes
35NoNewPrivileges=yes
36PrivateDevices=yes
37PrivateTmp=yes
38PrivateUsers=yes
39ProtectControlGroups=yes
40ProtectHome=yes
41ProtectKernelModules=yes
42ProtectKernelTunables=yes
43ProtectSystem=full
44RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
45RestrictNamespaces=yes
46RestrictRealtime=yes
47StateDirectory=ndn/ndns
48SystemCallArchitectures=native
49SystemCallErrorNumber=EPERM
50SystemCallFilter=~@clock @cpu-emulation @debug @module @mount @obsolete @privileged @raw-io @reboot @setuid @swap
51
52[Install]
53WantedBy=multi-user.target
54WantedBy=nfd.service