applicationmanagement/server/inc/PlatformSecurityPolicies.h
author hgs
Fri, 06 Aug 2010 18:56:37 +0530
changeset 52 6e38e48ee756
parent 47 d316aecb87fd
permissions -rw-r--r--
201031
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
47
d316aecb87fd 201025_02
hgs
parents:
diff changeset
     1
/*
d316aecb87fd 201025_02
hgs
parents:
diff changeset
     2
 * Copyright (c) 2000 Nokia Corporation and/or its subsidiary(-ies). 
d316aecb87fd 201025_02
hgs
parents:
diff changeset
     3
 * All rights reserved.
d316aecb87fd 201025_02
hgs
parents:
diff changeset
     4
 * This component and the accompanying materials are made available
d316aecb87fd 201025_02
hgs
parents:
diff changeset
     5
 * under the terms of "Eclipse Public License v1.0"
d316aecb87fd 201025_02
hgs
parents:
diff changeset
     6
 * which accompanies this distribution, and is available
d316aecb87fd 201025_02
hgs
parents:
diff changeset
     7
 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
d316aecb87fd 201025_02
hgs
parents:
diff changeset
     8
 *
d316aecb87fd 201025_02
hgs
parents:
diff changeset
     9
 * Initial Contributors:
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    10
 * Nokia Corporation - initial contribution.
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    11
 *
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    12
 * Contributors:
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    13
 *
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    14
 * Description: Implementation of applicationmanagement components
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    15
 *
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    16
 */
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    17
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    18
#ifndef __PLATFORM_SECURITY_POLICIES__
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    19
#define __PLATFORM_SECURITY_POLICIES__
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    20
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    21
// INCLUDES
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    22
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    23
#include <e32base.h>
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    24
#include "ApplicationManagementClientServer.h"
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    25
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    26
// CONSTANTS
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    27
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    28
const TUint KApplicationManagementRangeCount = 3;
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    29
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    30
const TInt KApplicationManagementRanges[KApplicationManagementRangeCount] =
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    31
    {
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    32
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    33
    NApplicationManagement::EAddTrust, //For Management
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    34
            NApplicationManagement::EPerformRfs,
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    35
            NApplicationManagement::ELast
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    36
,//ENotSupported
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    37
};
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    38
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    39
const TUint8
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    40
        KApplicationManagementSecurityElementsIndex[KApplicationManagementRangeCount] =
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    41
            {
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    42
            0, //applies to 1st range 
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    43
                    1,
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    44
                    CPolicyServer::ENotSupported
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    45
            };
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    46
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    47
//capability checks
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    48
const CPolicyServer::TPolicyElement KApplicationManagementSecurityElements[] =
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    49
    {
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    50
        {
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    51
        _INIT_SECURITY_POLICY_C1(ECapabilityTrustedUI), CPolicyServer::EFailClient
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    52
        },
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    53
        {
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    54
        _INIT_SECURITY_POLICY_S1(0x101f9a02, ECapabilityDiskAdmin), CPolicyServer::EFailClient
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    55
        }
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    56
    };
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    57
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    58
//Package all the above together into a policy
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    59
//CPolicyServer::TPolicy KApplicationManagementSecurityPolicy;
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    60
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    61
#endif
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    62
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    63
//  End of File