Files
felhom.eu/documentation/audits/n100-clock-2026-11-11/tools/read4b.sh
T
admin d4c7e84c22
gates / gates (push) Successful in 3m34s
Golden 0.352.0 vouched; token fix finished; why the N100 keeps no time; certificate pin spike on demo-hp
- Golden 0.352.0: bake, publish, one fresh install, the operator's vouch (R-468).
- No clone holds a login in its address; the credential helper script is in the repository (R-925, R-1390).
- N100 clock: a stale cached AppArmor profile stops chrony (R-1301, new R-1388). Read only.
- Certificate pin spike on demo-hp (R-1380): the break, the proven hand repair (runbook), the CA-file test,
  03-host-agent.md 12a, decision D80.
- Rulings of 13:17 written down (09 decisions 297-302). Register 245 -> 248 (R-1388, R-1389, R-1390).
- Docs, evidence and one helper script. No release, no floor change, no hub deploy.

Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
2026-11-11 15:15:20 +01:00

19 lines
2.2 KiB
Bash

main() {
echo "#### $(hostname) $(date -u +%FT%TZ)"
echo "## fresh compile of the on-disk profile, to stdout only (no load, no cache write)"
apparmor_parser -S -K --skip-bad-cache-rebuild -o /dev/stdout /etc/apparmor.d/usr.sbin.chronyd 2>/dev/null | sha256sum
apparmor_parser -S -K -o /dev/stdout /etc/apparmor.d/usr.sbin.chronyd 2>&1 >/dev/null | head -3
echo "## loaded raw policy sha256"; cat /sys/kernel/security/apparmor/policy/profiles/usr.sbin.chronyd*/raw_sha256; echo
echo "## cache dirs"; ls -la --time-style=full-iso /var/cache/apparmor/
for d in /var/cache/apparmor/*/; do echo "$d features-sha=$(sha256sum < $d/.features | cut -c1-16) files=$(ls $d | wc -l)"; ls -l --time-style=full-iso $d/usr.sbin.chronyd $d/.features; done
echo "## kernel features now"; cat /sys/kernel/security/apparmor/features/policy/versions/* 2>/dev/null | tr '\n' ' '; echo; aa-features-abi -x 2>/dev/null | sha256sum | cut -c1-16
echo "## newest source file the profile depends on"; for f in /etc/apparmor.d/usr.sbin.chronyd /etc/apparmor.d/local/usr.sbin.chronyd /etc/apparmor.d/tunables/global /etc/apparmor.d/abstractions/base /etc/apparmor.d/abstractions/nameservice /etc/apparmor.d/abi/*; do ls -l --time-style=full-iso $f 2>/dev/null; done | awk '{print $6,$7,$9}' | sort | tail -6
echo "## files in /etc/apparmor.d changed 2026-07-18 or 2026-08-21"; find /etc/apparmor.d -newermt 2026-07-18 ! -newermt 2026-07-19 | head; find /etc/apparmor.d -newermt 2026-08-21 ! -newermt 2026-08-22 | head
echo "## versions"; dpkg-query -W apparmor chrony; apparmor_parser --version | head -1
echo "## dpkg log"; zgrep -h -E ' (upgrade|install) (apparmor|chrony|proxmox-kernel-[0-9.]+-[0-9]+-pve-signed):' /var/log/dpkg.log* | sort | tail -14
echo "## kernels booted"; journalctl --list-boots --no-pager | tail -8; for b in -4 -3 -2 -1 0; do journalctl -b $b -k --no-pager -o cat 2>/dev/null | head -1 | cut -c1-60; done
echo "## chronyd confinement now"; ps -eZ 2>/dev/null | grep -i chrony || echo "no chronyd process"
echo "## what installed chrony 4.8"; zgrep -h -B3 -A3 'chrony' /var/log/apt/history.log* 2>/dev/null | grep -E 'Start-Date|Commandline|Requested-By|chrony' | cut -c1-260 | tail -12
}
main </dev/null