Skip to content

Commit f7ff8d6

Browse files
Do not load DNS probes (#228)
Do not load or test DNS probes
1 parent 23f0450 commit f7ff8d6

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

non-GPL/Events/Lib/EbpfEvents.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,7 @@ static int probe_set_autoload(struct btf *btf, struct EventProbe_bpf *obj, uint6
417417
return err;
418418
}
419419

420+
#if 0 // Do not load DNS probes
420421
static int probe_attach_cgroup(struct EventProbe_bpf *obj)
421422
{
422423
int cgroup_fd;
@@ -446,6 +447,7 @@ static int probe_attach_cgroup(struct EventProbe_bpf *obj)
446447

447448
return 0;
448449
}
450+
#endif
449451

450452
static bool system_has_bpf_tramp(void)
451453
{
@@ -790,11 +792,13 @@ int ebpf_event_ctx__new(struct ebpf_event_ctx **ctx, ebpf_event_handler_fn cb, u
790792
goto out_destroy_probe;
791793
}
792794

795+
#if 0 // Do not load DNS probes
793796
err = probe_attach_cgroup(probe);
794797
if (err != 0) {
795798
verbose("probe_attach_cgroup: %d\n", err);
796799
goto out_destroy_probe;
797800
}
801+
#endif
798802

799803
if (!ctx)
800804
goto out_destroy_probe;

testing/testrunner/ebpf_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,7 @@ func TestEbpf(t *testing.T) {
773773
{"Tcpv4ConnectionAttempt", Tcpv4ConnectionAttempt, []string{"--net-conn-attempt"}, false},
774774
{"Tcpv4ConnectionAccept", Tcpv4ConnectionAccept, []string{"--net-conn-accept"}, false},
775775
{"Tcpv4ConnectionClose", Tcpv4ConnectionClose, []string{"--net-conn-close"}, false},
776-
{"DNSMonitor", DNSMonitor, []string{"--net-conn-dns-pkt"}, false},
776+
//{"DNSMonitor", DNSMonitor, []string{"--net-conn-dns-pkt"}, false},
777777
{"Ptrace", Ptrace, []string{"--process-ptrace"}, false},
778778
{"Shmget", Shmget, []string{"--process-shmget"}, false},
779779
{"MemfdCreate", MemfdCreate, []string{"--process-memfd-create", "--process-exec"}, false},

0 commit comments

Comments
 (0)