Repository navigation
v1.3.1
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'seval; 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.login a 0700 directory; a customLOGFILEand.1are refused if they are symlinks, not root-owned regular files, or in a group/other-writable directory. - #65
slibno longer writesunitest.txtorstopspinninginto 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 bundledsrc/keys/kernel.org.asc; piped runs fall back to WKD. Temporary gpg homes live under/tmpto 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
flockprevents 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-gettransaction, matching the existing singlednftransaction.
Update path
- #66 / #72
--updateselects the.shrelease asset explicitly, requires and verifies aSHA256SUMSasset, downloads next to the script for an atomicmv, and refuses a piped run. The new release workflow attacheskernel_installer.shandSHA256SUMSto every release.
Behaviour notes
- The default log path moved from
/var/log/kernel_installer.logto/var/log/kernel-installer/kernel_installer.log. --updatenow refuses releases without aSHA256SUMSasset.- A
--dirparent that is group/other-writable must be sticky (e.g./tmp,/var/tmp); otherwise the script asks for a private directory. GNUPGHOMEnow defaults to a throwaway keyring. SetGNUPGHOME=/pathto reuse one.
Verification
- 22/22
tests/test_*.shpass. - 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