Debian Codegraph @

kernel_hardening_checker/config_files/distros/get_kconfigs.sh

raw
1 #!/bin/bash
2
3 set -x
4 set -e
5
6 oracle_git_url="https://raw.githubusercontent.com/oracle/kconfigs/refs/heads/gh-pages/out/"
7
8 kconfigs_from_oracle=(
9 "Alma Linux 10 aarch64"
10 "Alma Linux 10 x86_64"
11 "Android 15 (6.6) aarch64"
12 "Arch x86_64"
13 "CentOS 10 Stream aarch64"
14 "CentOS 10 Stream x86_64"
15 "Debian 13 Trixie aarch64"
16 "Debian 13 Trixie x86_64"
17 "Fedora 42 Updates aarch64"
18 "Fedora 42 Updates x86_64"
19 "Fedora Rawhide x86_64"
20 "Fedora Asahi Remix Rawhide aarch64"
21 "Oracle Linux 10 (UEK-NEXT) aarch64"
22 "Oracle Linux 10 (UEK-NEXT) x86_64"
23 "Ubuntu 25.04 Oracular aarch64"
24 "Ubuntu 25.04 Plucky x86_64"
25 )
26
27 for kconfig in "${kconfigs_from_oracle[@]}"; do
28 filename="${kconfig// /_}.config" # Replace spaces with underscores
29 wget -O "${filename}" "${oracle_git_url}${kconfig}/config" # Fetch kconfig
30 done
31
32 # Fetch some other kconfigs
33 wget -O Arch_hardened_x86_64.config https://gitlab.archlinux.org/archlinux/packaging/packages/linux-hardened/-/raw/main/config
34 wget -O Azure_Linux_x86_64.config https://raw.githubusercontent.com/microsoft/azurelinux/refs/heads/3.0/SPECS/kernel/config
35 wget -O OpenSUSE_x86_64.config https://raw.githubusercontent.com/openSUSE/kernel-source/refs/heads/master/config/x86_64/default
36 wget -O OpenSUSE_aarch64.config https://raw.githubusercontent.com/openSUSE/kernel-source/refs/heads/master/config/arm64/default
37 wget -O OpenSUSE_riscv64.config https://raw.githubusercontent.com/openSUSE/kernel-source/refs/heads/master/config/riscv64/default
38
39 echo "Well done!"