equal
deleted
inserted
replaced
45 #include "epos_csuplserverstartuprequest.h" |
45 #include "epos_csuplserverstartuprequest.h" |
46 #include "epos_csupldeinitrequestor.h" |
46 #include "epos_csupldeinitrequestor.h" |
47 #include "epos_mconnectobserver.h" |
47 #include "epos_mconnectobserver.h" |
48 |
48 |
49 const TSecureId KNetworkGatewaySID = 0x10281D46; |
49 const TSecureId KNetworkGatewaySID = 0x10281D46; |
50 const TSecureId KLocationMonitorSID = 0x102869DF; |
|
51 |
50 |
52 // CONSTANTS |
51 // CONSTANTS |
53 //#ifdef _DEBUG |
52 //#ifdef _DEBUG |
54 _LIT(KTraceFileName, "SUPL_GW::epos_csuplserver.cpp"); |
53 _LIT(KTraceFileName, "SUPL_GW::epos_csuplserver.cpp"); |
55 //#endif |
54 //#endif |
263 { |
262 { |
264 User::Leave(KErrNotSupported); |
263 User::Leave(KErrNotSupported); |
265 } |
264 } |
266 |
265 |
267 //if secure id is not equal to KSuplWapSecureId or KSuplWapSecureId, then perform capability check |
266 //if secure id is not equal to KSuplWapSecureId or KSuplWapSecureId, then perform capability check |
268 if ((aMessage.SecureId() != KSuplWapSecureId && aMessage.SecureId() != KNetworkGatewaySID && aMessage.SecureId() != KLocationMonitorSID)) |
267 if ((aMessage.SecureId() != KSuplWapSecureId && aMessage.SecureId() != KNetworkGatewaySID && aMessage.SecureId() != 0x102869DF)) |
269 { |
268 { |
270 if (!aMessage.HasCapability(ECapabilityCommDD)) |
269 if (!aMessage.HasCapability(ECapabilityCommDD)) |
271 { |
270 { |
272 DEBUG_TRACE("CSuplServer::Invalid UID", __LINE__) |
271 DEBUG_TRACE("CSuplServer::Invalid UID", __LINE__) |
273 User::Leave(KErrPermissionDenied); |
272 User::Leave(KErrPermissionDenied); |
321 TBool isNetworkGateway = allowNetworkGatewayPolicy().CheckPolicy(aMessage); |
320 TBool isNetworkGateway = allowNetworkGatewayPolicy().CheckPolicy(aMessage); |
322 |
321 |
323 static _LIT_SECURITY_POLICY_S0(allowSuplWapPolicy, KSuplWapSecureId); |
322 static _LIT_SECURITY_POLICY_S0(allowSuplWapPolicy, KSuplWapSecureId); |
324 TBool isSuplWap = allowSuplWapPolicy().CheckPolicy(aMessage); |
323 TBool isSuplWap = allowSuplWapPolicy().CheckPolicy(aMessage); |
325 |
324 |
326 static _LIT_SECURITY_POLICY_S0(allowlocationserverPolicy, KLocationMonitorSID); |
325 static _LIT_SECURITY_POLICY_S0(allowlocationserverPolicy, 0x102869DF); |
327 TBool islocationserver = allowlocationserverPolicy().CheckPolicy(aMessage); |
326 TBool islocationserver = allowlocationserverPolicy().CheckPolicy(aMessage); |
328 |
327 |
329 //Check if the request was made by one of the allowed processes else check for required capability |
328 //Check if the request was made by one of the allowed processes else check for required capability |
330 if (!isNetworkGateway && !isSuplWap && !islocationserver) |
329 if (!isNetworkGateway && !isSuplWap && !islocationserver) |
331 { |
330 { |