Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/license-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: license-check

on:
push:
branches: [main]
pull_request:
workflow_dispatch:

permissions:
contents: read

jobs:
license-artifacts:
name: License & provenance artifact check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
Comment thread
Iky969 marked this conversation as resolved.
Resolved
Comment thread
Iky969 marked this conversation as resolved.
Resolved

- name: Install build dependencies
run: |
sudo apt-get update
sudo apt-get install -y build-essential busybox-static python3 tar xz-utils curl

- name: Build base packages
run: make packages

- name: Check ELF artifacts against the license allowlist
run: |
python3 scripts/check-license-artifacts.py \
--root packages \
--root distro/packages \
--allowlist licenses/allowlist.json
36 changes: 36 additions & 0 deletions RELEASE-NOTES-v1.2.0.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# S.A.N.E Linux v1.2.0 Release Notes

> **Document status (2026-11-30):** This file preserves the original v1.2.0
> release notes. The licensing, provenance, source-availability, and
> license-check work added after that release is recorded in the addendum in
> section 6. For the current source offer, see [`SOURCE-OFFER.md`](SOURCE-OFFER.md).

## 1. Overview
S.A.N.E Linux v1.2.0 is a major milestone release delivering production-grade init lifecycle control, fail-closed privilege drop semantics, a full POSIX-compliant package manager (`spm`) with atomic transactions and hardened archive validation, guest offline installer support for BIOS and UEFI GPT systems, immutable upstream kernel toolchain pinning, and root-owned deterministic initramfs generation.

Expand Down Expand Up @@ -70,3 +75,34 @@ S.A.N.E Linux v1.2.0 is a major milestone release delivering production-grade in
- **Guidance for Package Authors & System Deployers**:
- Kernel and bootloader installation scripts must perform staging and copy operations within the same filesystem or explicitly handle cross-device copying when updating `/boot`.
- Never attempt to symlink `/boot/vmlinuz` to a versioned kernel binary on a FAT32 ESP partition.

---

## 6. Addendum 2026-11-30 — Licensing, provenance & source availability

This addendum records the follow-up licensing work that landed after the
original v1.2.0 release. It does not change the historical feature list above.

- Full license texts are bundled under `licenses/`, with provenance recorded in
`licenses/README.md`.
- `SOURCE-OFFER.md` carries the written offer for complete corresponding
source, valid for at least three years after the last distribution of the
covered binaries.
- The permanent source release is `v1.2.1-source`:
<https://github.com/Iky969/sane-linux/releases/tag/v1.2.1-source>. It
contains the kernel bundle, both BusyBox source variants, the dosfstools
source package, and the pinned `build-rootfs-1.36.1.sh` script.
- `packages/kernel/PROVENANCE` and `packages/disk-tools/PROVENANCE` record the
exact upstreams, hashes, and build paths of the shipped kernel and
dosfstools binaries.
- A canonical `packages/busybox/config-1.36.1` is committed and consumed by
`scripts/build-rootfs.sh`.
- A new license-check workflow, `.github/workflows/license-check.yml`, runs
`scripts/check-license-artifacts.py` against `packages/` and the built
`distro/packages/` output, using `licenses/allowlist.json`. Unknown ELF
binaries or hash mismatches now fail the build instead of slipping through
unnoticed.
- Phase 4 (history rewrite with `git filter-repo`) is deliberately **not**
executed. It is recorded as an archive note only, because source offers and
release assets already satisfy the GPL obligations without rewriting public
history.
27 changes: 27 additions & 0 deletions archive/2026-11-30-phase4-history-rewrite-note.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Phase 4 archive note — history rewrite decision

Date: 2026-11-30.

The earlier suggestion was to run `git filter-repo` to remove BusyBox and
kernel binaries from all history, followed by force-push of all branches and
tags.

Decision: **do not execute that rewrite.** This file is the only record of
that decision.

Reasons:

- The complete corresponding sources are already published in the permanent
`v1.2.1-source` GitHub Release, so the GPL obligations do not depend on
deleting historical binaries.
- Rewriting published history would invalidate PR heads, release tags, and
existing forks/clones, and would require regenerating release assets and
tags.
- Force-pushing all branches and tags is a destructive operation that should
never be performed as a reflex to a license audit.
- Keeping this note preserves the rationale without pretending the rewrite was
ever carried out.

If a future maintainer still wants to shrink history, it must be a separate,
explicitly approved migration after the source releases are final and a full
backup exists. This note does not authorize that operation.
15 changes: 15 additions & 0 deletions licenses/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,18 @@ above are recorded for verification.
For the GPL-2.0-only binaries shipped in S.A.N.E Linux images, see
[`SOURCE-OFFER.md`](../SOURCE-OFFER.md) and
[`THIRD_PARTY_LICENSES.md`](../THIRD_PARTY_LICENSES.md).

## License artifact allowlist

