SecurityPkg/UserIdentification/UserProfileManagerDxe/ModifyAccessPolicy.c File Reference


Functions

VOID SaveAccessPolicy (VOID)
VOID AddDevicePath (IN UINTN QuestionID, IN EFI_DEVICE_PATH_PROTOCOL *DevicePath, IN VOID *OpCodeHandle)
BOOLEAN IsLoadForbidden (IN EFI_DEVICE_PATH_PROTOCOL *DevicePath)
VOID DisplayLoadPermit (VOID)
VOID DisplayLoadForbid (VOID)
VOID DisplayConnectPermit (VOID)
VOID DisplayConnectForbid (VOID)
VOID DeleteFromForbidLoad (IN UINT16 DriverIndex)
VOID AddToForbidLoad (IN UINT16 DriverIndex)

Detailed Description

The functions for access policy modification.

Copyright (c) 2009 - 2013, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php

THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.


Function Documentation

VOID AddDevicePath ( IN UINTN  QuestionID,
IN EFI_DEVICE_PATH_PROTOCOL *  DevicePath,
IN VOID *  OpCodeHandle 
)

Create an action OpCode with QuestionID and DevicePath on a given OpCodeHandle.

Parameters:
[in] QuestionID The question ID.
[in] DevicePath Points to device path.
[in] OpCodeHandle Points to container for dynamic created opcodes.

References PWD_PROVIDER_CALLBACK_INFO::HiiHandle, and mCallbackInfo.

Referenced by DisplayLoadForbid(), and DisplayLoadPermit().

VOID AddToForbidLoad ( IN UINT16  DriverIndex  ) 

Add the specified device path by DriverIndex to the forbid device path list (mAccessInfo.LoadForbid).

Parameters:
[in] DriverIndex The index of driver saved in driver options.

References USER_INFO_ACCESS::LoadForbid, USER_INFO_ACCESS::LoadForbidLen, mAccessInfo, and UINTN().

Referenced by UserProfileManagerCallback().

VOID DeleteFromForbidLoad ( IN UINT16  DriverIndex  ) 

Delete the specified device path by DriverIndex from the forbid device path list (mAccessInfo.LoadForbid).

Parameters:
[in] DriverIndex The index of driver in forbidden device path list.

References USER_INFO_ACCESS::LoadForbid, USER_INFO_ACCESS::LoadForbidLen, mAccessInfo, and UINTN().

Referenced by UserProfileManagerCallback().

VOID DisplayConnectForbid ( VOID   ) 

Display the forbid connect device path list.

Referenced by UserProfileManagerCallback().

VOID DisplayConnectPermit ( VOID   ) 

Display the permit connect device path.

Referenced by UserProfileManagerCallback().

VOID DisplayLoadForbid ( VOID   ) 

VOID DisplayLoadPermit ( VOID   ) 

BOOLEAN IsLoadForbidden ( IN EFI_DEVICE_PATH_PROTOCOL *  DevicePath  ) 

Check whether the DevicePath is in the device path forbid list (mAccessInfo.LoadForbid).

Parameters:
[in] DevicePath Points to device path.
Return values:
TRUE The DevicePath is in the device path forbid list.
FALSE The DevicePath is not in the device path forbid list.

References USER_INFO_ACCESS::LoadForbid, USER_INFO_ACCESS::LoadForbidLen, mAccessInfo, TRUE, and UINTN().

Referenced by DisplayLoadPermit().

VOID SaveAccessPolicy ( VOID   ) 


Generated on Thu Sep 24 23:44:25 2015 for SecurityPkg[ALL] by  doxygen 1.5.7.1