udev.service 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. # SPDX-License-Identifier: LGPL-2.1+
  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. [Unit]
  10. Description=udev Kernel Device Manager
  11. Documentation=man:systemd-udevd.service(8) man:udev(7)
  12. DefaultDependencies=no
  13. After=systemd-sysusers.service systemd-hwdb-update.service
  14. Before=sysinit.target
  15. ConditionPathIsReadWrite=/sys
  16. [Service]
  17. Type=notify
  18. # Note that udev also adjusts the OOM score internally and will reset the value internally for its workers
  19. OOMScoreAdjust=-1000
  20. Sockets=systemd-udevd-control.socket systemd-udevd-kernel.socket
  21. Restart=always
  22. RestartSec=0
  23. ExecStart=/lib/systemd/systemd-udevd
  24. ExecReload=udevadm control --reload --timeout 0
  25. KillMode=mixed
  26. TasksMax=infinity
  27. PrivateMounts=yes
  28. ProtectHostname=yes
  29. MemoryDenyWriteExecute=yes
  30. RestrictAddressFamilies=AF_UNIX AF_NETLINK AF_INET AF_INET6
  31. RestrictRealtime=yes
  32. RestrictSUIDSGID=yes
  33. LockPersonality=yes
  34. IPAddressDeny=any
  35. WatchdogSec=3min