Generic solution for onlycap issues
[platform/core/test/security-tests.git] / src / ckm-integration / process-settings / change-smack.h
index ac51199..937c101 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
+ *  Copyright (c) 2015 - 2019 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
 /*
  * @file       change-smack.h
  * @author     Bartlomiej Grzelewski (b.grzelewski@samsung.com)
+ * @author     Krzysztof Jackiewicz (k.jackiewicz@samsung.com)
  * @version    1.0
  */
 #pragma once
 
 #include <string>
+#include <memory>
 
 #include <process-settings/policy.h>
 
+class ScopedProcessLabel;
+
 namespace ProcessSettings {
 
 class ChangeSmack {
@@ -34,7 +38,7 @@ public:
     virtual ~ChangeSmack();
 private:
     const Policy &m_policy;
-    std::string m_originalLabel;
+    std::unique_ptr<ScopedProcessLabel> m_processLabel;
 };
 
 } // namespace ProcessSettings