]> git.ipfire.org Git - thirdparty/systemd.git/blob - units/systemd-udevd.service.in
Merge pull request #28681 from yuwata/udev-vs-tmpfiles
[thirdparty/systemd.git] / units / systemd-udevd.service.in
1 # SPDX-License-Identifier: LGPL-2.1-or-later
2 #
3 # This file is part of systemd.
4 #
5 # systemd is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU Lesser General Public License as published by
7 # the Free Software Foundation; either version 2.1 of the License, or
8 # (at your option) any later version.
9
10 [Unit]
11 Description=Rule-based Manager for Device Events and Files
12 Documentation=man:systemd-udevd.service(8) man:udev(7)
13 DefaultDependencies=no
14 After=systemd-sysusers.service systemd-hwdb-update.service
15 After=systemd-tmpfiles-setup-dev.service
16 Before=sysinit.target
17 ConditionPathIsReadWrite=/sys
18
19 [Service]
20 CapabilityBoundingSet=~CAP_SYS_TIME CAP_WAKE_ALARM
21 Delegate=pids
22 DelegateSubgroup=udev
23 Type=notify-reload
24 # Note that udev will reset the value internally for its workers
25 OOMScoreAdjust=-1000
26 Sockets=systemd-udevd-control.socket systemd-udevd-kernel.socket
27 Restart=always
28 RestartSec=0
29 ExecStart={{LIBEXECDIR}}/systemd-udevd
30 KillMode=mixed
31 TasksMax=infinity
32 PrivateMounts=yes
33 ProtectHostname=yes
34 MemoryDenyWriteExecute=yes
35 RestrictAddressFamilies=AF_UNIX AF_NETLINK AF_INET AF_INET6
36 RestrictRealtime=yes
37 RestrictSUIDSGID=yes
38 SystemCallFilter=@system-service @module @raw-io bpf
39 SystemCallFilter=~@clock
40 SystemCallErrorNumber=EPERM
41 SystemCallArchitectures=native
42 LockPersonality=yes
43 IPAddressDeny=any
44 {{SERVICE_WATCHDOG}}