| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- name: Setup Baseband Guard (BBG)
- description: Download and configure Baseband Guard security module
- runs:
- using: composite
- steps:
- - name: Install Baseband Guard
- shell: bash
- working-directory: ${{ github.workspace }}/kernel
- run: |
- wget -O- https://github.com/vc-teahouse/Baseband-guard/raw/main/setup.sh | bash
-
- - name: Configure Baseband Guard
- shell: bash
- working-directory: ${{ github.workspace }}/kernel
- run: |
- # Modify security Kconfig to include baseband_guard in LSM
- sed -i '/^config LSM$/,/^help$/{ /^[[:space:]]*default/ { /baseband_guard/! s/selinux/selinux,baseband_guard/ } }' common/security/Kconfig
-
- - name: Verify BBG Installation
- shell: bash
- working-directory: ${{ github.workspace }}/kernel
- run: |
- if grep -q "baseband_guard" common/security/Kconfig; then
- echo "✓ SUCCESS: baseband_guard found in common/security/Kconfig"
- grep -n "baseband_guard" common/security/Kconfig || true
- else
- echo "✗ FAILED: baseband_guard not found in common/security/Kconfig"
- exit 1
- fi
-
- - name: Extract BBG Version
- shell: bash
- working-directory: ${{ github.workspace }}/kernel/Baseband-guard
- run: |
- # Extract and export BBG version info
- BBG_COMMIT=$(git rev-parse --short HEAD 2>/dev/null)
- echo "BBG_COMMIT=$BBG_COMMIT" >> $GITHUB_ENV
- - name: Enable Kernel Configs
- shell: bash
- run: |
- cat >> "${{ github.workspace }}/kernel/common/arch/arm64/configs/gki_defconfig" << 'EOF'
- CONFIG_BBG
- EOF
|