We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 56690e8 + 2986359 commit 117c5caCopy full SHA for 117c5ca
pkg/plugin/filter/filter_map_linux.go
@@ -11,6 +11,7 @@ import (
11
"sync"
12
13
"github.com/cilium/ebpf"
14
+ "github.com/cilium/ebpf/rlimit"
15
"github.com/microsoft/retina/pkg/log"
16
plugincommon "github.com/microsoft/retina/pkg/plugin/common"
17
"github.com/microsoft/retina/pkg/utils"
@@ -44,6 +45,12 @@ func Init() (*FilterMap, error) {
44
45
return f, nil
46
}
47
48
+ // Allow the current process to lock memory for eBPF resources.
49
+ if err := rlimit.RemoveMemlock(); err != nil {
50
+ f.l.Error("RemoveMemlock failed", zap.Error(err))
51
+ return f, err
52
+ }
53
+
54
obj := &filterObjects{} //nolint:typecheck
55
err := loadFilterObjects(obj, &ebpf.CollectionOptions{ //nolint:typecheck
56
Maps: ebpf.MapOptions{
0 commit comments