From 09e7d60c0adf0e0e82e994e7c98b0ea622473353 Mon Sep 17 00:00:00 2001 From: Ofek Shaked <32914127+oshaked1@users.noreply.github.com> Date: Wed, 11 Dec 2024 18:54:37 +0200 Subject: [PATCH] Added security_path_notify test to PR workflow (#3926) --- .github/workflows/pr.yaml | 1 + tests/e2e-inst-test.sh | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 642e53f5039d..6fd0b4e7d939 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -75,6 +75,7 @@ env: PROCTREE_DATA_SOURCE DNS_DATA_SOURCE WRITABLE_DATA_SOURCE + SECURITY_PATH_NOTIFY SET_FS_PWD SUSPICIOUS_SYSCALL_SOURCE jobs: diff --git a/tests/e2e-inst-test.sh b/tests/e2e-inst-test.sh index d73ff8b74a5e..39a06395ee02 100755 --- a/tests/e2e-inst-test.sh +++ b/tests/e2e-inst-test.sh @@ -122,6 +122,12 @@ for TEST in $TESTS; do fi "${TESTS_DIR}"/ftrace_hook.sh ;; + SECURITY_PATH_NOTIFY) + if ! grep -qw "security_path_notify" /proc/kallsyms; then + info "skip security_path_notify test on kernel $(uname -r) (security hook doesn't exist)" + continue + fi + ;; SUSPICIOUS_SYSCALL_SOURCE) if cat /proc/kallsyms | grep -qP "trace.*vma_store"; then info "skip suspicious_syscall_source test on kernel $(uname -r) (VMAs stored in maple tree)"