Lines Matching defs:property
46 int SetAppAccessToken(const AppSpawnMgr *content, const AppSpawningCtx *property)
51 reinterpret_cast<AppSpawnMsgAccessToken *>(GetAppProperty(property, TLV_ACCESS_TOKEN_INFO));
53 "No access token in msg %{public}s", GetProcessName(property));
55 if (IsNWebSpawnMode(content) || IsIsolatedNativeSpawnMode(content, property)) {
63 "set access token id failed, ret: %{public}d %{public}s", ret, GetProcessName(property));
64 APPSPAWN_LOGV("SetAppAccessToken success for %{public}s", GetProcessName(property));
68 int SetSelinuxConNweb(const AppSpawnMgr *content, const AppSpawningCtx *property)
73 reinterpret_cast<char *>(GetAppPropertyExt(property, MSG_EXT_NAME_PROCESS_TYPE, &len));
85 int SetSelinuxCon(const AppSpawnMgr *content, const AppSpawningCtx *property)
88 APPSPAWN_LOGV("SetSelinuxCon IsDeveloperModeOn %{public}d", IsDeveloperModeOn(property));
89 if (GetAppSpawnMsgType(property) == MSG_SPAWN_NATIVE_PROCESS) {
90 if (!IsDeveloperModeOn(property)) {
98 return SetSelinuxConNweb(content, property);
102 } else if (IsIsolatedNativeSpawnMode(content, property)) {
106 reinterpret_cast<AppSpawnMsgDomainInfo *>(GetAppProperty(property, TLV_DOMAIN_INFO));
108 "No domain info in req form %{public}s", GetProcessName(property));
112 hapDomainInfo.packageName = GetBundleName(property);
114 if (CheckAppMsgFlagsSet(property, APP_FLAGS_DEBUGGABLE)) {
117 if (CheckAppMsgFlagsSet(property, APP_FLAGS_DLP_MANAGER)) {
120 if (CheckAppMsgFlagsSet(property, APP_FLAGS_ISOLATED_SANDBOX)) {
124 if (CheckAppMsgFlagsSet(property, APP_FLAGS_ASANENABLED)) {
128 "Set domain context failed, ret: %{public}d %{public}s", ret, GetProcessName(property));
129 APPSPAWN_LOGV("SetSelinuxCon success for %{public}s", GetProcessName(property));
160 int SetSeccompFilter(const AppSpawnMgr *content, const AppSpawningCtx *property)
163 APPSPAWN_CHECK(property != nullptr, return 0, "property is NULL");
170 reinterpret_cast<char *>(GetAppPropertyExt(property, MSG_EXT_NAME_PROCESS_TYPE, &len));
187 if (CheckAppPermissionFlagSet(property, static_cast<uint32_t>(index)) != 0) {
193 if (CheckAppSpawnMsgFlag(property->message, TLV_MSG_FLAGS, APP_FLAGS_ISOLATED_SANDBOX) != 0) {
201 APPSPAWN_LOGV("SetSeccompFilter success for %{public}s", GetProcessName(property));
206 int SetInternetPermission(const AppSpawningCtx *property)
209 reinterpret_cast<AppSpawnMsgInternetInfo *>(GetAppProperty(property, TLV_INTERNET_INFO));
211 "No tlv internet permission info in req form %{public}s", GetProcessName(property));
219 void InitAppCommonEnv(const AppSpawningCtx *property)
221 AppDacInfo *appInfo = reinterpret_cast<AppDacInfo *>(GetAppProperty(property, TLV_DAC_INFO));
233 int32_t SetEnvInfo(const AppSpawnMgr *content, const AppSpawningCtx *property)
235 InitAppCommonEnv(property);
238 char *envStr = reinterpret_cast<char *>(GetAppPropertyExt(property, "AppEnv", &size));