platform_system_core/debuggerd/seccomp_policy
Elliott Hughes 32d3cdda22 libdebuggerd: fix process uptime.
I was here because we have a case where timeout(1) kills logcat, but
debuggerd alleges that the process that was killed had started less than
a second ago. I'm not sure this is the problem there, but I did notice
that far too many tombstones were claiming improbably short process
uptimes. It turns out that the code was measuring the *thread* uptime,
not the *process* uptime.

Also simplify the code a bit by switching to sysinfo(2) rather than
reading a file.

Test: manual, plus the existing unit test
Change-Id: Ie2810b1d5777ad9182be92bfb3f60795dc978b24
2021-09-21 17:30:30 -07:00
..
crash_dump.arm.policy libdebuggerd: fix process uptime. 2021-09-21 17:30:30 -07:00
crash_dump.arm64.policy libdebuggerd: fix process uptime. 2021-09-21 17:30:30 -07:00
crash_dump.policy.def libdebuggerd: fix process uptime. 2021-09-21 17:30:30 -07:00
crash_dump.x86.policy libdebuggerd: fix process uptime. 2021-09-21 17:30:30 -07:00
crash_dump.x86_64.policy libdebuggerd: fix process uptime. 2021-09-21 17:30:30 -07:00
generate.sh debuggerd: add seccomp policies and tests. 2018-01-18 13:49:56 -08:00