|
1 /* |
|
2 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: ?Description |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef MUSMANAGERSERVERPLATSECPOLICY_H |
|
20 #define MUSMANAGERSERVERPLATSECPOLICY_H |
|
21 |
|
22 /** |
|
23 * Number of different IPC ranges |
|
24 */ |
|
25 const TUint KMusManagerServerPlatSecRangeCount = 4; |
|
26 |
|
27 /** |
|
28 * IPC ranges segmented into groups based on their capability requirements |
|
29 */ |
|
30 const TInt KMusManagerServerPlatSecRanges[KMusManagerServerPlatSecRangeCount] = |
|
31 { |
|
32 0, // IPC message 0 - 3 |
|
33 4, // IPC message 4 - 6 |
|
34 7, // IPC message 7 - 9 |
|
35 10 // Not Supported 10 -> |
|
36 }; |
|
37 |
|
38 /** |
|
39 * IPC segments and their capability requirements |
|
40 */ |
|
41 const TUint8 KMusManagerServerPlatSecElementsIndex[KMusManagerServerPlatSecRangeCount] = |
|
42 { |
|
43 CPolicyServer::EAlwaysPass, // Security policy for ITC 0-3 |
|
44 0, // Security policy for IPC 0-2 (WriteDeviceData) |
|
45 1, // Security policy for IPC 3-9 (ReadDeviceData) |
|
46 CPolicyServer::ENotSupported // Not Supported 10 -> |
|
47 }; |
|
48 |
|
49 /** |
|
50 * Availability sets and the action performed in case of failure |
|
51 */ |
|
52 const CPolicyServer::TPolicyElement KMusManagerServerPlatSecElements[2] = |
|
53 { |
|
54 // Requires the user to have WriteDeviceData capability, otherwise the message is |
|
55 // completed with KErrPermissionDenied |
|
56 { _INIT_SECURITY_POLICY_C1(ECapabilityWriteDeviceData), CPolicyServer::EFailClient }, |
|
57 |
|
58 // Requires the user to have ReadDeviceData capability, otherwise the message is |
|
59 // completed with KErrPermissionDenied |
|
60 { _INIT_SECURITY_POLICY_C1(ECapabilityReadDeviceData), CPolicyServer::EFailClient }, |
|
61 |
|
62 }; |
|
63 |
|
64 /** |
|
65 * Platform security policy that SIP Server uses. |
|
66 */ |
|
67 const CPolicyServer::TPolicy KMusManagerServerPlatSecPolicy = |
|
68 { |
|
69 CPolicyServer::EAlwaysPass, // Specifies all connect attempts should pass |
|
70 KMusManagerServerPlatSecRangeCount, // Number of IPC ranges |
|
71 KMusManagerServerPlatSecRanges, // IPC Ranges |
|
72 KMusManagerServerPlatSecElementsIndex, // Policy to ITC mapping array |
|
73 KMusManagerServerPlatSecElements // Policies used in MusManagerServer |
|
74 }; |
|
75 |
|
76 #endif // ? MUSMANAGERSERVERPLATSECPOLICY_H |