|
1 // Copyright (c) 2004-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 // Server Security Policy definitions. |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @file |
|
20 @internalComponent |
|
21 */ |
|
22 |
|
23 #ifndef REMCONSERVERSECURITYPOLICY_H |
|
24 #define REMCONSERVERSECURITYPOLICY_H |
|
25 |
|
26 #include <e32base.h> |
|
27 #include "remconserver.h" |
|
28 |
|
29 /** RemCon Server Security Policy Definition */ |
|
30 const TUint KRemConServerRangeCount = 2; |
|
31 |
|
32 const TInt KRemConServerRanges[KRemConServerRangeCount] = |
|
33 { |
|
34 ERemConDbgMarkHeap, /** pass */ |
|
35 ERemConNumberOfServerFunctions, /** fail (to KMaxTInt) */ |
|
36 }; |
|
37 |
|
38 /** Index numbers into KRemConServerElements[] */ |
|
39 const TInt KPolicyPass = 0; |
|
40 |
|
41 /** Mapping IPCs to policy element */ |
|
42 const TUint8 KRemConServerElementsIndex[KRemConServerRangeCount] = |
|
43 { |
|
44 KPolicyPass, /** All (valid) APIs */ |
|
45 CPolicyServer::ENotSupported, /** remainder of possible IPCs */ |
|
46 }; |
|
47 |
|
48 /** Individual policy elements */ |
|
49 const CPolicyServer::TPolicyElement KRemConServerElements[] = |
|
50 { |
|
51 { _INIT_SECURITY_POLICY_PASS }, |
|
52 }; |
|
53 |
|
54 /** Main policy */ |
|
55 const CPolicyServer::TPolicy KRemConServerPolicy = |
|
56 { |
|
57 CPolicyServer::EAlwaysPass, /** Specifies all connect attempts should pass */ |
|
58 KRemConServerRangeCount, |
|
59 KRemConServerRanges, |
|
60 KRemConServerElementsIndex, |
|
61 KRemConServerElements, |
|
62 }; |
|
63 |
|
64 #endif // REMCONMANSERVERSECURITYPOLICY_H |