|
1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // Configurator Server Security Policy Definitions |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @file |
|
20 @internalComponent |
|
21 */ |
|
22 |
|
23 _LIT_SECURE_ID(KC32EXEProcessSecureId,0x101F7989); |
|
24 |
|
25 const TUint CRsConfiguratorServer::iPolicyRangeCount = 4; |
|
26 |
|
27 const TInt CRsConfiguratorServer::iPolicyRanges[iPolicyRangeCount] = |
|
28 { |
|
29 0, // Must start at zero to prevent CPolicyServer from panicing |
|
30 CSEnumerateModules, //NetworkControl |
|
31 CSUnloadCpm, //NetworkControl + PowerMgmt |
|
32 CSCancelUnloadCpm+1, |
|
33 }; |
|
34 |
|
35 // Index numbers into PolicyElements[] |
|
36 |
|
37 const TInt policyNetworkControl = 0; |
|
38 const TInt policyPowerNetworkControl = 1; |
|
39 |
|
40 |
|
41 |
|
42 const TUint8 CRsConfiguratorServer::iPolicyElementsIndex[iPolicyRangeCount] = |
|
43 { |
|
44 CPolicyServer::ENotSupported, // For fake IPC 0 - CS IPC calls start at CSEnumerateModules |
|
45 policyNetworkControl, // CSEnumerateModules (1) |
|
46 // CSGetModuleIniData(2) |
|
47 // CSLoadCpm(3) |
|
48 // CSCancelLoadCpm (4) |
|
49 policyPowerNetworkControl, // CSUnloadCpm(5) |
|
50 // CSCancelUnloadCpm (6) |
|
51 CPolicyServer::ENotSupported, // CSCancelUnloadCpm + 1 to KMaxTInt |
|
52 }; |
|
53 |
|
54 const CPolicyServer::TPolicyElement CRsConfiguratorServer::iPolicyElements[] = |
|
55 { |
|
56 {_INIT_SECURITY_POLICY_S1(KC32EXEProcessSecureId,ECapabilityNetworkControl), CPolicyServer::EFailClient }, |
|
57 {_INIT_SECURITY_POLICY_S2(KC32EXEProcessSecureId,ECapabilityNetworkControl, ECapabilityPowerMgmt), CPolicyServer::EFailClient }, |
|
58 }; |
|
59 |
|
60 const CPolicyServer::TPolicy CRsConfiguratorServer::iPolicy = |
|
61 { |
|
62 policyNetworkControl, // all connect attempts require NetworkControl (all IPCs require it) |
|
63 iPolicyRangeCount, |
|
64 iPolicyRanges, |
|
65 iPolicyElementsIndex, |
|
66 iPolicyElements, |
|
67 }; |
|
68 |
|
69 |