From 56845ae67885fb60f6d4a187dca0215ba31e38ca Mon Sep 17 00:00:00 2001
From: Ilyes Gouta <ilyes.gouta@st.com>
Date: Fri, 6 Sep 2013 15:44:05 -0400
Subject: [PATCH 2/2] fusion: object: initialize a shared/global skirmish for
 the object pool

And rely on the fusion permissions for security.

Signed-off-by: Ilyes Gouta <ilyes.gouta@st.com>
---
 lib/fusion/object.c |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/lib/fusion/object.c b/lib/fusion/object.c
index 55ec933..66bd9b5 100644
--- a/lib/fusion/object.c
+++ b/lib/fusion/object.c
@@ -193,13 +193,9 @@ fusion_object_pool_create( const char             *name,
      }
 
      /* Initialize the pool lock. */
-     if (fusion_config->secure_fusion)
-          fusion_skirmish_init2( &pool->lock, name, world, true );
-     else {
-          fusion_skirmish_init2( &pool->lock, name, world, false );
+     fusion_skirmish_init2( &pool->lock, name, world, false );
 
-          fusion_skirmish_add_permissions( &pool->lock, 0, FUSION_SKIRMISH_PERMIT_PREVAIL | FUSION_SKIRMISH_PERMIT_DISMISS );
-     }
+     fusion_skirmish_add_permissions( &pool->lock, 0, FUSION_SKIRMISH_PERMIT_PREVAIL | FUSION_SKIRMISH_PERMIT_DISMISS );
 
      /* Fill information. */
      pool->shared       = shared;
-- 
1.7.7.6

