gates / gates (push) Successful in 3m34s
- 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
13 lines
1.4 KiB
Bash
13 lines
1.4 KiB
Bash
main() {
|
|
echo "#### $(hostname) $(date -u +%FT%TZ)"
|
|
echo "## fresh compile of the on-disk profile to stdout (no load, cache not read, not written)"
|
|
apparmor_parser -S -K /etc/apparmor.d/usr.sbin.chronyd 2>/dev/null | sha256sum
|
|
echo "## loaded"; cat /sys/kernel/security/apparmor/policy/profiles/usr.sbin.chronyd*/raw_sha256; echo
|
|
echo "## cache"; sha256sum /var/cache/apparmor/*/usr.sbin.chronyd; ls -ld --time-style=full-iso /var/cache/apparmor/*/ /var/cache/apparmor/*/.features
|
|
echo "## state"; systemctl is-active chrony; dpkg-query -W chrony; uname -r; chronyc -n tracking 2>&1 | grep -E 'System time|Leap' ; date -u +%s.%N
|
|
echo "## chrony fatal lines"; journalctl -u chrony --no-pager -o short-iso 2>/dev/null | grep -c 'Could not send notification'
|
|
echo "## stale check, every cached profile: cache differs from a fresh compile"; n=0; bad=0; cur=$(ls -d /var/cache/apparmor/*/ | while read d; do [ "$(sha256sum < $d/.features)" = "$(aa-features-abi -x 2>/dev/null | sha256sum)" ] && echo $d; done | head -1); echo "current dir: $cur"
|
|
for f in /etc/apparmor.d/*; do [ -f "$f" ] || continue; b=$(basename $f); [ -f "$cur$b" ] || continue; n=$((n+1)); a=$(apparmor_parser -S -K "$f" 2>/dev/null | sha256sum | cut -d' ' -f1); c=$(sha256sum < "$cur$b" | cut -d' ' -f1); [ "$a" = "$c" ] || { bad=$((bad+1)); echo "STALE: $b"; }; done; echo "checked=$n stale=$bad"
|
|
}
|
|
main </dev/null
|