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) |
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.
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.
[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).
[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).
[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 | ) |
Display the forbid load device path list (mAccessInfo.LoadForbid).
References AddDevicePath(), FORMID_FORBID_LOAD_DP, gUserProfileManagerGuid, PWD_PROVIDER_CALLBACK_INFO::HiiHandle, KEY_LOAD_FORBID_MODIFY, KEY_MODIFY_AP_DP, KEY_MODIFY_USER, LABEL_END, LABLE_FORBID_LOAD_FUNC, USER_INFO_ACCESS::LoadForbid, USER_INFO_ACCESS::LoadForbidLen, mAccessInfo, mCallbackInfo, and UINTN().
Referenced by UserProfileManagerCallback().
VOID DisplayLoadPermit | ( | VOID | ) |
Display the permit load device path in the loadable device path list.
References AddDevicePath(), EFI_STATUS(), FORMID_PERMIT_LOAD_DP, gUserProfileManagerGuid, PWD_PROVIDER_CALLBACK_INFO::HiiHandle, IsLoadForbidden(), KEY_LOAD_PERMIT_MODIFY, KEY_MODIFY_AP_DP, KEY_MODIFY_USER, LABEL_END, LABEL_PERMIT_LOAD_FUNC, mCallbackInfo, and UINTN().
Referenced by UserProfileManagerCallback().
BOOLEAN IsLoadForbidden | ( | IN EFI_DEVICE_PATH_PROTOCOL * | DevicePath | ) |
Check whether the DevicePath is in the device path forbid list (mAccessInfo.LoadForbid).
[in] | DevicePath | Points to device path. |
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 | ) |
Collect all the access policy data to mUserInfo.AccessPolicy, and save it to user profile.
References ACCESS_SETUP_ADMIN, ACCESS_SETUP_NORMAL, ACCESS_SETUP_RESTRICTED, USER_INFO_ACCESS::AccessBootOrder, USER_INFO::AccessPolicy, USER_INFO::AccessPolicyLen, USER_INFO::AccessPolicyModified, USER_INFO_ACCESS::AccessRight, USER_INFO_ACCESS::AccessSetup, USER_INFO_ACCESS::ConnectForbid, USER_INFO_ACCESS::ConnectForbidLen, USER_INFO_ACCESS::ConnectPermit, USER_INFO_ACCESS::ConnectPermitLen, EFI_STATUS(), ExpandMemory(), FindInfoByType(), USER_INFO_ACCESS::LoadForbid, USER_INFO_ACCESS::LoadForbidLen, USER_INFO_ACCESS::LoadPermit, USER_INFO_ACCESS::LoadPermitLen, mAccessInfo, mModifyUser, mUserInfo, mUserManager, TRUE, and UINTN().
Referenced by UserProfileManagerCallback().