25 |
25 |
26 #include <PolicyEngineClientServer.h> |
26 #include <PolicyEngineClientServer.h> |
27 #include "PolicyEngineClientServerDefs.h" |
27 #include "PolicyEngineClientServerDefs.h" |
28 // CONSTANTS |
28 // CONSTANTS |
29 |
29 |
30 const TUint KPolicyEngineRangeCount = 6; |
30 const TUint KPolicyEngineRangeCount = 7; |
31 |
31 |
32 const TInt KPolicyEngineRanges[KPolicyEngineRangeCount] = |
32 const TInt KPolicyEngineRanges[KPolicyEngineRangeCount] = |
33 { |
33 { |
34 ECreateManagementSubSession, |
34 ECreateManagementSubSession, |
35 |
35 |
60 EPolicyRequest, |
60 EPolicyRequest, |
61 // 5th range function ids |
61 // 5th range function ids |
62 // EPolicyRequest |
62 // EPolicyRequest |
63 // ECreateRequestSubSession |
63 // ECreateRequestSubSession |
64 // ECloseRequestSubSessio |
64 // ECloseRequestSubSessio |
65 |
65 |
66 ECloseRequestSubSessio + 1 |
66 EServerCertAddRequest, |
|
67 // 6th range function ids |
|
68 // EServerCertRemoveRequest, |
|
69 |
|
70 EServerCertRemoveRequest+1 |
67 //ENotSupported |
71 //ENotSupported |
68 }; |
72 }; |
69 |
73 |
70 |
74 |
71 |
75 |
74 CPolicyServer::ECustomCheck, //applies to 1st range |
78 CPolicyServer::ECustomCheck, //applies to 1st range |
75 0, //applies to 2nd range |
79 0, //applies to 2nd range |
76 1, //applies to 3rd range |
80 1, //applies to 3rd range |
77 2, //applies to 4rd range |
81 2, //applies to 4rd range |
78 3, //applies to 5rd range |
82 3, //applies to 5rd range |
|
83 4, //applies to 6rd range |
79 CPolicyServer::ENotSupported |
84 CPolicyServer::ENotSupported |
80 }; |
85 }; |
81 |
86 |
82 //capability checks |
87 //capability checks |
83 const CPolicyServer::TPolicyElement KPolicyEngineSecurityElements[] = |
88 const CPolicyServer::TPolicyElement KPolicyEngineSecurityElements[] = |
84 { |
89 { |
85 {_INIT_SECURITY_POLICY_S2( 0x101f9a02, ECapabilityWriteDeviceData, ECapabilityReadDeviceData), CPolicyServer::EPanicClient}, |
90 {_INIT_SECURITY_POLICY_S2( 0x101f9a02, ECapabilityWriteDeviceData, ECapabilityReadDeviceData), CPolicyServer::EPanicClient}, |
86 {_INIT_SECURITY_POLICY_S0( 0x102073EA /*RFS SID*/), CPolicyServer::EPanicClient}, |
91 {_INIT_SECURITY_POLICY_S0( 0x102073EA /*RFS SID*/), CPolicyServer::EPanicClient}, |
87 {_INIT_SECURITY_POLICY_C2(ECapabilityReadDeviceData, ECapabilityWriteDeviceData), CPolicyServer::EPanicClient}, |
92 {_INIT_SECURITY_POLICY_C2(ECapabilityReadDeviceData, ECapabilityWriteDeviceData), CPolicyServer::EPanicClient}, |
88 {_INIT_SECURITY_POLICY_C2(ECapabilityReadDeviceData, ECapabilityWriteDeviceData), CPolicyServer::EPanicClient} |
93 {_INIT_SECURITY_POLICY_C2(ECapabilityReadDeviceData, ECapabilityWriteDeviceData), CPolicyServer::EPanicClient} , |
|
94 {_INIT_SECURITY_POLICY_C1( ECapability_None ), CPolicyServer::EFailClient} |
89 }; |
95 }; |
90 |
96 |
91 //Package all the above together into a policy |
97 //Package all the above together into a policy |
92 const CPolicyServer::TPolicy KPolicyEngineSecurityPolicy = |
98 const CPolicyServer::TPolicy KPolicyEngineSecurityPolicy = |
93 { |
99 { |