# HG changeset patch
# User hgs
# Date 1285340231 -19800
# Node ID 5237465237e3d6af07da24e641072a155fdfe0d6
# Parent 08c8318ec9cb2dea9692dd7951fa5de7dfb8b0a4
201037_01
diff -r 08c8318ec9cb -r 5237465237e3 package_definition.xml
--- a/package_definition.xml Fri Sep 17 19:59:15 2010 +0530
+++ b/package_definition.xml Fri Sep 24 20:27:11 2010 +0530
@@ -32,10 +32,6 @@
-
-
-
-
@@ -100,26 +96,10 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -130,6 +110,14 @@
+
+
+
+
+
+
+
+
diff -r 08c8318ec9cb -r 5237465237e3 terminalsecurity/SCP/SCPServer/inc/SCPServer.h
--- a/terminalsecurity/SCP/SCPServer/inc/SCPServer.h Fri Sep 17 19:59:15 2010 +0530
+++ b/terminalsecurity/SCP/SCPServer/inc/SCPServer.h Fri Sep 24 20:27:11 2010 +0530
@@ -100,6 +100,9 @@
//const TUint32 KSCPServerSIDGeneralSettings( 0x100058EC ); // General Settings
const TUint32 KSCPServerSIDGeneralSettings( 0X20025FD9 ); // General Settings
+const TUint32 KSCPSecuiDialogNotifierSrv( 0x10000938 ); // SecUI Notified Server
+const TUint32 KSecUiTest( 0xEE89E3CF ); // SecUI Test App
+
//const TUint32 KSCPServerSIDSecurityObserver( 0x10000938 ); // Security Observer
const TUint32 KAknNfySrvUid( 0x10281EF2 ); // Security Notifier
const TUint32 KSCPServerSIDAutolock( 0x100059B5 ); // Autolock
diff -r 08c8318ec9cb -r 5237465237e3 terminalsecurity/SCP/SCPServer/src/SCPSession.cpp
--- a/terminalsecurity/SCP/SCPServer/src/SCPSession.cpp Fri Sep 17 19:59:15 2010 +0530
+++ b/terminalsecurity/SCP/SCPServer/src/SCPSession.cpp Fri Sep 24 20:27:11 2010 +0530
@@ -579,7 +579,9 @@
// Check the access for this parameter
if((aMessage.SecureId() != KSCPServerSIDTerminalControl) &&
(aMessage.SecureId() != KSCPServerSIDGeneralSettings) &&
- (aMessage.SecureId() != KDevEncUiUid)) {
+ (aMessage.SecureId() != KDevEncUiUid) &&
+ (aMessage.SecureId() != KSCPSecuiDialogNotifierSrv) &&
+ (aMessage.SecureId() != KSecUiTest )) {
Dprint((_L("CSCPSession::HandleSetParamMessageL(): ERROR: Permission denied")));
User :: Leave( KErrPermissionDenied);
@@ -790,20 +792,19 @@
Dprint( (_L("--> CSCPSession::HandleGetParamMessageL()") ));
#ifdef SCP_ENFORCE_SECURITY
-
// Check the access for this parameter
- switch ( (TSCPParameterID)aMessage.Int0() )
- {
+ switch ( (TSCPParameterID)aMessage.Int0() ) {
default:
// For the current parameters, we allow Gs and Terminal Control Server
- if ( ( aMessage.SecureId() != KSCPServerSIDTerminalControl ) &&
- ( aMessage.SecureId() != KSCPServerSIDGeneralSettings ) &&
- ( aMessage.SecureId() != KDevEncUiUid ) )
- {
- Dprint( (_L("CSCPSession::HandleSetParamMessageL(): ERROR:\
- Permission denied") ));
- User::Leave( KErrPermissionDenied );
- }
+ if(( aMessage.SecureId() != KSCPServerSIDTerminalControl ) &&
+ ( aMessage.SecureId() != KSCPServerSIDGeneralSettings ) &&
+ ( aMessage.SecureId() != KDevEncUiUid ) &&
+ ( aMessage.SecureId() != KSCPSecuiDialogNotifierSrv ) &&
+ ( aMessage.SecureId() != KSecUiTest ) ) {
+ Dprint( (_L("CSCPSession::HandleSetParamMessageL(): ERROR:\
+ Permission denied") ));
+ User :: Leave( KErrPermissionDenied );
+ }
break;
}
#endif // SCP_ENFORCE_SECURITY
@@ -884,6 +885,8 @@
case KSCPServerSIDTerminalControl:
case KSCPServerSIDTelephone:
case KSCPServerSIDLog:
+ case KSCPSecuiDialogNotifierSrv:
+ case KSecUiTest:
break;
default: {
Dprint( (_L("[CSCPSession]-> ERROR: Permission denied") ));