`allowlist.json` is consumed by `scripts/check-license-artifacts.py` and by the
`license-check` GitHub Actions workflow. Each entry names a binary path or
glob, its license, and its source reference. First-party packages are marked
with `first_party: true` so they are not mistaken for third-party GPL payloads.
`*` and `?` in globs do not cross `/`; use `**` for recursive matching.
Unreadable files or directories fail the gate rather than being skipped.
Optional `sha256` fields pin critical binaries (BusyBox, kernel, dosfstools);
Comment thread
Iky969 marked this conversation as resolved.
Resolved
when present they are checked for every matched regular file. Applet symlinks
are skipped because they are aliases, not independent payloads; a new regular
ELF still fails unless it is registered here. When adding a new binary, update
this file and `THIRD_PARTY_LICENSES.md` in the same PR, and publish its source
asset if it is third-party.
112 changes: 112 additions & 0 deletions licenses/allowlist.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
[
{
"path": "packages/ninit/x/sbin/init",
"component": "ninit",
"license": "MIT",
"source_ref": "ninit.c and scripts/ in this repository",
"first_party": true
},
{
"path": "packages/busybox/x/**",
Comment thread
Iky969 marked this conversation as resolved.
Resolved
"match": "glob",
"component": "BusyBox (Ubuntu build)",
"license": "GPL-2.0-only",
"source_ref": "busybox-ubuntu-1.37.0-7ubuntu1-source.tar.gz in v1.2.1-source",
"sha256": "8d4e5a13ce30fb66fa7156a25f738e690b1dfc4823774dfab5a0f1fd7fed48f7"
},
{
"path": "packages/kernel/x/boot/vmlinuz-virt",
"component": "Linux kernel 6.6.134 virt flavor",
"license": "GPL-2.0-only",
"source_ref": "linux-6.6.134-sane-source.tar.gz in v1.2.1-source",
"sha256": "be523954ad673a78c9cdfd3d473a8d39609f5901adfcc68402c67dc037a64c7e"
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved
},
{
"path": "packages/kernel/x/lib/modules/**/*.ko",
"match": "glob",
"component": "Linux kernel modules 6.6.134",
"license": "GPL-2.0-only",
"source_ref": "linux-6.6.134-sane-source.tar.gz in v1.2.1-source"
},
{
"path": "packages/disk-tools/x/usr/sbin/mkfs.fat",
"component": "dosfstools",
"license": "GPL-3.0-only",
"source_ref": "dosfstools-ubuntu-4.2-1.2build1-source.tar.gz in v1.2.1-source",
"sha256": "3bded05c428857023571416308f0ecf0fce2f9d44f0e5b7ec3b371c1350f45a4"
},
{
"path": "packages/disk-tools/x/usr/sbin/sgdisk",
"component": "gptfdisk",
"license": "GPL-2.0-only",
"source_ref": "https://sourceforge.net/projects/gptfdisk/"
},
{
"path": "packages/disk-tools/x/usr/sbin/mke2fs",
"component": "e2fsprogs",
"license": "GPL-2.0-only",
"source_ref": "https://e2fsprogs.sourceforge.net/"
},
{
"path": "packages/curl/x/usr/bin/curl",
"component": "curl",
"license": "curl license (MIT/X derivative)",
"source_ref": "licenses/curl.txt and curl 8.11.0 upstream"
},
{
"path": "packages/doas/x/usr/bin/doas",
"component": "OpenDoas",
"license": "ISC",
"source_ref": "https://github.com/Duncaen/OpenDoas/releases/download/v6.8.2/opendoas-6.8.2.tar.gz"
},
{
"path": "packages/libressl/x/usr/bin/openssl",
"component": "LibreSSL",
"license": "ISC (includes OpenSSL-derived code)",
"source_ref": "https://cdn.openbsd.org/pub/OpenBSD/LibreSSL/libressl-3.9.2.tar.gz"
},
{
"path": "packages/libressl/x/usr/bin/ocspcheck",
"component": "LibreSSL",
"license": "ISC (includes OpenSSL-derived code)",
"source_ref": "https://cdn.openbsd.org/pub/OpenBSD/LibreSSL/libressl-3.9.2.tar.gz"
},
{
"path": "packages/limine-static/x/usr/bin/limine",
"component": "Limine bootloader",
"license": "BSD-2-Clause",
"source_ref": "https://github.com/Limine-Bootloader/Limine/releases/download/v12.9.6/limine-binary.tar.xz"
},
{
"path": "packages/wpa-supplicant/x/usr/bin/wpa_supplicant",
"component": "wpa_supplicant",
"license": "BSD-3-Clause (GPL-2.0 alternative)",
"source_ref": "https://w1.fi/releases/wpa_supplicant-2.10.tar.gz"
},
{
"path": "packages/wpa-supplicant/x/usr/bin/wpa_cli",
"component": "wpa_supplicant",
"license": "BSD-3-Clause (GPL-2.0 alternative)",
"source_ref": "https://w1.fi/releases/wpa_supplicant-2.10.tar.gz"
},
{
"path": "packages/musl/x/usr/lib/libc.so",
"component": "musl libc",
"license": "MIT",
"source_ref": "https://musl.libc.org/releases/musl-1.2.5.tar.gz"
},
{
"path": "packages/musl/x/lib/ld-musl-*.so.*",
Comment thread
Iky969 marked this conversation as resolved.
Resolved
"match": "glob",
"component": "musl libc dynamic loader",
"license": "MIT",
"source_ref": "https://musl.libc.org/releases/musl-1.2.5.tar.gz"
},
{
"path": "packages/musl/x/usr/lib/*.o",
Comment thread
Iky969 marked this conversation as resolved.
Resolved
"match": "glob",
"component": "musl libc startup objects",
"license": "MIT",
"source_ref": "https://musl.libc.org/releases/musl-1.2.5.tar.gz"
}
]
Loading