|
| 1 | +# 🐧 NullSec Linux — Custom Kernel |
| 2 | + |
| 3 | +## Overview |
| 4 | + |
| 5 | +NullSec Linux ships with a **custom-built kernel** compiled from upstream kernel.org sources with all upstream distro branding removed and replaced with NullSec identity. This is not a patched derivative — it's a clean rebuild with NullSec-specific build identity. |
| 6 | + |
| 7 | +**Current Version:** `6.17.13+2-amd64` |
| 8 | +**Base Source:** [kernel.org v6.17.13](https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.17.13.tar.xz) |
| 9 | +**Architecture:** `x86_64 (amd64)` |
| 10 | + |
| 11 | +## What Makes It "NullSec" |
| 12 | + |
| 13 | +The kernel is rebuilt from vanilla source with the following customizations: |
| 14 | + |
| 15 | +| Component | Value | |
| 16 | +|:----------|:------| |
| 17 | +| `uname -r` | `6.17.13+2-amd64` | |
| 18 | +| `EXTRAVERSION` | *(cleared — no upstream distro tag)* | |
| 19 | +| `CONFIG_LOCALVERSION` | `+2-amd64` | |
| 20 | +| `KBUILD_BUILD_USER` | `nullsec` | |
| 21 | +| `KBUILD_BUILD_HOST` | `nullsec.sh` | |
| 22 | +| `KBUILD_BUILD_TIMESTAMP` | `NullSec 6.17.13-1nullsec1 (2026-02-12)` | |
| 23 | +| `KDEB_PKGVERSION` | `6.17.13-1` | |
| 24 | +| `/proc/version` | `Linux version 6.17.13+2-amd64 ([email protected]) #1 SMP PREEMPT_DYNAMIC NullSec 6.17.13-1nullsec1 ...` | |
| 25 | + |
| 26 | +**No Parrot, Debian, or Ubuntu strings appear anywhere in the running kernel.** |
| 27 | + |
| 28 | +## Packages |
| 29 | + |
| 30 | +The kernel build produces these `.deb` packages: |
| 31 | + |
| 32 | +| Package | Size | Purpose | |
| 33 | +|:--------|:-----|:--------| |
| 34 | +| `linux-image-6.17.13+2-amd64_6.17.13-1_amd64.deb` | ~164 MB | Kernel image, modules, initramfs | |
| 35 | +| `linux-headers-6.17.13+2-amd64_6.17.13-1_amd64.deb` | ~9.2 MB | Headers for DKMS/module builds | |
| 36 | +| `linux-libc-dev_6.17.13-1_amd64.deb` | ~1.4 MB | Userspace development headers | |
| 37 | + |
| 38 | +Download from [Releases](https://github.com/bad-antics/nullsec-linux/releases). |
| 39 | + |
| 40 | +## Install |
| 41 | + |
| 42 | +```bash |
| 43 | +# Download packages from the latest release, then: |
| 44 | +sudo dpkg -i linux-image-6.17.13+2-amd64_6.17.13-1_amd64.deb |
| 45 | +sudo dpkg -i linux-headers-6.17.13+2-amd64_6.17.13-1_amd64.deb |
| 46 | +sudo update-grub |
| 47 | +sudo reboot |
| 48 | +``` |
| 49 | + |
| 50 | +After reboot, verify: |
| 51 | + |
| 52 | +```bash |
| 53 | +uname -r |
| 54 | +# Expected: 6.17.13+2-amd64 |
| 55 | + |
| 56 | +uname -a |
| 57 | +# Expected: Linux <hostname> 6.17.13+2-amd64 #1 SMP PREEMPT_DYNAMIC NullSec 6.17.13-1nullsec1 ... |
| 58 | + |
| 59 | +cat /proc/version |
| 60 | +# Should contain "[email protected]" — no Parrot/Debian references |
| 61 | +``` |
| 62 | + |
| 63 | +## Build from Source |
| 64 | + |
| 65 | +To rebuild the kernel yourself: |
| 66 | + |
| 67 | +```bash |
| 68 | +# Install dependencies |
| 69 | +sudo apt-get install -y build-essential flex bison bc dwarves \ |
| 70 | + libssl-dev libncurses-dev libelf-dev cpio |
| 71 | + |
| 72 | +# Run the build script |
| 73 | +cd kernel/ |
| 74 | +chmod +x build-kernel.sh |
| 75 | +./build-kernel.sh all |
| 76 | + |
| 77 | +# Packages will be in kernel-build/ |
| 78 | +ls -lh kernel-build/*.deb |
| 79 | +``` |
| 80 | + |
| 81 | +The build takes approximately 15–45 minutes depending on your hardware. The script: |
| 82 | + |
| 83 | +1. Downloads the kernel source from kernel.org |
| 84 | +2. Applies your running kernel's `.config` |
| 85 | +3. Removes all upstream distro branding |
| 86 | +4. Sets NullSec build identity strings |
| 87 | +5. Compiles with `make bindeb-pkg` |
| 88 | +6. Outputs `.deb` packages ready for install |
| 89 | + |
| 90 | +### Build Options |
| 91 | + |
| 92 | +```bash |
| 93 | +./build-kernel.sh deps # Install dependencies only |
| 94 | +./build-kernel.sh download # Download kernel source only |
| 95 | +./build-kernel.sh config # Download + apply config |
| 96 | +./build-kernel.sh rebrand # Apply NullSec branding (source must exist) |
| 97 | +./build-kernel.sh build # Rebrand + compile |
| 98 | +./build-kernel.sh all # Full pipeline (default) |
| 99 | +``` |
| 100 | + |
| 101 | +## Kernel Config |
| 102 | + |
| 103 | +The kernel config used for the build is in `configs/config-6.17.13-nullsec`. Key settings: |
| 104 | + |
| 105 | +- **Preemption:** `PREEMPT_DYNAMIC` (balanced latency) |
| 106 | +- **Security:** SELinux, AppArmor, YAMA LSM enabled |
| 107 | +- **Networking:** Full netfilter/iptables/nftables stack |
| 108 | +- **Filesystems:** ext4, btrfs, xfs, ntfs3, squashfs, overlayfs |
| 109 | +- **Virtualization:** KVM, VirtIO drivers |
| 110 | +- **Hardware:** Broad hardware support (same as base distro) |
| 111 | +- **DKMS:** Headers package supports out-of-tree module compilation |
| 112 | + |
| 113 | +## Verify Integrity |
| 114 | + |
| 115 | +```bash |
| 116 | +# After downloading .deb packages, verify checksums: |
| 117 | +sha256sum -c SHA256SUMS |
| 118 | +``` |
| 119 | + |
| 120 | +## Directory Structure |
| 121 | + |
| 122 | +``` |
| 123 | +kernel/ |
| 124 | +├── build-kernel.sh # Main build script |
| 125 | +├── test-kernel-vm.sh # VM testing script |
| 126 | +├── configs/ |
| 127 | +│ └── config-6.17.13-nullsec # Kernel .config |
| 128 | +├── patches/ # Custom patches (if any) |
| 129 | +├── SHA256SUMS # Package checksums |
| 130 | +└── README.md # This file |
| 131 | +``` |
| 132 | + |
| 133 | +## License |
| 134 | + |
| 135 | +The Linux kernel is licensed under [GPL-2.0](https://www.gnu.org/licenses/old-licenses/gpl-2.0.html). |
| 136 | +NullSec build scripts are licensed under MIT. |
0 commit comments