A lightweight process isolation tool that utilizes Linux namespaces, cgroups, rlimits and seccomp-bpf syscall filters, leveraging the Kafel BPF language for enhanced security.
I'd like to see logs with timestamps with millisecond precision.
I'm not super familiar with C++, but I think https://github.com/google/nsjail/blob/master/util.cc#L311 is where the change would need to be. It looks like the timeToStr utility function is outputting a string to second precision, so maybe using something like gettimeofday as mentioned on stackexchange would work?
Would a change like this make sense? If so, I'm happy to take a stab at it.
I'd like to see logs with timestamps with millisecond precision.
I'm not super familiar with C++, but I think https://github.com/google/nsjail/blob/master/util.cc#L311 is where the change would need to be. It looks like the
timeToStr
utility function is outputting a string to second precision, so maybe using something likegettimeofday
as mentioned on stackexchange would work?Would a change like this make sense? If so, I'm happy to take a stab at it.