Writing to encrypted path resulting in Permission denied #1958
-
Hey Gramine team, Is it possible to write to an encrypted file using pwrite? According to the pwrite man page:
So I am wondering if this is dissallowed on Gramine, because if it is, then that explains it and I need to think on a alternative to patch it. Also as additional notes, I also tested if the fd was valid and open to write to using:
But pwrite keeps returning EACCES Any clues what might be wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
I think this is supported.
gramine/libos/src/fs/libos_fs_encrypted.c Lines 580 to 584 in 6167772 |
Beta Was this translation helpful? Give feedback.
Yes, I think file locking for serialized access would work. Pls see the details w/ caveats below:
gramine/Documentation/devel/features.md
Lines 2225 to 2258 in a9d08fd