dev-sec / cis-dil-benchmark

CIS Distribution Independent Linux Benchmark - InSpec Profile
Apache License 2.0
149 stars 92 forks source link

fix: handle chrony configuration sourced via amazon-chrony-config #153

Closed nejch closed 1 year ago

nejch commented 1 year ago

This is similar to #152.

Amazon linux in recent versions will use amazon-chrony-config and will source its configuration in the root config file:

# Use NTP servers from DHCP.
sourcedir /run/chrony.d

See notes on AL images here https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/set-time.html#configure-amazon-time-service-amazon-linux-IPv4

/cc @schurzi @dlouzan