2020-11-09 07:23:58 +03:00
# SPDX-License-Identifier: LGPL-2.1-or-later
2019-07-04 19:33:30 +03: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 11:17:41 +03:00
After = systemd-userdbd.socket
2019-07-04 19:33:30 +03:00
Before = sysinit.target
DefaultDependencies = no
[Service]
2022-12-19 19:58:49 +03:00
CapabilityBoundingSet = CAP_DAC_READ_SEARCH CAP_SYS_RESOURCE
2023-06-12 04:15:19 +03:00
ExecStart = {{LIBEXECDIR}}/systemd-userdbd
2019-07-04 19:33:30 +03:00
IPAddressDeny = any
2021-05-16 12:55:36 +03:00
LimitNOFILE = {{HIGH_RLIMIT_NOFILE}}
2019-07-04 19:33:30 +03:00
LockPersonality = yes
MemoryDenyWriteExecute = yes
NoNewPrivileges = yes
PrivateDevices = yes
2020-08-06 15:50:38 +03:00
ProtectProc = invisible
2019-07-04 19:33:30 +03: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 12:55:36 +03:00
{ { S E R V I C E _ W A T C H D O G } }
2020-03-13 20:40:54 +03:00
[Install]
Also = systemd-userdbd.socket