2020-11-09 04:23:58 +00:00
|
|
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
2017-11-18 16:35:03 +00:00
|
|
|
#
|
2012-05-21 13:12:18 +00: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.
|
|
|
|
|
2010-06-24 23:31:57 +00:00
|
|
|
[Unit]
|
2020-06-02 12:14:20 +00:00
|
|
|
Description=Rule-based Manager for Device Events and Files
|
2012-06-26 23:06:35 +00:00
|
|
|
Documentation=man:systemd-udevd.service(8) man:udev(7)
|
2013-03-25 20:22:52 +00:00
|
|
|
DefaultDependencies=no
|
2017-08-15 13:22:44 +00:00
|
|
|
After=systemd-sysusers.service systemd-hwdb-update.service
|
2013-06-14 20:56:39 +00:00
|
|
|
Before=sysinit.target
|
|
|
|
ConditionPathIsReadWrite=/sys
|
2010-06-24 23:31:57 +00:00
|
|
|
|
|
|
|
[Service]
|
2020-04-02 18:18:11 +00:00
|
|
|
DeviceAllow=block-* rwm
|
|
|
|
DeviceAllow=char-* rwm
|
2010-06-24 23:31:57 +00:00
|
|
|
Type=notify
|
2020-11-20 08:16:44 +00:00
|
|
|
# Note that udev will reset the value internally for its workers
|
2011-04-14 12:44:21 +00:00
|
|
|
OOMScoreAdjust=-1000
|
2012-07-02 19:35:14 +00:00
|
|
|
Sockets=systemd-udevd-control.socket systemd-udevd-kernel.socket
|
2012-06-28 10:13:52 +00:00
|
|
|
Restart=always
|
2012-07-18 00:31:52 +00:00
|
|
|
RestartSec=0
|
2021-05-16 09:55:36 +00:00
|
|
|
ExecStart={{ROOTLIBEXECDIR}}/systemd-udevd
|
2019-12-18 08:14:57 +00:00
|
|
|
ExecReload=udevadm control --reload --timeout 0
|
2015-04-24 14:12:28 +00:00
|
|
|
KillMode=mixed
|
2016-06-23 20:31:01 +00:00
|
|
|
TasksMax=infinity
|
2018-06-01 09:24:40 +00:00
|
|
|
PrivateMounts=yes
|
2020-04-02 18:18:11 +00:00
|
|
|
ProtectClock=yes
|
2019-02-18 22:30:12 +00:00
|
|
|
ProtectHostname=yes
|
2016-08-26 11:23:27 +00:00
|
|
|
MemoryDenyWriteExecute=yes
|
2016-10-06 13:40:53 +00:00
|
|
|
RestrictAddressFamilies=AF_UNIX AF_NETLINK AF_INET AF_INET6
|
2019-03-20 18:52:20 +00:00
|
|
|
RestrictRealtime=yes
|
|
|
|
RestrictSUIDSGID=yes
|
2021-11-30 10:07:30 +00:00
|
|
|
SystemCallFilter=@system-service @module @raw-io bpf
|
2018-04-19 09:04:17 +00:00
|
|
|
SystemCallErrorNumber=EPERM
|
2017-02-08 21:32:37 +00:00
|
|
|
SystemCallArchitectures=native
|
2017-09-14 17:45:40 +00:00
|
|
|
LockPersonality=yes
|
2017-10-04 12:16:28 +00:00
|
|
|
IPAddressDeny=any
|
2021-05-16 09:55:36 +00:00
|
|
|
{{SERVICE_WATCHDOG}}
|