aboutsummaryrefslogtreecommitdiff
path: root/ci/test/00_setup_env_native_asan.sh
diff options
context:
space:
mode:
authorMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2023-07-26 13:05:29 +0200
committerMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2023-08-01 17:33:36 +0200
commitfa474397b5d4235efdfc5a5ddce2d637234548a7 (patch)
treead6e3747b6d259fffe1fa9c9eb9492eb356ed3db /ci/test/00_setup_env_native_asan.sh
parentfabaa85c017467336c7f94ddd83c44935957c919 (diff)
ci: Add missing linux-headers package to ASan task
Otherwise the task will throw in skip_if_no_python_bcc. Also, adjust CI_CONTAINER_CAP for all needed permissions.
Diffstat (limited to 'ci/test/00_setup_env_native_asan.sh')
-rwxr-xr-xci/test/00_setup_env_native_asan.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/ci/test/00_setup_env_native_asan.sh b/ci/test/00_setup_env_native_asan.sh
index a5c80c2afc..dff86b1ffe 100755
--- a/ci/test/00_setup_env_native_asan.sh
+++ b/ci/test/00_setup_env_native_asan.sh
@@ -8,9 +8,11 @@ export LC_ALL=C.UTF-8
# Only install BCC tracing packages in Cirrus CI.
if [[ "${CIRRUS_CI}" == "true" ]]; then
- export BPFCC_PACKAGE="bpfcc-tools"
+ BPFCC_PACKAGE="bpfcc-tools linux-headers-$(uname --kernel-release)"
+ export CI_CONTAINER_CAP="--privileged -v /sys/kernel:/sys/kernel:rw"
else
- export BPFCC_PACKAGE=""
+ BPFCC_PACKAGE=""
+ export CI_CONTAINER_CAP="--cap-add SYS_PTRACE" # If run with (ASan + LSan), the container needs access to ptrace (https://github.com/google/sanitizers/issues/764)
fi
export CONTAINER_NAME=ci_native_asan