crazytrace@.service 910 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. [Unit]
  2. Description=crazytrace %I
  3. Documentation=https://codeberg.org/mark22k/crazytrace
  4. [Service]
  5. RemoveIPC=true
  6. DynamicUser=true
  7. NoNewPrivileges=true
  8. SystemCallArchitectures=native
  9. MemoryDenyWriteExecute=true
  10. LockPersonality=true
  11. RestrictNamespaces=true
  12. RestrictAddressFamilies=AF_INET AF_INET6 AF_NETLINK
  13. RestrictRealtime=true
  14. ProtectKernelTunables=true
  15. ProtectHostname=true
  16. ProtectHome=true
  17. ProtectProc=ptraceable
  18. ProtectSystem=strict
  19. ProtectClock=true
  20. ProtectKernelLogs=true
  21. ProtectControlGroups=true
  22. ProtectKernelModules=true
  23. PrivateTmp=true
  24. ProcSubset=pid
  25. SystemCallFilter=~@clock @cpu-emulation @debug @module @mount @obsolete @privileged @raw-io @reboot @resources @swap
  26. CapabilityBoundingSet=CAP_NET_ADMIN
  27. AmbientCapabilities=CAP_NET_ADMIN
  28. ConfigurationDirectory=crazytrace
  29. ExecStart=/usr/bin/crazytrace %E/crazytrace/%i.yaml
  30. Restart=on-failue
  31. TimeoutStopSec=5
  32. [Install]
  33. WantedBy=multi-user.target