Skip to content

v1.3.1

Choose a tag to compare

@tmiland tmiland released this 10 Nov 21:20
· 68 commits to main since this release

v1.3.1

Patch release with the 11 fixes reported by @davmonk in #62–#72, merged in #73.

Security and input hardening

  • #62 The build directory is recreated with mkdir (no -p), refuses symlinks, directories owned by another user, and non-sticky shared parents; an existing tarball is never trusted without verification.
  • #63 Kernel versions are validated against a full whitelist before they can reach run_ok's eval; distro-style versions (7.0.0-38-generic, 6.17.1-300.fc44.x86_64) still work.
  • #64 The log defaults to /var/log/kernel-installer/kernel_installer.log in a 0700 directory; a custom LOGFILE and .1 are refused if they are symlinks, not root-owned regular files, or in a group/other-writable directory.
  • #65 slib no longer writes unitest.txt or stopspinning into the caller's current directory.
  • #67 Checksums are read from gpgv's verified output, not from text appended after the clearsigned block.
  • #68 Verification uses a throwaway GNUPGHOME, exact key addresses and pinned fingerprints. Checkout runs import the bundled src/keys/kernel.org.asc; piped runs fall back to WKD. Temporary gpg homes live under /tmp to stay within the gpg-agent socket path limit.

Robustness

  • #69 Build cleanup deletes the marker last, so an interrupted cleanup (notably on btrfs) can be retried by the next run.
  • #70 flock prevents a second install or uninstall from deleting the active run's build directory or rotating its log.
  • #71 Debian/Ubuntu installs headers and image in one apt-get transaction, matching the existing single dnf transaction.

Update path

  • #66 / #72 --update selects the .sh release asset explicitly, requires and verifies a SHA256SUMS asset, downloads next to the script for an atomic mv, and refuses a piped run. The new release workflow attaches kernel_installer.sh and SHA256SUMS to every release.

Behaviour notes

  • The default log path moved from /var/log/kernel_installer.log to /var/log/kernel-installer/kernel_installer.log.
  • --update now refuses releases without a SHA256SUMS asset.
  • A --dir parent that is group/other-writable must be sticky (e.g. /tmp, /var/tmp); otherwise the script asks for a private directory.
  • GNUPGHOME now defaults to a throwaway keyring. Set GNUPGHOME=/path to reuse one.

Verification

  • 22/22 tests/test_*.sh pass.
  • PR #73 test-install matrix: Debian 12/13, Ubuntu 22.04/24.04, Fedora 44, both mainline jobs, and the custom-config smoke test all green; shellcheck and the slib pin check pass.

Full changelog: v1.3.0...v1.3.1