2021-04-06 15:30:10 +00:00
|
|
|
# You should not need to edit this file. Instead, use a drop-in file:
|
|
|
|
# systemctl edit kanidm-unixd.service
|
2020-10-07 12:16:33 +00:00
|
|
|
|
|
|
|
[Unit]
|
|
|
|
Description=Kanidm Local Client Resolver
|
|
|
|
After=chronyd.service ntpd.service network-online.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
DynamicUser=yes
|
|
|
|
UMask=0027
|
|
|
|
CacheDirectory=kanidm-unixd
|
|
|
|
RuntimeDirectory=kanidm-unixd
|
2021-04-06 15:30:10 +00:00
|
|
|
|
2020-10-07 12:16:33 +00:00
|
|
|
Type=simple
|
|
|
|
ExecStart=/usr/sbin/kanidm_unixd
|
|
|
|
|
2021-04-06 15:30:10 +00:00
|
|
|
# Implied by dynamic user.
|
|
|
|
# ProtectHome=
|
|
|
|
# ProtectSystem=strict
|
|
|
|
# ReadWritePaths=/var/run/kanidm-unixd /var/cache/kanidm-unixd
|
|
|
|
|
|
|
|
# SystemCallFilter=@aio @basic-io @chown @file-system @io-event @network-io @sync
|
|
|
|
NoNewPrivileges=true
|
|
|
|
PrivateTmp=true
|
|
|
|
PrivateDevices=true
|
|
|
|
ProtectHostname=true
|
|
|
|
ProtectClock=true
|
|
|
|
ProtectKernelTunables=true
|
|
|
|
ProtectKernelModules=true
|
|
|
|
ProtectKernelLogs=true
|
|
|
|
ProtectControlGroups=true
|
|
|
|
MemoryDenyWriteExecute=true
|
|
|
|
|
2020-10-07 12:16:33 +00:00
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|
|
|
|
|