prepare_app: return errcode on CheckProperDrop failure 37/222837/3
authorKonrad Lipinski <k.lipinski2@samsung.com>
Mon, 20 Jan 2020 12:16:09 +0000 (13:16 +0100)
committerTomasz Swierczek <t.swierczek@samsung.com>
Thu, 23 Jan 2020 06:54:49 +0000 (06:54 +0000)
Change-Id: I3a8953650c1dcee4d2cbe6b4171cd2bb3e84993e

src/client/client-security-manager.cpp

index 73288f9a18efbf5975679950641fd2c7ac7af14a..de93c37589b0aa5a31125dd320be987a98a2c84f 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  Copyright (c) 2000 - 2019 Samsung Electronics Co., Ltd All Rights Reserved
+ *  Copyright (c) 2000-2020 Samsung Electronics Co., Ltd. All rights reserved
  *
  *  Contact: Rafal Krypa <r.krypa@samsung.com>
  *
@@ -955,11 +955,11 @@ int security_manager_prepare_app(const char *app_name)
             cpd.getThreads();
             if (!cpd.checkThreads()) {
                 LogError("Privileges haven't been properly dropped for the whole process of application " << app_name);
-                return ret;
+                ret = SECURITY_MANAGER_ERROR_UNKNOWN;
             }
         } catch (const SecurityManager::Exception &e) {
             LogError("Error while checking privileges of the process for application " << app_name << ": " << e.DumpToString());
-            return ret;
+            ret = SECURITY_MANAGER_ERROR_UNKNOWN;
         }
 
         return ret;