Skip to content

Commit

Permalink
Merge pull request #261 from bcressey/no-bpf-umh
Browse files Browse the repository at this point in the history
kernel: disable BPF preload and bpfilter helpers
  • Loading branch information
bcressey authored Nov 19, 2024
2 parents fb8e75b + 84e0b8a commit 3e4cc8a
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/kernel-5.10/config-bottlerocket
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,12 @@ CONFIG_BOOT_CONFIG=y
# Enables support for checkpoint/restore
CONFIG_CHECKPOINT_RESTORE=y

# Disable user-mode helpers for BPF preload and bpfilter, since they rely on a
# more complete set of userspace libraries for the target than we want to
# depend on at kernel build time.
# CONFIG_BPF_PRELOAD_UMD is not set
# CONFIG_BPFILTER_UMH is not set

# Disable unused filesystems.
# CONFIG_AFS_FS is not set
# CONFIG_CRAMFS is not set
Expand Down
6 changes: 6 additions & 0 deletions packages/kernel-5.15/config-bottlerocket
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,12 @@ CONFIG_BOOT_CONFIG=y
# Enables support for checkpoint/restore
CONFIG_CHECKPOINT_RESTORE=y

# Disable user-mode helpers for BPF preload and bpfilter, since they rely on a
# more complete set of userspace libraries for the target than we want to
# depend on at kernel build time.
# CONFIG_BPF_PRELOAD_UMD is not set
# CONFIG_BPFILTER_UMH is not set

# Disable unused filesystems.
# CONFIG_AFS_FS is not set
# CONFIG_CRAMFS is not set
Expand Down
5 changes: 5 additions & 0 deletions packages/kernel-6.1/config-bottlerocket
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,11 @@ CONFIG_BOOT_CONFIG=y
# Enables support for checkpoint/restore
CONFIG_CHECKPOINT_RESTORE=y

# Disable user-mode helper for bpfilter, since it relies on a more complete set
# of userspace libraries for the target than we want to depend on at kernel
# build time.
# CONFIG_BPFILTER_UMH is not set

# Disable unused filesystems.
# CONFIG_AFS_FS is not set
# CONFIG_CRAMFS is not set
Expand Down

0 comments on commit 3e4cc8a

Please sign in to comment.