Terminal Race Condition W/ Firewalld and Systemd?
I've put together some automation to ensure that we have a minimally-safe firewalld ruleset when someone decides to run a hardening tool against one of the vanilla systems we supply. We don't bake much in, per se, but we do have some standard launch-time routines that get run when launching an instance from an AMI.
Our vanilla AMIs are FIPS and SEL-enabled. We've encountered issues with utilities started from init scripts (cloud-init and/or cfn-bootstrap) where SEL prevents
firewall-cmdfirewall-offline-cmd/etc/firewalldsystemctl reload firewalld/etc/firewalldUnfortunately, using
reloadAt any rate, for now, we've moved to using
try-restartreload
Responses