Skip to content

Instantly share code, notes, and snippets.

@dudo
Last active August 29, 2023 04:42
Show Gist options
  • Save dudo/0540f120affa7f22d5e9c97b627cee79 to your computer and use it in GitHub Desktop.
Save dudo/0540f120affa7f22d5e9c97b627cee79 to your computer and use it in GitHub Desktop.
REQUIRED_CONFIGS=(
CONFIG_BPF
CONFIG_BPF_SYSCALL
CONFIG_NET_CLS_BPF
CONFIG_BPF_JIT
CONFIG_NET_CLS_ACT
CONFIG_NET_SCH_INGRESS
CONFIG_CRYPTO_SHA1
CONFIG_CRYPTO_USER_API_HASH
CONFIG_CGROUPS
CONFIG_CGROUP_BPF
CONFIG_PERF_EVENTS
CONFIG_SCHEDSTATS
CONFIG_NETFILTER_XT_TARGET_TPROXY
CONFIG_NETFILTER_XT_TARGET_CT
CONFIG_NETFILTER_XT_MATCH_MARK
CONFIG_NETFILTER_XT_MATCH_SOCKET
)
for config in "${REQUIRED_CONFIGS[@]}"
do
zcat /proc/config.gz | grep "${config}[ =]"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment