kernel/eka/debug/securityServer/src/c_security_svr_session.cpp
branchRCL_3
changeset 81 e7d2d738d3c2
parent 0 a41df078684a
child 258 880ff05ad710
equal deleted inserted replaced
80:597aaf25e343 81:e7d2d738d3c2
     1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of the License "Eclipse Public License v1.0"
     4 // under the terms of the License "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
  1038 */
  1038 */
  1039 void CSecuritySvrSession::AttachProcessL(const RMessage2& aMessage)
  1039 void CSecuritySvrSession::AttachProcessL(const RMessage2& aMessage)
  1040 	{
  1040 	{
  1041 	LOG_MSG( "CSecuritySvrSession::AttachProcessL()\n" );
  1041 	LOG_MSG( "CSecuritySvrSession::AttachProcessL()\n" );
  1042 
  1042 
  1043 	TBool aPassive = aMessage.Int0() ? ETrue : EFalse;
  1043 	const TBool passive = aMessage.Int0();
  1044 
  1044 
  1045 	TInt deslen = aMessage.GetDesLengthL(1);
  1045 	TInt deslen = aMessage.GetDesLengthL(1);
  1046 
  1046 
  1047 	// Passed data will be saved in this descriptor.
  1047 	// Passed data will be saved in this descriptor.
  1048 	RBuf processName;
  1048 	RBuf processName;
  1140 		LOG_MSG("CSecuritySvrSession::AttachProcessL() - Debug Agent has insufficient capabilites based on OEM Debug Token");	
  1140 		LOG_MSG("CSecuritySvrSession::AttachProcessL() - Debug Agent has insufficient capabilites based on OEM Debug Token");	
  1141 
  1141 
  1142 		IsDebuggableL(processName);
  1142 		IsDebuggableL(processName);
  1143 		}
  1143 		}
  1144 
  1144 
  1145 	User::LeaveIfError(Server().AttachProcessL(processName, processId, aPassive));
  1145 	User::LeaveIfError(Server().AttachProcessL(processName, processId, passive));
  1146 
  1146 
  1147 	// Inform the kernel driver about the attachment, so that it
  1147 	// Inform the kernel driver about the attachment, so that it
  1148 	// can track per-agent data about the process.
  1148 	// can track per-agent data about the process.
  1149 	RBuf8 processName8;
  1149 	RBuf8 processName8;
  1150 
  1150 
  1359 				}			
  1359 				}			
  1360 			}
  1360 			}
  1361 		}
  1361 		}
  1362 	if ( i == KMaxLocalDrives)
  1362 	if ( i == KMaxLocalDrives)
  1363 		{
  1363 		{
  1364 			LOG_MSG("No crash log partition found with valid crash log signature found.  Exiting...");
  1364 		LOG_MSG("No crash log partition found with valid crash log signature found.  Exiting...");
  1365 			User::Leave (KErrNotFound);
  1365 		User::Leave (KErrNotFound);
  1366 		}
  1366 		}
  1367 	
  1367 
       
  1368 	// Nand Flash not currently supported.
       
  1369 	if (iCaps.iType == EMediaNANDFlash)
       
  1370 		{
       
  1371 		LOG_MSG( "CSecuritySvrSession::ConnectCrashPartitionL()  Nand Flash not currently supported\n" );
       
  1372 		User::Leave (KErrNotSupported);
       
  1373 		}
  1368 	}
  1374 	}
  1369 /** Checks that aHeaderData contains enough data to cast it to the
  1375 /** Checks that aHeaderData contains enough data to cast it to the
  1370   appropriate header type.
  1376   appropriate header type.
  1371 
  1377 
  1372   @param aHeaderData buffer containing header data read from a file
  1378   @param aHeaderData buffer containing header data read from a file