summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2017-09-06 08:58:29 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2017-09-07 09:44:00 +0200
commitcbde33f87ba335a078933dfe822e12024b29316c (patch)
tree6dd8f0be15966459d3f01c760f348bd42be5d785
parent6120bbbd2cbd1f06904f887957d92ac740631c55 (diff)
Improve isolation of bindings
Adding this flag will avoid potential conflict with previously loaded bindings. Change-Id: Iae42a68fa4750d107895dc01045aac7b885759f7 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-rw-r--r--src/afb-api-so.c2
1 files changed, 1 insertions, 1 deletions
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());