FIX: prevent bpf hardening on kernels < 5.8
This commit is contained in:
parent
310e52b330
commit
259aa1ed7b
@ -405,7 +405,7 @@
|
|||||||
name: kernel.unprivileged_bpf_disabled
|
name: kernel.unprivileged_bpf_disabled
|
||||||
value: '1'
|
value: '1'
|
||||||
state: present
|
state: present
|
||||||
when: BasicHardeningEnable and (ansible_facts.distribution_release == "bullseye" or ansible_facts.distribution_release == "buster")
|
when: BasicHardeningEnable and ansible_kernel is version_compare('5.8','>=')
|
||||||
|
|
||||||
|
|
||||||
- name: harden den bpf jit compilter
|
- name: harden den bpf jit compilter
|
||||||
@ -413,4 +413,4 @@
|
|||||||
name: net.core.bpf_jit_harden
|
name: net.core.bpf_jit_harden
|
||||||
value: '2'
|
value: '2'
|
||||||
state: present
|
state: present
|
||||||
when: BasicHardeningEnable and ansible_facts.distribution_release == "bullseye"
|
when: BasicHardeningEnable and ansible_kernel is version_compare('5.8','>=')
|
Loading…
Reference in New Issue
Block a user