localconnectivityservice/obexserviceman/obexservicemanserver/inc/SrcsSecurityPolicy.h
branchRCL_3
changeset 39 4096754ee773
parent 38 3dcb815346df
child 40 52a167391590
equal deleted inserted replaced
38:3dcb815346df 39:4096754ee773
     1 /*
       
     2 * Copyright (c) 2004-2007 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:  Obexservicemanager security policy definition
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef SRCS_SECURITYPOLICY_H
       
    20 #define SRCS_SECURITYPOLICY_H
       
    21 
       
    22 // ---------------------------------------------------------------------------
       
    23 // Srcs's policy
       
    24 // ---------------------------------------------------------------------------
       
    25 //
       
    26 
       
    27 // Count of ranges
       
    28 const TUint KSrcsRangeCount = 2;
       
    29 
       
    30 
       
    31 // Definition of the ranges of IPC numbers
       
    32 const TInt KSrcsRanges[KSrcsRangeCount] = 
       
    33     {
       
    34 	0,  // ESrcsBTServicesON to ESrcsGetIrDAState
       
    35 	7   // Out of IPC range
       
    36     };
       
    37 
       
    38 // Policy to implement for each of the above ranges        
       
    39 const TUint8 KSrcsElementsIndex[KSrcsRangeCount] = 
       
    40     {
       
    41     0,	                         // applies to 0th range                          
       
    42     CPolicyServer::ENotSupported // out of range Srcs's IPC
       
    43     };
       
    44 
       
    45 //Specific capability checks
       
    46 const CPolicyServer::TPolicyElement KSrcsElements[] = 
       
    47     {
       
    48 		{
       
    49 			_INIT_SECURITY_POLICY_C1(ECapabilityLocalServices), CPolicyServer::EFailClient
       
    50 		} //policy 0.
       
    51     };
       
    52 
       
    53 // Policy structure for Srcs. This is passed to Srcs's constructor
       
    54 const CPolicyServer::TPolicy KSrcsPolicy =
       
    55         {
       
    56         CPolicyServer::EAlwaysPass, // Indicates that Connect attempts should be processed without any further checks.
       
    57         KSrcsRangeCount,	        // Range count
       
    58         KSrcsRanges,	            // ranges array
       
    59         KSrcsElementsIndex,	        // elements' index
       
    60         KSrcsElements		        // array of elements
       
    61         };
       
    62 
       
    63 #endif // SRCS_SECURITYPOLICY_H
       
    64 
       
    65 // End of File