2020-11-09 12:23:58 +08:00
|
|
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
2019-07-05 00:33:30 +08:00
|
|
|
#
|
|
|
|
# This file is part of systemd.
|
|
|
|
#
|
|
|
|
# systemd is free software; you can redistribute it and/or modify it
|
|
|
|
# under the terms of the GNU Lesser General Public License as published by
|
|
|
|
# the Free Software Foundation; either version 2.1 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
|
|
|
|
[Unit]
|
|
|
|
Description=User Database Manager
|
|
|
|
Documentation=man:systemd-userdbd.service(8)
|
|
|
|
Requires=systemd-userdbd.socket
|
2023-09-05 16:17:41 +08:00
|
|
|
After=systemd-userdbd.socket
|
2019-07-05 00:33:30 +08:00
|
|
|
Before=sysinit.target
|
|
|
|
DefaultDependencies=no
|
|
|
|
|
|
|
|
[Service]
|
2022-12-20 00:58:49 +08:00
|
|
|
CapabilityBoundingSet=CAP_DAC_READ_SEARCH CAP_SYS_RESOURCE
|
2023-06-12 09:15:19 +08:00
|
|
|
ExecStart={{LIBEXECDIR}}/systemd-userdbd
|
2019-07-05 00:33:30 +08:00
|
|
|
IPAddressDeny=any
|
2021-05-16 17:55:36 +08:00
|
|
|
LimitNOFILE={{HIGH_RLIMIT_NOFILE}}
|
2019-07-05 00:33:30 +08:00
|
|
|
LockPersonality=yes
|
|
|
|
MemoryDenyWriteExecute=yes
|
|
|
|
NoNewPrivileges=yes
|
|
|
|
PrivateDevices=yes
|
2020-08-06 20:50:38 +08:00
|
|
|
ProtectProc=invisible
|
2019-07-05 00:33:30 +08:00
|
|
|
ProtectControlGroups=yes
|
|
|
|
ProtectHome=yes
|
|
|
|
ProtectHostname=yes
|
|
|
|
ProtectKernelLogs=yes
|
|
|
|
ProtectKernelModules=yes
|
|
|
|
ProtectSystem=strict
|
|
|
|
RestrictAddressFamilies=AF_UNIX AF_NETLINK AF_INET AF_INET6
|
|
|
|
RestrictNamespaces=yes
|
|
|
|
RestrictRealtime=yes
|
|
|
|
RestrictSUIDSGID=yes
|
|
|
|
SystemCallArchitectures=native
|
|
|
|
SystemCallErrorNumber=EPERM
|
|
|
|
SystemCallFilter=@system-service
|
|
|
|
Type=notify
|
2021-05-16 17:55:36 +08:00
|
|
|
{{SERVICE_WATCHDOG}}
|
2020-03-14 01:40:54 +08:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
Also=systemd-userdbd.socket
|