equal
deleted
inserted
replaced
1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2004-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 "Eclipse Public License v1.0" |
4 // under the terms of "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". |
184 |
184 |
185 // Build a parse-object for the full ref-file name |
185 // Build a parse-object for the full ref-file name |
186 TParse regFileNameParser; |
186 TParse regFileNameParser; |
187 const TDriveName driveName = currentDrive.iUnit.Name(); |
187 const TDriveName driveName = currentDrive.iUnit.Name(); |
188 regFileNameParser.Set(entry.iName, &appFolderOnDrive, &driveName); |
188 regFileNameParser.Set(entry.iName, &appFolderOnDrive, &driveName); |
189 |
189 |
190 // If the appliation is located on a removable drive... |
190 // Apparc will call sidchecker to verify if an application is a valid registered application. |
191 if (currentDrive.iAttribs&KDriveAttRemovable) |
191 // Apparc will call sidchecker in the following conditions |
|
192 // 1. If the current drive is a removable drive |
|
193 // 2. If the current drive is not |
|
194 // a) an internal read-only drive |
|
195 // b) the system drive |
|
196 if(currentDrive.iAttribs&KDriveAttRemovable || ((currentDrive.iUnit != iFs.GetSystemDrive()) && (currentDrive.iAttribs&KDriveAttInternal) && !(currentDrive.iAttribs&KDriveAttRom))) |
192 { |
197 { |
193 // ...then verify that there is a valid Secure ID (SID) for the appliation |
198 // ...then verify that there is a valid Secure ID (SID) for the appliation |
194 // to protect against untrusted applications. |
199 // to protect against untrusted applications. |
195 if (entry[2] != iLastChkedApp) //Check for validity only if it has not yet been checked |
200 if (entry[2] != iLastChkedApp) //Check for validity only if it has not yet been checked |
196 { |
201 { |