forked from pool/velociraptor
Jeff Mahoney
d5702730fe
- Remove dependency on bpftool. We use the vmlinux.h archive to provide vmlinux.h. - Restored %defattr due to SLE12 using rpm-4.11. - Fix builds in vendor code on SLE12 - Fix build in third_party/sdjournal due to older systemd on SLE12 - Added patches: - vendor-go-magic-build-fix-for-SLE12.patch - sdjournal-build-fix-for-SLE12.patch - Remove dependency on bpftool. We use the vmlinux.h archive to provide vmlinux.h. - Restored %defattr due to SLE12 using rpm-4.11. - Fix builds in vendor code on SLE12 - Fix build in third_party/sdjournal due to older systemd on SLE12 - Added patches: - vendor-go-magic-build-fix-for-SLE12.patch - sdjournal-build-fix-for-SLE12.patch OBS-URL: https://build.opensuse.org/request/show/1060070 OBS-URL: https://build.opensuse.org/package/show/security:sensor/velociraptor?expand=0&rev=35
19 lines
851 B
Diff
19 lines
851 B
Diff
From: Jeff Mahoney <jeffm@suse.com>
|
|
Subject: third_party/sdjournal: remove enums missing on SLE-12
|
|
|
|
The version of systemd on SLE-12 is older and doesn't have these enums. We
|
|
don't use them, so it's safe to remove them.
|
|
|
|
--- a/third_party/sdjournal/journal_linux.go
|
|
+++ b/third_party/sdjournal/journal_linux.go
|
|
@@ -380,9 +380,6 @@ const (
|
|
SD_JOURNAL_RUNTIME_ONLY = int(C.SD_JOURNAL_RUNTIME_ONLY)
|
|
SD_JOURNAL_SYSTEM = int(C.SD_JOURNAL_SYSTEM)
|
|
SD_JOURNAL_CURRENT_USER = int(C.SD_JOURNAL_CURRENT_USER)
|
|
- SD_JOURNAL_OS_ROOT = int(C.SD_JOURNAL_OS_ROOT)
|
|
- SD_JOURNAL_ALL_NAMESPACES = int(C.SD_JOURNAL_ALL_NAMESPACES)
|
|
- SD_JOURNAL_INCLUDE_DEFAULT_NAMESPACE = int(C.SD_JOURNAL_INCLUDE_DEFAULT_NAMESPACE)
|
|
)
|
|
|
|
// Journal event constants
|