Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ edition = "2024"
[workspace.dependencies]
bitflags = "2.11.1"
log = "0.4.29"
spin = "0.10.0"
spin = "0.11.0"
uefi-raw = "0.14.0"

[workspace.dependencies.anyhow]
Expand All @@ -46,7 +46,7 @@ version = "0.11.0"
default-features = false

[workspace.dependencies.shlex]
version = "1.3.0"
version = "2.0.1"
default-features = false

[workspace.dependencies.toml]
Expand Down
5 changes: 3 additions & 2 deletions crates/eficore/src/shim/hook.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use crate::shim::{ShimInput, ShimSupport, ShimVerificationOutput};
use anyhow::{Context, Result};
use core::slice;
use log::warn;
use spin::{Lazy, Mutex};
use spin::{LazyLock, Mutex};
use uefi::proto::device_path::FfiDevicePath;
use uefi::proto::unsafe_protocol;
use uefi::{Guid, guid};
Expand Down Expand Up @@ -45,7 +45,8 @@ struct SecurityHookState {

/// Global state for the security hook.
/// This is messy, but it is safe given the mutex.
static GLOBAL_HOOK_STATE: Lazy<Mutex<Option<SecurityHookState>>> = Lazy::new(|| Mutex::new(None));
static GLOBAL_HOOK_STATE: LazyLock<Mutex<Option<SecurityHookState>>> =
LazyLock::new(|| Mutex::new(None));

/// Security hook helper.
pub struct SecurityHook;
Expand Down
Loading