Open
Conversation
7d0d471 to
cb047ca
Compare
cb047ca to
81d1d79
Compare
marcin-serwin
requested changes
Feb 10, 2026
Contributor
marcin-serwin
left a comment
There was a problem hiding this comment.
Version 2.27 is out which does not require patching
| # chroot into the runtime directory | ||
| RootDirectory = "%t/aesmd"; | ||
| # # chroot prevents the setup from locating the aesmd DynamicUser | ||
| # RootDirectory = "%t/aesmd"; |
Contributor
There was a problem hiding this comment.
Is this intentional?
Contributor
Author
There was a problem hiding this comment.
Sorry, the comment could be clearer. When I tested this, RootDirectory (which as I understand it, chroot's into the given directory), seemed to interact poorly with DynamicUser and prevented the service from starting properly.
EDIT: for more context, this first became an issue after NixOS updated to systemd-v257
Contributor
Author
|
@marcin-serwin Thanks for the review! It reminded me to update to sgx-psw-v2.27, which I've done in this PR: #489368 Might be more convenient to just review+land that one |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
Update the
sgx-pswpackage to the latest 2.26 release.Fix the
aesmdservice, which broke with the update tosystemd-v257(#356818).If possible, it would be nice to backport this to release-25.05, as
sgx-psw/aesmdare currently broken on that release.Prior update attempt (2.25 -> 2.26): #403984
Previous update PR (2.24 -> 2.25): #353041
Quick Glossary:
sgx-psw(Platform SoftWare) provides theaesmdservice (Architecture Enclave Service Manager Daemon), which simplifies running enclaves and getting remote attestation quotes.Testing:
These changes were tested on an SGX-enabled Azure gen2 VM (DCSv3) running NixOS.
Run against real SGX hardware
Make sure you're running on a recent x86-64 Intel CPU, against a somewhat recent kernel with the in-tree kernel SGX driver (any NixOS config in the last few years should cover this).
Check the hardware and kernel setup:
In your NixOS
configuration.nix, add something like:After a
nixos-rebuild switch, check that the devices are configured and theaesmdservice is running:Run a test enclave that exercises remote attestation: