Skip to content

Commit 8af5def

Browse files
committed
build RASP C++ components using vcpkg
1 parent 6ea69f4 commit 8af5def

File tree

97 files changed

+5310
-4244
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+5310
-4244
lines changed

.github/workflows/Elkeid.yml

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ jobs:
1313
build:
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v2
16+
- uses: actions/checkout@v3
1717
with:
1818
submodules: recursive
1919

2020
- name: Set up Go
21-
uses: actions/setup-go@v2
21+
uses: actions/setup-go@v4
2222
with:
2323
go-version: 1.18
2424

@@ -34,12 +34,25 @@ jobs:
3434
- name: Build RASP
3535
run: |
3636
curl -fsSL https://lf3-static.bytednsdoc.com/obj/eden-cn/laahweh7uhwbps/php-headers.tar.gz | tar -xz -C rasp/php
37-
docker run --rm --pull=always -v $(pwd):/Elkeid -e MAKEFLAGS="-j$(nproc)" hackerl/rasp-toolchain make -C /Elkeid/rasp build STATIC=TRUE PY_PREBUILT=TRUE CC=/opt/x86_64-linux-musl-1.2.2/bin/x86_64-linux-musl-gcc CXX=/opt/x86_64-linux-musl-1.2.2/bin/x86_64-linux-musl-g++ LD=/opt/x86_64-linux-musl-1.2.2/bin/x86_64-linux-musl-ld CARGO_TARGET_X86_64_UNKNOWN_LINUX_MUSL_LINKER=/opt/x86_64-linux-musl-1.2.2/bin/x86_64-linux-musl-ld GNU_CC=/opt/gcc-10.4.0/bin/gcc GNU_CXX=/opt/gcc-10.4.0/bin/g++ PHP_HEADERS=/Elkeid/rasp/php/php-headers PYTHON2_INCLUDE=/usr/local/include/python2.7 PYTHON3_INCLUDE=/usr/local/include/python3.6m
37+
docker run --rm --pull=always -v $(pwd):/Elkeid hackerl/rasp-toolchain \
38+
make -C /Elkeid/rasp \
39+
STATIC=TRUE \
40+
PY_PREBUILT=TRUE \
41+
CC=/opt/x86_64-linux-musl-native/bin/x86_64-linux-musl-gcc \
42+
CXX=/opt/x86_64-linux-musl-native/bin/x86_64-linux-musl-g++ \
43+
LD=/opt/x86_64-linux-musl-native/bin/x86_64-linux-musl-ld \
44+
CARGO_TARGET_X86_64_UNKNOWN_LINUX_MUSL_LINKER=/opt/x86_64-linux-musl-native/bin/ld \
45+
GNU_CC=/opt/gcc-10.4.0/bin/gcc \
46+
GNU_CXX=/opt/gcc-10.4.0/bin/g++ \
47+
PHP_HEADERS=/Elkeid/rasp/php/php-headers \
48+
PYTHON2_INCLUDE=/usr/include/python2.7 \
49+
PYTHON3_INCLUDE=/usr/include/python3.6m \
50+
-j$(nproc)
3851
3952
- name: Upload RASP
4053
uses: actions/upload-artifact@v3
4154
with:
4255
name: rasp
4356
path: |
44-
rasp/rasp_*.tar.gz
45-
rasp/debug.tar.gz
57+
rasp/rasp-*.tar.gz
58+
rasp/SHA256SUMS

.github/workflows/Elkeid_plugin_scanner_build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
build:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v3
1414
with:
1515
submodules: recursive
1616

.github/workflows/Elkeid_rasp_release.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,25 @@ jobs:
1616
- name: Build
1717
run: |
1818
curl -fsSL https://lf3-static.bytednsdoc.com/obj/eden-cn/laahweh7uhwbps/php-headers.tar.gz | tar -xz -C rasp/php
19-
docker run --rm --pull=always -v $(pwd):/Elkeid -v /tmp/cache/gradle:/root/.gradle -v /tmp/cache/librasp:/Elkeid/rasp/librasp/target -v /tmp/cache/rasp_server:/Elkeid/rasp/rasp_server/target -v /tmp/cache/plugin:/Elkeid/rasp/plugin/target -e MAKEFLAGS="-j$(nproc)" hackerl/rasp-toolchain make -C /Elkeid/rasp build STATIC=TRUE PY_PREBUILT=TRUE CC=/opt/x86_64-linux-musl-1.2.2/bin/x86_64-linux-musl-gcc CXX=/opt/x86_64-linux-musl-1.2.2/bin/x86_64-linux-musl-g++ LD=/opt/x86_64-linux-musl-1.2.2/bin/x86_64-linux-musl-ld CARGO_TARGET_X86_64_UNKNOWN_LINUX_MUSL_LINKER=/opt/x86_64-linux-musl-1.2.2/bin/x86_64-linux-musl-ld GNU_CC=/opt/gcc-10.4.0/bin/gcc GNU_CXX=/opt/gcc-10.4.0/bin/g++ PHP_HEADERS=/Elkeid/rasp/php/php-headers PYTHON2_INCLUDE=/usr/local/include/python2.7 PYTHON3_INCLUDE=/usr/local/include/python3.6m VERSION=${GITHUB_REF#refs/*/rasp-v}
19+
docker run --rm --pull=always -v $(pwd):/Elkeid hackerl/rasp-toolchain \
20+
make -C /Elkeid/rasp \
21+
STATIC=TRUE \
22+
PY_PREBUILT=TRUE \
23+
CC=/opt/x86_64-linux-musl-native/bin/x86_64-linux-musl-gcc \
24+
CXX=/opt/x86_64-linux-musl-native/bin/x86_64-linux-musl-g++ \
25+
LD=/opt/x86_64-linux-musl-native/bin/x86_64-linux-musl-ld \
26+
CARGO_TARGET_X86_64_UNKNOWN_LINUX_MUSL_LINKER=/opt/x86_64-linux-musl-native/bin/ld \
27+
GNU_CC=/opt/gcc-10.4.0/bin/gcc \
28+
GNU_CXX=/opt/gcc-10.4.0/bin/g++ \
29+
PHP_HEADERS=/Elkeid/rasp/php/php-headers \
30+
PYTHON2_INCLUDE=/usr/include/python2.7 \
31+
PYTHON3_INCLUDE=/usr/include/python3.6m \
32+
VERSION=${GITHUB_REF#refs/*/rasp-v} \
33+
-j$(nproc)
2034
2135
- name: Release
2236
uses: softprops/action-gh-release@v1
2337
with:
2438
files: |
25-
rasp/rasp_*.tar.gz
26-
rasp/debug.tar.gz
39+
rasp/rasp-*.tar.gz
40+
rasp/SHA256SUMS

.gitmodules

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,9 @@
1010
[submodule "rasp/util-linux"]
1111
path = rasp/util-linux
1212
url = https://github.com/karelzak/util-linux.git
13-
[submodule "rasp/golang/tiny-regex-c"]
14-
path = rasp/golang/tiny-regex-c
15-
url = https://github.com/Hackerl/tiny-regex-c
1613
[submodule "plugins/scanner/clamav-mussels-cookbook"]
1714
path = plugins/scanner/clamav-mussels-cookbook
1815
url = https://github.com/kulukami/clamav-mussels-cookbook.git
19-
[submodule "rasp/php/tiny-regex-c"]
20-
path = rasp/php/tiny-regex-c
21-
url = https://github.com/Hackerl/tiny-regex-c
22-
[submodule "rasp/python/python-probe/rasp/probe/tiny-regex-c"]
23-
path = rasp/python/python-probe/rasp/probe/tiny-regex-c
24-
url = https://github.com/Hackerl/tiny-regex-c
2516
[submodule "rasp/golang-ebpf/ebpf/libbpf"]
2617
path = rasp/golang-ebpf/ebpf/libbpf
2718
url = https://github.com/libbpf/libbpf

0 commit comments

Comments
 (0)