m_context.locations->getPackageInstallationDir());
}
+ /* for prealod */
+ if (m_context.mode.installTime == InstallMode::InstallTime::PRELOAD &&
+ m_context.mode.extension != InstallMode::ExtensionType::DIR)
+ {
+ if (PC_OPERATION_SUCCESS != app_setup_path(m_pkgId,
+ m_context.locations->getUserDataRootDir().c_str(),
+ APP_PATH_ANY_LABEL, "_")) {
+ }
+ }
+
/* res directory */
std::string resDir = m_context.locations->getPackageInstallationDir() +
"/res";
LogWarning("Add label to " << m_context.locations->getPrivateStorageDir());
}
- /* for prealod */
- if (m_context.mode.installTime == InstallMode::InstallTime::PRELOAD &&
- m_context.mode.extension != InstallMode::ExtensionType::DIR)
- {
- if (PC_OPERATION_SUCCESS != app_setup_path(m_pkgId,
- m_context.locations->getUserDataRootDir().c_str(),
- APP_PATH_GROUP_RW, "_")) {
- }
- }
-
/* tmp directory */
if (PC_OPERATION_SUCCESS != app_setup_path(m_pkgId,
m_context.locations->getPrivateTempStorageDir().c_str(),
LogInfo("----------------> SMACK:\
Jobs::WidgetInstall::TaskSmack::StepAbortSmack()");
#ifdef WRT_SMACK_ENABLED
- /* TODO :
- std::string id = DPL::ToUTF8String(m_context.widgetConfig.tzAppid);
- char* appId = NULL;
- appId = (char*)calloc(1, id.length() + 1);
- snprintf(appId, id.length() + 1, "%s", id.c_str());
- */
if (PC_OPERATION_SUCCESS != app_revoke_permissions(m_pkgId)) {
LogWarning("failure in revoking smack permissions");
bool TaskSmack::setLabelForSharedDir(const char* pkgId)
{
- /* shared/res directory */
+ /* /shared directory */
+ if (PC_OPERATION_SUCCESS != app_setup_path(m_pkgId,
+ m_context.locations->getSharedRootDir().c_str(),
+ APP_PATH_ANY_LABEL, "_")) {
+ LogWarning("Add label to " << m_context.locations->getUserDataRootDir());
+ }
+
+ /* /shared/res directory */
if (PC_OPERATION_SUCCESS != app_setup_path(m_pkgId,
m_context.locations->getSharedResourceDir().c_str(),
APP_PATH_ANY_LABEL, "_")) {
LogWarning("Add label to " << m_context.locations->getSharedResourceDir());
}
- /* shared/trusted directory */
+ /* /shared/trusted directory */
CertificatePtr rootCert = m_context.wacSecurity.getAuthorCertificatePtr();
if (rootCert.Get() != NULL) {
ValidationCore::Crypto::Hash::SHA1 sha1;
}
}
- /* shared/data directory */
+ /* /shared/data directory */
if (PC_OPERATION_SUCCESS != app_setup_path(m_pkgId,
m_context.locations->getSharedDataDir().c_str(),
APP_PATH_PUBLIC_RO)) {