From cbde33f87ba335a078933dfe822e12024b29316c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Bollo?= Date: Wed, 6 Sep 2017 08:58:29 +0200 Subject: [PATCH] Improve isolation of bindings MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Adding this flag will avoid potential conflict with previously loaded bindings. Change-Id: Iae42a68fa4750d107895dc01045aac7b885759f7 Signed-off-by: José Bollo --- src/afb-api-so.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/afb-api-so.c b/src/afb-api-so.c index cfa992e8..3588e163 100644 --- a/src/afb-api-so.c +++ b/src/afb-api-so.c @@ -65,7 +65,7 @@ static int load_binding(const char *path, int force, struct afb_apiset *apiset) // This is a loadable library let's check if it's a binding rc = -!!force; - handle = safe_dlopen(path, RTLD_NOW | RTLD_LOCAL); + handle = safe_dlopen(path, RTLD_NOW | RTLD_LOCAL | RTLD_DEEPBIND); if (handle == NULL) { if (force) ERROR("binding [%s] not loadable: %s", path, dlerror()); -- 2.16.6