mirror of
https://gitee.com/openharmony/startup_appspawn
synced 2024-11-30 10:40:33 +00:00
媒体库添加gid
Signed-off-by: zhangxiaoliang25 <zhangxiaoliang25@huawei.com>
This commit is contained in:
parent
6663aed242
commit
381e75d43d
@ -267,8 +267,8 @@ static void HandleSpecial(AppSpawnClientExt *appProperty)
|
||||
for (size_t i = 0; i < sizeof(specialBundleNames) / sizeof(specialBundleNames[0]); i++) {
|
||||
if (strcmp(appProperty->property.bundleName, specialBundleNames[i]) == 0) {
|
||||
if (appProperty->property.gidCount < APP_MAX_GIDS) {
|
||||
appProperty->property.gidTable[appProperty->property.gidCount] = GID_USER_DATA_RW;
|
||||
appProperty->property.gidCount++;
|
||||
appProperty->property.gidTable[appProperty->property.gidCount++] = GID_USER_DATA_RW;
|
||||
appProperty->property.gidTable[appProperty->property.gidCount++] = GID_FILE_ACCESS;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user