Todd C. Miller
6c3d20cb41
Convert PVS-Studio comment to ANSI C.
2018-10-26 08:39:09 -06:00
Todd C. Miller
64e5d34c57
Add comments in .c files so PVS-Studio will check them.
2018-10-21 08:46:05 -06:00
Todd C. Miller
2121693879
Move definition of TIME_T_MAX to sudo_util.h
2018-09-24 14:21:58 -06:00
Todd C. Miller
512e0be834
Use btime in /proc/stat to determine system start time instead of
...
/proc/uptime. Fixes the process start time test when run from a
container where /proc/uptime is the uptime of the container but the
process start time is relative to the host system boot time.
Bug #829
2018-04-04 11:28:53 -06:00
Todd C. Miller
ae8917a070
Verify start time of the current process, allowing for some clock
...
drift. For Linux, process start time is relative to boot time, not
wallclock time.
2017-12-19 10:10:54 -07:00
Todd C. Miller
6ce85b1746
Trivial test for process start time. We don't try to check the
...
resulting timespec as it differs by platform. On most it is wallclock
time, on others it is relative to boot time (Linux).
2017-12-18 10:35:37 -07:00