sys-kernel: enable kernel config CONFIG_BPF_LSM#846
Conversation
|
@mauriciovasquezbernal : Want to have a stab at running a test build? Or want me to start it? |
|
It's the first change after branching off 2583. Looks like a low-risk change to me and was tested locally (had a chat with @mauriciovasquezbernal about it); we might even consider to just merge and wait for the nightly. |
|
I updated the PR description with the details of the tests I did. I don't know that well the details of how the merge / build / test processes work for Flatcar, so I let you folks choose the best way to move ahead. |
krnowak
left a comment
There was a problem hiding this comment.
Well, so it builds (sometimes adding a config breaks a build actually), you tested that it works, so let the nightly build run the tests on the change.
|
There is a potential performance penalty with this PR as the Other distros like Ubuntu don't enable bpf in Said that, I'm wondering how to remove
Any suggestions to do this? |
|
I think 1. is a cleaner approach than 2. The initramfs hack in the build script makes sense because it integrates the kernel / modules config with the initramfs step in the build process. Adding CONFIG_LSM there would not be related to any other build step; having it in the kernel config would be much more transparent on what we want to achieve, therefore easier to maintain. |
Enable this option to make it possible to use LSM hooks with BPF. Signed-off-by: Mauricio Vasquez <mauricio@kinvolk.io>
410efcc to
46fa444
Compare
|
Makes sense to me. I updated the PR to include I tested again locally and it works fine, the bpf hook is disabled by default and can be enabled with the |
|
LGTM, let's pull it in. |
Enable this option to make it possible to use LSM hooks with BPF.
Fixes flatcar/Flatcar#343
Test
I built a local qemu image and performed the following tests.
In other terminal
It shows the eBPF program is working as expected.