blob: b8b81ccf6e4028bdd64de4270ca1aa92475b4246 [file] [log] [blame]
Davide Pesaventoa7fead42019-01-19 21:18:17 -05001[Unit]
2Description=Certificate Management Service for NDN
3BindsTo=nfd.service
4After=nfd.service
5
6[Service]
7Environment=HOME=%S/ndn/ndncert
8EnvironmentFile=-@SYSCONFDIR@/default/ndncert
9ExecStart=@BINDIR@/ndncert-ca-server $FLAGS
10Restart=on-failure
11RestartPreventExitStatus=2
12User=ndncert
13
14LockPersonality=yes
15MemoryDenyWriteExecute=yes
16NoNewPrivileges=yes
17PrivateDevices=yes
18PrivateTmp=yes
19PrivateUsers=yes
20ProtectControlGroups=yes
21ProtectHome=yes
22ProtectKernelModules=yes
23ProtectKernelTunables=yes
24ProtectSystem=full
25RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
26RestrictNamespaces=yes
27RestrictRealtime=yes
28StateDirectory=ndn/ndncert
29SystemCallArchitectures=native
30SystemCallErrorNumber=EPERM
31SystemCallFilter=~@clock @cpu-emulation @debug @module @mount @obsolete @privileged @raw-io @reboot @setuid @swap
32
33[Install]
34WantedBy=multi-user.target
35WantedBy=nfd.service