if (m_context.widgetConfig.packagingType !=
WrtDB::PkgType::PKG_TYPE_HYBRID_WEB_APP)
{
- if (PC_OPERATION_SUCCESS != app_install(m_pkgId)) {
+ if (PC_OPERATION_SUCCESS != perm_app_install(m_pkgId)) {
free(m_pkgId);
ThrowMsg(Exceptions::NotAllowed, "Instalation failure. "
"failure in creating smack rules file.");
Jobs::WidgetInstall::TaskSmack::SmackFolderLabelingStep()");
#ifdef WRT_SMACK_ENABLED
/* /opt/usr/apps/[pkgid] directory's label is "_" */
- if (PC_OPERATION_SUCCESS != app_setup_path(m_pkgId,
+ if (PC_OPERATION_SUCCESS != perm_app_setup_path(m_pkgId,
m_context.locations->getPackageInstallationDir().c_str(),
APP_PATH_ANY_LABEL, "_")) {
LogWarning("Add label to " <<
if (m_context.mode.installTime == InstallMode::InstallTime::PRELOAD &&
m_context.mode.extension != InstallMode::ExtensionType::DIR)
{
- if (PC_OPERATION_SUCCESS != app_setup_path(m_pkgId,
+ if (PC_OPERATION_SUCCESS != perm_app_setup_path(m_pkgId,
m_context.locations->getUserDataRootDir().c_str(),
APP_PATH_ANY_LABEL, "_")) {
}
std::string resDir = m_context.locations->getPackageInstallationDir() +
"/res";
- if (PC_OPERATION_SUCCESS != app_setup_path(m_pkgId, resDir.c_str(),
+ if (PC_OPERATION_SUCCESS != perm_app_setup_path(m_pkgId, resDir.c_str(),
APP_PATH_PRIVATE)) {
LogWarning("Add label to " << resDir);
}
/* data directory */
- if (PC_OPERATION_SUCCESS != app_setup_path(m_pkgId,
+ if (PC_OPERATION_SUCCESS != perm_app_setup_path(m_pkgId,
m_context.locations->getPrivateStorageDir().c_str(),
APP_PATH_PRIVATE)) {
LogWarning("Add label to " << m_context.locations->getPrivateStorageDir());
}
/* tmp directory */
- if (PC_OPERATION_SUCCESS != app_setup_path(m_pkgId,
+ if (PC_OPERATION_SUCCESS != perm_app_setup_path(m_pkgId,
m_context.locations->getPrivateTempStorageDir().c_str(),
APP_PATH_PRIVATE))
{
}
/* bin directory */
- if (PC_OPERATION_SUCCESS != app_setup_path(m_pkgId,
+ if (PC_OPERATION_SUCCESS != perm_app_setup_path(m_pkgId,
m_context.locations->getBinaryDir().c_str(),
APP_PATH_PRIVATE)) {
LogWarning("Add label to " << m_context.locations->getBinaryDir());
}
perm_list[index] = NULL;
- if (PC_OPERATION_SUCCESS != app_enable_permissions(appId, APP_TYPE_WGT,
+ if (PC_OPERATION_SUCCESS != perm_app_enable_permissions(appId, APP_TYPE_WGT,
const_cast<const char **>(perm_list), true)) {
LogWarning("failure in contructing smack rules based on perm_list");
}
LogDebug("----------------> SMACK:\
Jobs::WidgetInstall::TaskSmack::StepRevokePrivilegeForUpdate()");
#ifdef WRT_SMACK_ENABLED
- if (PC_OPERATION_SUCCESS != app_revoke_permissions(m_pkgId)) {
+ if (PC_OPERATION_SUCCESS != perm_app_revoke_permissions(m_pkgId)) {
LogWarning("failure in revoking smack permissions");
}
#endif
Jobs::WidgetInstall::TaskSmack::StepAbortSmack()");
#ifdef WRT_SMACK_ENABLED
- if (PC_OPERATION_SUCCESS != app_revoke_permissions(m_pkgId)) {
+ if (PC_OPERATION_SUCCESS != perm_app_revoke_permissions(m_pkgId)) {
LogWarning("failure in revoking smack permissions");
}
- if (PC_OPERATION_SUCCESS != app_uninstall(m_pkgId)) {
+ if (PC_OPERATION_SUCCESS != perm_app_uninstall(m_pkgId)) {
LogWarning("failure in removing smack rules file");
}
free(m_pkgId);
bool TaskSmack::setLabelForSharedDir(const char* pkgId)
{
/* /shared directory */
- if (PC_OPERATION_SUCCESS != app_setup_path(m_pkgId,
+ if (PC_OPERATION_SUCCESS != perm_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,
+ if (PC_OPERATION_SUCCESS != perm_app_setup_path(m_pkgId,
m_context.locations->getSharedResourceDir().c_str(),
APP_PATH_ANY_LABEL, "_")) {
LogWarning("Add label to " << m_context.locations->getSharedResourceDir());
LogDebug("sha1 label string : " << sha1String);
- if (PC_OPERATION_SUCCESS != app_setup_path(m_pkgId,
+ if (PC_OPERATION_SUCCESS != perm_app_setup_path(m_pkgId,
m_context.locations->getSharedTrustedDir().c_str(),
APP_PATH_GROUP_RW, sha1String.c_str())) {
LogWarning("Add label to " << m_context.locations->getBinaryDir());
}
/* /shared/data directory */
- if (PC_OPERATION_SUCCESS != app_setup_path(m_pkgId,
+ if (PC_OPERATION_SUCCESS != perm_app_setup_path(m_pkgId,
m_context.locations->getSharedDataDir().c_str(),
APP_PATH_PUBLIC_RO)) {
LogWarning("Add label to " << m_context.locations->getSharedDataDir());