@cryptotaxi247 / netdata-1 / commits / 2d2a270ec

Add CAP_SYS_RESOURCE to capability bounding set. (#9569)

This mitigates failures in the eBPF plugin. The issue is a `setrlimi()` call we're making to allow us to call `memlock()`. The proper fix here is dependent on whether we can prove that we actually need to call `memlock()` or not (I suspect we do not _need_ to but it improves measurement accuracy, in which case it should be optional). If we can, then this is also a fix and not a mitigation. If we can't, then the fix is to get rid of those calls in the eBPF plugin and remove this othewise unneeded capability from our bounding set.

Austin S. Hemmelgarn committed Jul 20, 2020 at 19:59 UTC 2d2a270ec42e83ccdefa7f15ed3f8a030246645e
1 file changed +1
system/netdata.service.in
+1
@@ -51,6 +51,7 @@ CapabilityBoundingSet=CAP_FOWNER # is required for freeipmi plugin
51 CapabilityBoundingSet=CAP_SETPCAP # is required for apps, perf and slabinfo plugins
52 CapabilityBoundingSet=CAP_SYS_ADMIN # is required for perf plugin
53 CapabilityBoundingSet=CAP_SYS_PTRACE # is required for apps plugin
54 +CapabilityBoundingSet=CAP_SYS_RESOURCE # is required for ebpf plugin
55 CapabilityBoundingSet=CAP_NET_RAW # is required for fping app
56
57 # Sandboxing