commit | 6647ef54ebfd5c1059ab89c6f965a7d55eee08c1 | [log] [tgz] |
---|---|---|
author | Nandana Dutt <nandana@google.com> | Thu Jul 12 17:02:57 2018 +0100 |
committer | Nandana Dutt <nandana@google.com> | Tue Jul 17 11:48:31 2018 +0100 |
tree | acf65ce1b2ca16441b78e5c1afae997cfd607d84 | |
parent | 89b325a9b9127a43a96be1df1992a84404217d23 [diff] |
Fix system server leaked fd dump 'lsof' was execed to dump the open file descriptors, but it does not have the same permissions as system_server, presumably due to SELinux restrcitions. Now we get a list of open file descriptors from /proc/<pid>/fd and resolve them via readlink, all inside system_server. Test: Manually tested on a device and compared with the output of adb lsof. Change-Id: I4db8369a3a2bb0009c776277a8a6f92f72857ef8