rtsecuritymanager/rtsecuritymanagerserver/inc/rtsecmgrserverpolicy.inl
author andy simpson <andrews@symbian.org>
Fri, 08 Jan 2010 16:23:41 +0000
changeset 23 78759e32c519
parent 0 99ef825efeca
permissions -rw-r--r--
Added tag PDK_3.0.e for changeset 7067d19ca14e

/*
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of the License "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:      
*
*/





/*
 * Security Manager Server's policy
 *
 */

/*
 * Total number of ranges 
 */
const TUint KSecMgrSrvPolicyRangeCount = 1;

// Definition of the ranges of IPC numbers
const TInt KSecMgrSrvRanges[KSecMgrSrvPolicyRangeCount] =
    {
    0
    //,   
    //ESecMgrSrvReqEnd             // 2nd range, non implemented function end of range check; ENotSupported
    };

// Policy to implement for each of the above ranges
const TUint8 KSecMgrSrvElementsIndex[KSecMgrSrvPolicyRangeCount] =
    {
    0
    //,                           // Applies to 0th range
    //CPolicyServer::ENotSupported // Applies to 1st range
    };

// Specific capability checks
const CPolicyServer::TPolicyElement KSecMgrSrvElements[] =
    {
    { _INIT_SECURITY_POLICY_C1( ECapabilityReadUserData ),  CPolicyServer::EFailClient },  // Policy "0"
    //{ _INIT_SECURITY_POLICY_C1( ECapabilityWriteDeviceData ), CPolicyServer::EFailClient },  // Policy "1"
    //{ _INIT_SECURITY_POLICY_S0( KSensrvTestFrameworkUid ),    CPolicyServer::EPanicClient }, // Policy "2", i.e. access is allowed only for test framework
    };

// Package all the above together into a policy
const CPolicyServer::TPolicy KSecMgrSrvPolicy =
    {
    CPolicyServer::EAlwaysPass, 	// All connect attempts to Security Manager Server pass
    KSecMgrSrvPolicyRangeCount,    // Number of ranges
    KSecMgrSrvRanges,              // Ranges array
    KSecMgrSrvElementsIndex,       // Elements <-> ranges index
    KSecMgrSrvElements,            // Array of elements
    };