scripts/hosts/guard/nsswitch-guard.service

13 lines
241 B
SYSTEMD
Raw Normal View History

2026-02-02 21:36:27 +01:00
[Unit]
Description=Enforce canonical /etc/nsswitch.conf (prevents hosts bypass)
After=local-fs.target
[Service]
Type=oneshot
ExecStart=/usr/local/sbin/enforce-nsswitch.sh
Nice=10
IOSchedulingClass=idle
[Install]
WantedBy=multi-user.target