From 5d9363be7945ba06eac8c312f901b52618438633 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Thu, 15 Feb 2018 20:12:37 +0545 Subject: [PATCH] ansible: blacklist everything except our own namespaces Farewell, pointless roundtrips, we hardly knew ye. --- ansible_mitogen/strategy/mitogen.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/ansible_mitogen/strategy/mitogen.py b/ansible_mitogen/strategy/mitogen.py index 53321251..35777e2f 100644 --- a/ansible_mitogen/strategy/mitogen.py +++ b/ansible_mitogen/strategy/mitogen.py @@ -103,11 +103,8 @@ class StrategyModule(ansible.plugins.strategy.linear.StrategyModule): def run(self, iterator, play_context, result=0): self.router = mitogen.master.Router() - self.router.responder.blacklist('OpenSSL') - self.router.responder.blacklist('urllib3') - self.router.responder.blacklist('requests') - self.router.responder.blacklist('systemd') - self.router.responder.blacklist('selinux') + self.router.responder.whitelist_prefix('ansible') + self.router.responder.whitelist_prefix('ansible_mitogen') self.listener = mitogen.unix.Listener(self.router) os.environ['LISTENER_SOCKET_PATH'] = self.listener.path