Skip to content

Commit

Permalink
fix(scap-open): do not skip modern bpf probe on supported platforms
Browse files Browse the repository at this point in the history
Signed-off-by: Aldo Lacuku <aldo@lacuku.eu>
  • Loading branch information
alacuku committed Jul 26, 2023
1 parent 72a2a5d commit 29868a2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions ansible-playbooks/roles/scap_open/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
register: result
changed_when: false
rescue:
- name: Enable Modern Bpf support
- name: Disable Modern Bpf support
ansible.builtin.set_fact:
modern_bpf_supported: true
when: result.rc != 95
modern_bpf_supported: false
when: result.rc == 95

- name: Check Old Bpf Support
block:
Expand Down
2 changes: 1 addition & 1 deletion ansible-playbooks/roles/scap_open/vars/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
modern_bpf_supported: false
modern_bpf_supported: true
bpf_supported: false
bpf_minimum_kver:
aarch64: '4.17'
Expand Down

0 comments on commit 29868a2

Please sign in to comment.