Skip to content

Commit 9673cfe

Browse files
Add Baseband-guard Support (BBG) (WildKernels#68)
A lightweight LSM (Linux Security Module) for the Android kernel, designed to block unauthorized writes to critical partitions/device nodes at the system level. This reduces the risk of malicious or accidental tampering with critical components such as the baseband and boot chain.
1 parent d84a967 commit 9673cfe

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.github/actions/action.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,16 @@ runs:
180180
rm -f msm-kernel/android/abi_gki_protected_exports_* || true
181181
df -h
182182
183+
- name: Add BBG
184+
shell: bash
185+
run: |
186+
set -euo pipefail
187+
cd "$CONFIG/kernel_platform"
188+
echo "Adding BBG..."
189+
wget -O- https://github.com/vc-teahouse/Baseband-guard/raw/main/setup.sh | bash
190+
echo "CONFIG_BBG=y" >> common/arch/arm64/configs/gki_defconfig
191+
sed -i '/^config LSM$/,/^help$/{ /^[[:space:]]*default/ { /baseband_guard/! s/landlock/landlock,baseband_guard/ } }' common/security/Kconfig
192+
183193
- name: Add KernelSU Next
184194
shell: bash
185195
run: |

.github/workflows/build-kernel-release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,7 @@ jobs:
461461
- [+] CONFIG_TMPFS_XATTR Support [Mountify Support]
462462
- [+] BBR v1 Support
463463
- [+] HMBIRD scx support for OnePlus 13 & OnePlus Ace 5 Pro
464+
- [+] Baseband Guard Support (BBG).
464465
EOF
465466
466467
# Output for debugging

0 commit comments

Comments
 (0)