Zhiyi Zhang | 79ee944 | 2020-10-17 15:35:56 -0700 | [diff] [blame] | 1 | [Unit] |
| 2 | Description=Certificate Management Identity Management Service for NDN |
Tianyuan Yu | 13aac73 | 2022-03-03 20:59:54 -0800 | [diff] [blame] | 3 | BindsTo=nfd.service |
| 4 | After=nfd.service |
Zhiyi Zhang | 79ee944 | 2020-10-17 15:35:56 -0700 | [diff] [blame] | 5 | |
| 6 | [Service] |
Zhiyi Zhang | d6fa6f4 | 2020-10-17 16:17:26 -0700 | [diff] [blame] | 7 | Environment=HOME=%S/ndncert-ca |
Zhiyi Zhang | aa60c96 | 2021-01-22 10:57:41 -0800 | [diff] [blame] | 8 | ExecStart=@BINDIR@/ndncert-ca-server |
Zhiyi Zhang | 79ee944 | 2020-10-17 15:35:56 -0700 | [diff] [blame] | 9 | Restart=on-failure |
| 10 | RestartPreventExitStatus=2 |
| 11 | User=ndn |
| 12 | |
Tianyuan Yu | 13aac73 | 2022-03-03 20:59:54 -0800 | [diff] [blame] | 13 | CapabilityBoundingSet= |
| 14 | LockPersonality=yes |
| 15 | MemoryDenyWriteExecute=yes |
| 16 | NoNewPrivileges=yes |
| 17 | PrivateDevices=yes |
| 18 | PrivateTmp=yes |
| 19 | PrivateUsers=yes |
| 20 | ProtectControlGroups=yes |
| 21 | ProtectHome=yes |
| 22 | ProtectKernelModules=yes |
| 23 | ProtectKernelTunables=yes |
| 24 | # systemd older than v232 doesn't support a value of "strict" for ProtectSystem, |
| 25 | # so it will ignore that line and use ProtectSystem=full; with newer systemd, |
| 26 | # the latter assignment is recognized and takes precedence, resulting in an |
| 27 | # effective setting of ProtectSystem=strict |
| 28 | ProtectSystem=full |
| 29 | ProtectSystem=strict |
| 30 | RestrictAddressFamilies=AF_UNIX AF_NETLINK AF_INET AF_INET6 AF_PACKET |
| 31 | RestrictNamespaces=yes |
| 32 | RestrictRealtime=yes |
| 33 | StateDirectory=ndncert-ca |
| 34 | SystemCallArchitectures=native |
| 35 | SystemCallErrorNumber=EPERM |
| 36 | SystemCallFilter=~@aio @chown @clock @cpu-emulation @debug @keyring @module @mount @obsolete @privileged @raw-io @reboot @resources @setuid @swap |
| 37 | |
| 38 | # Dependency |
Zhiyi Zhang | 79ee944 | 2020-10-17 15:35:56 -0700 | [diff] [blame] | 39 | [Install] |
| 40 | WantedBy=multi-user.target |
Tianyuan Yu | 13aac73 | 2022-03-03 20:59:54 -0800 | [diff] [blame] | 41 | WantedBy=nfd.service |