From 332e2eac1864877be38cb5b7e473c8335b910cb5 Mon Sep 17 00:00:00 2001 From: sum12 Date: Tue, 20 Jul 2021 16:47:48 +0200 Subject: [PATCH] bcc/tools: update mountsnoop's based on comment in containers.py this patch just replicates the fix done in ef330a393be4b472627b1bfa7fbe50934e519e25 --- tools/mountsnoop.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/mountsnoop.py b/tools/mountsnoop.py index 667ea35c..250927f5 100755 --- a/tools/mountsnoop.py +++ b/tools/mountsnoop.py @@ -33,7 +33,10 @@ bpf_text = r""" * real struct, but we don't need them, and they're more likely to change. */ struct mnt_namespace { + // This field was removed in https://github.com/torvalds/linux/commit/1a7b8969e664d6af328f00fe6eb7aabd61a71d13 + #if LINUX_VERSION_CODE < KERNEL_VERSION(5, 11, 0) atomic_t count; + #endif struct ns_common ns; }; -- 2.34.1