Change-Id: I31db65fc6162bea8f70baacc6c95c70956311e9c
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
if (!::SetPackageDirectoryOwnerAndPermissions(path / pkgid, uid))
return false;
+ if (shareddata) {
+ std::vector<std::string> shared_dirs(kSharedDataEntries);
+ for (auto entry : shared_dirs) {
+ bf::path shared_dst = path / entry / pkgid;
+ if (!::SetPackageDirectoryOwnerAndPermissions(shared_dst, uid))
+ return false;
+ }
+ }
+
std::string error_message;
if (!RegisterSecurityContextForPath(pkgid, path / pkgid, uid, false,
&error_message)) {