X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=src%2Fboot%2Fefi%2Fshim.c;h=f6ffed143cd8eb226d969d2d2402e6852a7decf4;hb=6e866b331d7cd4a5e0759dd160dea6edabd3678e;hp=73ff861cb6f6618bc1217b6c15c12533e7a929d4;hpb=b012e92123bdc9fa10c2f079ec5bd9313b23e21a;p=systemd.git diff --git a/src/boot/efi/shim.c b/src/boot/efi/shim.c index 73ff861cb..f6ffed143 100644 --- a/src/boot/efi/shim.c +++ b/src/boot/efi/shim.c @@ -205,35 +205,3 @@ EFI_STATUS security_policy_install(void) { return EFI_SUCCESS; } - -EFI_STATUS security_policy_uninstall(void) { - EFI_STATUS status; - - if (esfas) { - EFI_SECURITY_PROTOCOL *security_protocol; - - status = uefi_call_wrapper(BS->LocateProtocol, 3, (EFI_GUID*) &security_protocol_guid, NULL, (VOID**) &security_protocol); - - if (status != EFI_SUCCESS) - return status; - - security_protocol->FileAuthenticationState = esfas; - esfas = NULL; - } else - /* nothing installed */ - return EFI_NOT_STARTED; - - if (es2fa) { - EFI_SECURITY2_PROTOCOL *security2_protocol; - - status = uefi_call_wrapper(BS->LocateProtocol, 3, (EFI_GUID*) &security2_protocol_guid, NULL, (VOID**) &security2_protocol); - - if (status != EFI_SUCCESS) - return status; - - security2_protocol->FileAuthentication = es2fa; - es2fa = NULL; - } - - return EFI_SUCCESS; -}