Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions examples/systemd/node_exporter.service
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,45 @@ User=node_exporter
Environment=OPTIONS=
EnvironmentFile=-/etc/sysconfig/node_exporter
ExecStart=/usr/sbin/node_exporter --web.systemd-socket $OPTIONS
ProtectClock=true
ProtectHome=read-only
ProtectSystem=true
NoNewPrivileges=true
MemoryDenyWriteExecute=true
CapabilityBoundingSet=~CAP_KILL
CapabilityBoundingSet=~CAP_SYS_MODULE
CapabilityBoundingSet=~CAP_SYS_BOOT
CapabilityBoundingSet=~CAP_SYSLOG
CapabilityBoundingSet=~CAP_BLOCK_SUSPEND
CapabilityBoundingSet=~CAP_SYS_PTRACE
CapabilityBoundingSet=~CAP_SYS_ADMIN
CapabilityBoundingSet=~CAP_NET_ADMIN
CapabilityBoundingSet=~CAP_NET_BIND_SERVICE
CapabilityBoundingSet=~CAP_NET_RAW
CapabilityBoundingSet=~CAP_CHOWN
CapabilityBoundingSet=~CAP_SETFCAP
CapabilityBoundingSet=~CAP_SETUID
CapabilityBoundingSet=~CAP_SETGID
CapabilityBoundingSet=~CAP_SETPCAP
CapabilityBoundingSet=~CAP_FSETID
CapabilityBoundingSet=~CAP_NET_BROADCAST
CapabilityBoundingSet=~CAP_BPF
CapabilityBoundingSet=~CAP_SYS_RAWIO
CapabilityBoundingSet=~CAP_SYS_PACCT
ProtectHostname=true
SystemCallFilter=~@mount
SystemCallFilter=~@swap
SystemCallFilter=~@debug
SystemCallFilter=~@obsolete
SystemCallFilter=~@reboot
SystemCallFilter=~@module
SystemCallFilter=~@cpu-emulation
PrivateTmp=true
ProtectKernelLogs=true
ProtectKernelTunables=true
ProtectKernelModules=true
SystemCallArchitectures=native
RestrictSUIDSGID=true

[Install]
WantedBy=multi-user.target