lejunzhu

Results 41 comments of lejunzhu

> I see. Do you think people use it for _writable_ files as well? I do use them a lot, especially when people want to quickly evaluate an existing app...

> Yes, I think this is reasonable. People can always just use `type = "chroot"` which will become a pass-through with this proposal anyway. And when they are ready, they...

Maybe you can try adding loader.argv0_override="/usr/libexec/platform-python3.6" to the manifest? I think python guesses the path from argv[0].

I tried to run the helloworld code on nodejs 14 and latest Gramine. It doesn't crash, and the log is: ``` [P1:T1:node] debug: ipf_open: handle: 0, path: 'mrenclave//hello.txt', real size:...

> @lejunzhu Have you encountered/debugged this issue with `fs.appendFileSync()`? Looks like a genuine bug... According to this comment, Gramine doesn't support O_APPEND today: https://github.com/gramineproject/gramine/blob/d6dda2191184123cbc1897267e0404dbe4b77e90/LibOS/shim/include/shim_flags_conv.h#L35 I think I saw this problem...

> another another bug: fs.existsSync always get returned value "false". this function is used to be sure "the file/path exists?" Here's what I got with commit 01e01513e08b0d8ec70f074dda6de8f539e4611f. Could you please...

> At least that's how it is supposed to work. But it looks like we have some bug in the Gramine LibOS implementation -- at least for Protected/Encrypted Files. I...

If you add this to CI-Example bash manifest.template, the result is correct: ``` ... loader.env.TZ = ":/etc/localtime" ... fs.mount.etc.type = "chroot" fs.mount.etc.path = "/etc" fs.mount.etc.uri = "file:/etc" ... sgx.allowed_files =...

Looking at shim_do_gettimeofday(), tz is never touched, hence the initial value 60 is always there. Is it because this argument is obsolete or a bug?

> > `loader.env.TZ = ":/etc/localtime"` > > Yes, The workaround works for localtime and date. Native app doesn't need a TZ env to get time zone, OS doesn't provide TZ...