-
Notifications
You must be signed in to change notification settings - Fork 457
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(MODULES-7681) Add support for bytecode property #771
(MODULES-7681) Add support for bytecode property #771
Conversation
93b4868
to
6e8291d
Compare
|
@baurmatt Unfortunately your change failed on Redhat 6 when I ran it through an Adhoc pipeline. Here's the output: |
|
Hey @david22swan, thanks for testing! :) Which Linux kernel version does your RedHat 6 run? I think support for BPF was added with 3.10.x |
Kernal version is 2.6.32 |
|
Yeah, so this "works as expected". How can we probably handle this in CI? Can we somehow ensure that |
|
@baurmatt In this sort of situation we usually note the limitation within the documentation, put an exception around the test's so they aren't run against OS's that would cause them to fail and at times, add an exception to the code itself so that if the new feature is used on an OS that does not support it an error message would be given. Though the last part is not required. |
|
Ok, so further investigation into this topic showed that the bpf/bytecode requires nftables which was released with Linux 3.13. RedHat backported this into their RHEL 7.6 kernel for kernel-3.10.0-957.el7 and later. We use For those reasons, I decided against a validation within the type/provider and just updated the README.md. Could you please help me with disabling the tests for RedHat/CentOS < 7? I'm not sure how to exclude the |
|
@baurmatt you should be able to use code similar to this: To exclude specific OS and OS versions. To exclude entire OS Families. |
6e8291d
to
6805b48
Compare
|
Ha, that |
|
@baurmatt Sorry problem with the code I gave you. |
6805b48
to
3378513
Compare
|
Right, the |
|
@baurmatt I really hate to say this again, but there's one more correction needed to the code I gave you. It should be |
This commit adds support for Berkeley Paket Filter iptables rules.
3378513
to
b4328bc
Compare
|
No worries, I'm very grateful for the help you provide! I've updated the PR with your code, added a hopefully helpful comment and fixed a typo within the README.md. Thanks a lot! :) |
|
@baurmatt Everything looks good, thanks for the PR. |

This commit adds support for Berkeley Paket Filter iptables rules.