Skip to content

FIX: Sensor and Heavynode Fail to install #15441

@m0duspwnens

Description

@m0duspwnens

This issue was introduced in 2.4.200 (present in .200 and .201) and impacts environments with a PCAP BPF set.

[Errno 2] No such file or directory: '/usr/sbin/so-bpf-compile'
/var/cache/salt/minion/files/base/bpf/pcap.map.jinja(16):
---
[...]
{{   MACROS.remove_comments(BPFMERGED, 'pcap') }}
{%   set PCAPBPF = BPFMERGED.pcap %}
{% endif %}

{% if PCAPBPF %}
   {% set PCAP_BPF_CALC = salt['cmd.run_all']('/usr/sbin/so-bpf-compile ' ~ GLOBALS.sensor.interface ~ ' ' ~ PCAPBPF|join(" "), cwd='/root') %}    <======================
   {% if PCAP_BPF_CALC['retcode'] == 0 %}
      {% set PCAP_BPF_STATUS = 1 %}
      {% set STENO_BPF_COMPILED =  ",\\\"--filter=" + PCAP_BPF_CALC['stdout'] + "\\\""  %}
   {% endif %}
{% endif %}
---

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions