diff --git a/platform/opensuse/kanidm-unixd-tasks.service b/platform/opensuse/kanidm-unixd-tasks.service new file mode 100644 index 000000000..9bbe8078a --- /dev/null +++ b/platform/opensuse/kanidm-unixd-tasks.service @@ -0,0 +1,34 @@ +# Source: https://build.opensuse.org/package/view_file/home:firstyear:kanidm/kanidm/kanidm-unixd-tasks.service +# You should not need to edit this file. Instead, use a drop-in file: +# systemctl edit kanidm-unixd-tasks.service + + +[Unit] +Description=Kanidm Local Tasks +After=chronyd.service ntpd.service network-online.target kanidm-unixd.service + +[Service] +User=root +Type=simple +ExecStart=/usr/sbin/kanidm_unixd_tasks + +CapabilityBoundingSet=CAP_CHOWN CAP_FOWNER CAP_DAC_OVERRIDE CAP_DAC_READ_SEARCH +# SystemCallFilter=@aio @basic-io @chown @file-system @io-event @network-io @sync +ProtectSystem=strict +ReadWritePaths=/home /var/run/kanidm-unixd +RestrictAddressFamilies=AF_UNIX +NoNewPrivileges=true +PrivateTmp=true +PrivateDevices=true +PrivateNetwork=true +ProtectHostname=true +ProtectClock=true +ProtectKernelTunables=true +ProtectKernelModules=true +ProtectKernelLogs=true +ProtectControlGroups=true +MemoryDenyWriteExecute=true + +[Install] +WantedBy=multi-user.target + diff --git a/platform/opensuse/kanidm-unixd.service b/platform/opensuse/kanidm-unixd.service new file mode 100644 index 000000000..33ae50fea --- /dev/null +++ b/platform/opensuse/kanidm-unixd.service @@ -0,0 +1,36 @@ +# Source: https://build.opensuse.org/package/view_file/home:firstyear:kanidm/kanidm/kanidm-unixd.service +# You should not need to edit this file. Instead, use a drop-in file: +# systemctl edit kanidm-unixd.service + +[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 + +Type=simple +ExecStart=/usr/sbin/kanidm_unixd + +# 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 + +[Install] +WantedBy=multi-user.target diff --git a/platform/opensuse/kanidmd.service b/platform/opensuse/kanidmd.service new file mode 100644 index 000000000..887de5ef3 --- /dev/null +++ b/platform/opensuse/kanidmd.service @@ -0,0 +1,29 @@ +# Source: https://build.opensuse.org/package/view_file/home:firstyear:kanidm/kanidm/kanidmd.service +# You should not need to edit this file. Instead, use a drop-in file as described in: +# /usr/lib/systemd/system/kanidmd.service.d/custom.conf + +[Unit] +Description=Kanidm Identity Server +After=chronyd.service ntpd.service network-online.target +Before=radiusd.service + +[Service] +Type=simple +DynamicUser=yes +UMask=0027 +StateDirectory=kanidmd +ExecStart=/usr/sbin/kanidmd server -c /etc/kanidm/server.toml + +NoNewPrivileges=true +PrivateTmp=true +PrivateDevices=true +ProtectHostname=true +ProtectClock=true +ProtectKernelTunables=true +ProtectKernelModules=true +ProtectKernelLogs=true +ProtectControlGroups=true +MemoryDenyWriteExecute=true + +[Install] +WantedBy=multi-user.target