Update installation will use this value to
restore security context if needed on rollback
operation.
For now, I'm leaving one context per all installation
types.
Tizen-JIRA: TC-2482
Change-Id: If0143e9036bd2149a0a1ba1d2aa359441785540e
ContextInstaller::ContextInstaller()
: manifest_data(static_cast<manifest_x*>(calloc(1, sizeof(manifest_x)))),
+ old_manifest_data(nullptr),
uid(getuid()) {
std::string root_app_path =
ContextInstaller::~ContextInstaller() {
if (manifest_data.get())
pkgmgr_parser_free_manifest_xml(manifest_data.get());
+ if (old_manifest_data.get())
+ pkgmgr_parser_free_manifest_xml(old_manifest_data.get());
}
} // namespace common_installer
// manifest information used to generate xml file
Property<manifest_x*> manifest_data;
+ // manifest information used to revert an update
+ Property<manifest_x*> old_manifest_data;
+
// path to manifest xml file used to register data in databases
Property<boost::filesystem::path> xml_path;