From 7d2a4e9d4746b963ff7fb285f21175e7559bc306 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20=C5=BBenczykowski?= Date: Sun, 20 Aug 2023 16:48:00 +0000 Subject: [PATCH] TrafficController - trivialize dump() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The goal is to be able to remove getMap() from BpfMap.h, as it effectively leaks (what should be an) internal fd. In practice the dump() operation isn't useful, as initMaps() and thus native_init() already guarantee all these maps have valid file descriptors. Test: TreeHugger Signed-off-by: Maciej Żenczykowski Change-Id: If89c28923d3ae030dfac0b3b0ab8b15117db3f30 --- service/native/TrafficController.cpp | 32 ---------------------- service/native/include/TrafficController.h | 2 -- 2 files changed, 34 deletions(-) diff --git a/service/native/TrafficController.cpp b/service/native/TrafficController.cpp index dd5b01e738..38283897f6 100644 --- a/service/native/TrafficController.cpp +++ b/service/native/TrafficController.cpp @@ -576,44 +576,12 @@ void TrafficController::setPermissionForUids(int permission, const std::vector