-
Notifications
You must be signed in to change notification settings - Fork 876
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: probe environment set to FALCO_BPF_PROBE also at load time
Signed-off-by: Lorenzo Fontana <lo@linux.com>
- Loading branch information
Showing
5 changed files
with
28 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
diff --git a/userspace/libscap/scap.c b/userspace/libscap/scap.c | ||
index 59b04e0a..bdc311cb 100644 | ||
--- a/userspace/libscap/scap.c | ||
+++ b/userspace/libscap/scap.c | ||
@@ -52,7 +52,7 @@ limitations under the License. | ||
//#define NDEBUG | ||
#include <assert.h> | ||
|
||
-static const char *SYSDIG_BPF_PROBE_ENV = "SYSDIG_BPF_PROBE"; | ||
+static const char *SYSDIG_BPF_PROBE_ENV = "FALCO_BPF_PROBE"; | ||
|
||
// | ||
// Probe version string size | ||
@@ -171,7 +171,7 @@ scap_t* scap_open_live_int(char *error, int32_t *rc, | ||
return NULL; | ||
} | ||
|
||
- snprintf(buf, sizeof(buf), "%s/.sysdig/%s-bpf.o", home, PROBE_NAME); | ||
+ snprintf(buf, sizeof(buf), "%s/.falco/%s-bpf.o", home, PROBE_NAME); | ||
bpf_probe = buf; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters