cryptomgmtlibs/securitycommonutils/inc/securityutils.h
changeset 8 35751d3474b7
child 15 da2ae96f639b
equal deleted inserted replaced
2:675a964f4eb5 8:35751d3474b7
       
     1 /*
       
     2 * Copyright (c) 2008-2009 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 the License "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: 
       
    15 * Includes APIs for common security checks
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 /**
       
    21  @file
       
    22  @internalTechnology
       
    23 */
       
    24 
       
    25 #ifndef SECURITYUTILS_H
       
    26 #define SECURITYUTILS_H
       
    27 
       
    28 #include <e32base.h>
       
    29 
       
    30 namespace SecCommonUtils
       
    31 {	
       
    32 	/**
       
    33 	 Returns a set of capabilities required for doing a file modification. 
       
    34 	 This function is useful for cases where an FS operation is performed by a higher-trust process on behalf of a lower-trust process, 
       
    35 	 and the higher-trust process wants to verify whether the operation is legal.
       
    36 	 Please note that this function returns TCB as required for paths with relative indirections (".."), as well as paths with wild cards.
       
    37 	 
       
    38 	 @param aFileName			FileName, for which the client is verified
       
    39 	 @param aClientSid			SID of the client requesting the file modification
       
    40 	 @return					Set of capabilities. If a process has any of these, it can have modification access
       
    41 	 */
       
    42 	IMPORT_C TCapabilitySet FileModificationRequiredCapabilitiesL(const TDesC& aFileName, TSecureId aClientSid);
       
    43 }
       
    44 
       
    45 #endif /* SECURITYUTILS_H*/