4. October 2022 #942
dimakuv
started this conversation in
Meeting notes
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Agenda
(please write your proposed agenda items in comments under this discussion)
(There were no agenda items, so Ying Liu discussed her issues with enabling enclave-cc in Gramine.)
Missing syscalls required for
enclave-cc
in RustYing Liu is working on the
enclave-cc
project, enabling/porting it to Gramine. Original code is written in Rust.There are several syscalls missing:
utimensat
(change file timestamps with nanosecond precision)symlink
(make a new name -- symbolic link -- for a file)linkat
(make a new name -- hard link -- for a file)utimensat
BorysWoju: we should be fine withutimensat()
implemented with low precision, not nanosecond one. That's because this is already happenning in current file systems -- they do not support nanoseconds and store timestamps with less precision anyway. So Gramine won't "break" anything by having lower precision.Chia-Che: We should implement the whole family of
utime
/utimes
/utimensat
/... We should think about the security issues of implementing this family of syscalls.Benny: the time is not trusted in SGX. So all the syscalls that relate to timestamps, these are basically not trusted. We should make it explicit to users?
symlink
andlinkat
Chia-Che: regarding symlink and linkat, does the customer need to create the corresponding symlink on the host (outside of Gramine environment)?
Borys: We were thinking of implementing soft/hard links as just in-memory states, nothing on the host. But this doesn't satisfy Ying's use case: the links must be stored on the host FS, so that the first enclave creates the link and the second enclave "finds" this link and uses it.
UNIX Domain Sockets (UDSes) between unrelated Gramine instances
gramine-direct
and make it work: there is aninstance_id
that is used in the UDS name:/gramine/<instance_id>/pipename
.gramine-direct
.)<instance_id>
from the UDS (actually, any pipe) path generation, something breaks in the IPC helper thread.Beta Was this translation helpful? Give feedback.
All reactions