Convert Kernelhwsrv package from SFL to EPL
kernel\eka\compsupp is subject to the ARM EABI LICENSE
userlibandfileserver\fatfilenameconversionplugins\unicodeTables is subject to the Unicode license
kernel\eka\kernel\zlib is subject to the zlib license
// Copyright (c) 2004-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:
// USB mass storage Server Security Policy definitions for Platform security.
//
//
/**
@file
@internalComponent
*/
#if !defined(__USBMSSERVERSECURITYPOLICY_H__)
#define __USBMSSERVERSECURITYPOLICY_H__
#include <usbmsshared.h>
// USB masss storage Server Security Policy Definition
const TUint KUsbMsServerRangeCount = 3;
const TInt KUsbMsServerRanges[KUsbMsServerRangeCount] =
{
EUsbMsStart, // NetworkControl [Start/Stop]
EUsbMsShutdown, // DiskAdmin [Shutdown]
EUsbMsShutdown + 1, // fail (to KMaxInt)
};
// Index numbers into KUsbMsServerElements[]
const TInt KPolicyNetworkControl = 0;
const TInt KPolicyDiskAdmin = 1;
// Mapping IPCs to poicy element
const TUint8 KUsbMsServerElementsIndex[KUsbMsServerRangeCount] =
{
KPolicyNetworkControl, // EUsbMsStart & EUsbMsStop
KPolicyDiskAdmin, // EUsbMsShutdown
CPolicyServer::ENotSupported, // EUsbMsShutdown + 1 to KMaxTInt
};
// Individual policy elements
const CPolicyServer::TPolicyElement KUsbMsServerElements[] =
{
{ _INIT_SECURITY_POLICY_C1(ECapabilityNetworkControl), CPolicyServer::EFailClient },
{ _INIT_SECURITY_POLICY_C1(ECapabilityDiskAdmin), CPolicyServer::EFailClient},
// the EFailClient means that if the check fails
// the CheckFailed method with return KErrPermissionDenied
};
// Main policy
const CPolicyServer::TPolicy KUsbMsServerPolicy =
{
CPolicyServer::EAlwaysPass, // all connect attempts should pass
KUsbMsServerRangeCount,
KUsbMsServerRanges,
KUsbMsServerElementsIndex,
KUsbMsServerElements,
};
#endif //__USBMSSERVERSECURITYPOLICY_H__