1
0
mirror of https://github.com/HorlogeSkynet/systemd-hardene.d.git synced 2026-06-27 04:00:13 +02:00
Files
systemd-hardene.d/collection/bluetooth.service.d/00-hardened.conf

36 lines
721 B
Plaintext

[Service]
MemoryDenyWriteExecute=yes
NoNewPrivileges=yes
PrivateBPF=yes
PrivateDevices=no
DevicePolicy=closed
DeviceAllow=/dev/rfkill rw
DeviceAllow=/dev/uinput rw
PrivateIPC=yes
PrivateMounts=yes
PrivateTmp=yes
ProtectClock=yes
ProtectControlGroups=yes
ProtectHome=yes
ProtectHostname=yes
ProtectKernelLogs=yes
ProtectKernelModules=yes
ProtectKernelTunables=yes
ProtectProc=ptraceable
ProcSubset=pid
ProtectSystem=strict
ReadWritePaths=-/var/lib/bluetooth -/run/systemd/unit-root
RestrictAddressFamilies=AF_BLUETOOTH AF_UNIX
RestrictNamespaces=yes
RestrictRealtime=yes
RestrictSUIDSGID=yes
LockPersonality=yes
SystemCallArchitectures=native
SystemCallFilter=@system-service
SystemCallFilter=~@resources @privileged