Skip to content

Commit 6e5d84f

Browse files
committed
docs(audit): retarget audit-prompt rule #6 at mios.toml [packages.<section>]
Rule 6 in the audit-prompt's heuristic table told auditors to grep PACKAGES.md for stray `kernel` / `kernel-core` entries. Per the 2026-05-05 SSOT consolidation those entries now live in mios.toml [packages.<section>].pkgs, so the grep on PACKAGES.md (which moved to usr/share/doc/mios/reference/) would either error or check the wrong file. Heuristic now greps mios.toml directly with the quoted-string pattern that matches a TOML pkgs[] entry.
1 parent 3321ac3 commit 6e5d84f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

usr/share/mios/ai/audit-prompt.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ Each is a one-line `grep`/`find`. Any hit is a finding.
120120
| 3 | sysusers login user with `-` UID | `awk '/^u[[:space:]]+/ { if ($3 == "-" && $NF ~ /\/(bash\|zsh\|sh\|fish)$/) print FILENAME":"NR" "$0 }' usr/lib/sysusers.d/*.conf` |
121121
| 4 | sysusers `u name UID:NUM` without matching `g name NUM` in same file | (see postcheck #8b for awk script) |
122122
| 5 | `tmpfiles.d` paths under `/var/run` or `/var/lock` | `awk '/^[a-zA-Z]/ { if ($2 ~ /^\/var\/(run\|lock)\//) print FILENAME":"NR" "$0 }' usr/lib/tmpfiles.d/*.conf` |
123-
| 6 | `kernel`/`kernel-core` listed in `packages-*` (must NEVER upgrade in container) | `grep -nE '^kernel(-core)?$' usr/share/mios/PACKAGES.md` |
123+
| 6 | `kernel`/`kernel-core` listed in `[packages.<section>].pkgs` (must NEVER upgrade in container) | `grep -nE '"kernel(-core)?"' usr/share/mios/mios.toml` |
124124
| 7 | `((VAR++))` arithmetic under `set -e` | `grep -nE '\(\([A-Za-z_]+\+\+\)\)' automation/[0-9][0-9]-*.sh` |
125125
| 8 | `--squash-all` in Containerfile (strips bootc OCI metadata) | `grep -n 'squash-all' Containerfile` |
126126
| 9 | systemd-udev-settle in 'MiOS' units (deprecated) | `grep -rn 'systemd-udev-settle' usr/lib/systemd/system/mios-*.service` |

0 commit comments

Comments
 (0)