From 15282e1bd6bef70cdf01d7fa5fd8a31f40c56d81 Mon Sep 17 00:00:00 2001 From: jongmyeongko Date: Fri, 27 May 2016 10:57:58 +0900 Subject: [PATCH] grant x permission to 'lib' of app directory. Change-Id: I26658f9d326ec82fecfbc7e4f5f7bc10f77a5749 Signed-off-by: jongmyeongko --- src/tpk/step/filesystem/step_grant_permission.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/tpk/step/filesystem/step_grant_permission.cc b/src/tpk/step/filesystem/step_grant_permission.cc index 56ae407..d19477f 100644 --- a/src/tpk/step/filesystem/step_grant_permission.cc +++ b/src/tpk/step/filesystem/step_grant_permission.cc @@ -60,8 +60,9 @@ ci::Step::Status StepTpkGrantPermission::process() { } if (bf::is_directory(path) && path.filename() == "lib") { - auto permission = bf::perms::owner_read | bf::perms::owner_write | - bf::perms::group_read | bf::perms::others_read; + auto permission = bf::perms::owner_all | + bf::perms::group_read | bf::perms::group_exe | + bf::perms::others_read | bf::perms::others_exe; if (!ci::SetDirPermissions(path, permission)) { LOG(ERROR) << "Grant permission error" << " path: " << path << " permission: " << permission; @@ -71,6 +72,8 @@ ci::Step::Status StepTpkGrantPermission::process() { boost::make_iterator_range(bf::directory_iterator(path), {})) { auto path = entry.path(); if (bf::is_regular_file(path)) { + auto permission = bf::perms::owner_read | bf::perms::owner_write | + bf::perms::group_read | bf::perms::others_read; if (!ci::SetDirPermissions(path, permission)) { LOG(ERROR) << "Grant permission error" << " path: " << path << " permission: " << permission; -- 2.7.4