darwin: disable netbios on activation

We have received a notification from the German Federal Office for
Information Security (BSI) about our NetBIOS being enabled, and it
potentially being used for DDoS reflection attacks.
This commit is contained in:
zimbatm 2024-03-01 17:35:33 +01:00 committed by Jonas Chevalier
parent f27a163625
commit 8603c1d570

View file

@ -66,5 +66,12 @@
StrictModes no
'';
# Make sure to disable netbios on activation
system.activationScripts.postActivation.text = ''
echo disabling netbios... >&2
launchctl disable system/netbiosd
launchctl unload -w /System/Library/LaunchDaemons/com.apple.netbiosd.plist 2>/dev/null || true
'';
time.timeZone = "GMT";
}