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