return false;
}
+ // set the database permission to solve the case of using the backup database
+ // which the smack label is not applied properly
+ if (SetDbPermission(parser_db_) != 0) {
+ LOG(ERROR) << "SetDbPermission at parser_db failed";
+ return -1;
+ }
+
+ if (SetDbPermission(cert_db_) != 0) {
+ LOG(ERROR) << "SetDbPermission at cert_db failed";
+ return -1;
+ }
+
PkgUpgraderFactory factory;
auto list = factory.MakeList(finder);
return -1;
}
+ if (SetDbPermission(dest_path) != 0)
+ return -1;
+
RemoveBackupFlag(src_path);
return 0;
if (BackupFile(src_path, dest_path) != 0)
return -1;
- if (SetDbPermission(dest_path) != 0)
- return -1;
-
return 0;
}