mirror of
https://gitee.com/openharmony/bundlemanager_bundle_framework
synced 2024-11-27 01:11:15 +00:00
!5270 CreateBundleDataDir接口UID校验修改
Merge pull request !5270 from 赵淦/master
This commit is contained in:
commit
10aa2976b8
@ -6137,6 +6137,7 @@ ErrCode BundleDataMgr::CreateBundleDataDir(int32_t userId) const
|
||||
createDirParam.apl = info.GetAppPrivilegeLevel();
|
||||
createDirParam.isPreInstallApp = info.GetIsPreInstallApp();
|
||||
createDirParam.debug = info.GetBaseApplicationInfo().debug;
|
||||
createDirParam.createDirFlag = CreateDirFlag::CREATE_DIR_UNLOCKED;
|
||||
createDirParams.emplace_back(createDirParam);
|
||||
}
|
||||
auto res = InstalldClient::GetInstance()->CreateBundleDataDirWithVector(createDirParams);
|
||||
|
@ -3310,7 +3310,7 @@ ErrCode BundleMgrHostImpl::SetAdditionalInfo(const std::string &bundleName, cons
|
||||
|
||||
ErrCode BundleMgrHostImpl::CreateBundleDataDir(int32_t userId)
|
||||
{
|
||||
if (!BundlePermissionMgr::IsCallingUidValid(Constants::STORAGE_SERVICE_UID)) {
|
||||
if (!BundlePermissionMgr::IsCallingUidValid(Constants::ROOT_UID)) {
|
||||
APP_LOGE("IsCallingUidValid failed");
|
||||
return ERR_BUNDLE_MANAGER_PERMISSION_DENIED;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user