Skip to content

Commit

Permalink
Export memfd correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
dani-garcia committed Sep 24, 2024
1 parent 38343d2 commit f34ce02
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ use super::{
// This should be secure against memory dumps from anything except a malicious kernel driver.
// Note that not all 5.14+ systems have support for memfd_secret enabled, so
// LinuxMemfdSecretKeyStore::new returns an Option.
pub type LinuxMemfdSecretKeyStore<Key> = SliceKeyStore<Key, MemfdSecretImplKeyData>;
pub(crate) type LinuxMemfdSecretKeyStore<Key> = SliceKeyStore<Key, MemfdSecretImplKeyData>;

struct MemfdSecretImplKeyData {
pub(crate) struct MemfdSecretImplKeyData {
ptr: std::ptr::NonNull<[u8]>,
capacity: usize,
}
Expand Down

0 comments on commit f34ce02

Please sign in to comment.