1 /* 2016, Copyright © Intel Coporation, license APACHE-2.0, see LICENSE file */
2 // Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
3 // Use of this source code is governed by a apache 2.0 license that can be
4 // found in the LICENSE file.
6 #ifndef COMMON_STEP_FILESYSTEM_STEP_CHANGE_OWNERSHIP_AND_PERMISSION_H_
7 #define COMMON_STEP_FILESYSTEM_STEP_CHANGE_OWNERSHIP_AND_PERMISSION_H_
9 #include <manifest_parser/utils/logging.h>
11 #include "common/installer_context.h"
13 #include "common/step/step.h"
15 namespace common_installer {
16 namespace filesystem {
19 * \brief step responsible for changing ownership from system uid to actual user.
22 class StepChangeOwnershipAndPermission : public Step {
26 explicit StepChangeOwnershipAndPermission(InstallerContext* context,
29 Status process() override;
30 Status clean() override { return Status::OK; }
31 Status undo() override { return Status::OK; }
32 Status precheck() override;
36 STEP_NAME(ChangeOwnershipAndPermission)
39 } // namespace filesystem
40 } // namespace common_installer
42 #endif // COMMON_STEP_FILESYSTEM_STEP_CHANGE_OWNERSHIP_AND_PERMISSION_H_