crash-manager: don't store in zip archive files referred by symlinks 04/171104/7
authorMateusz Moscicki <m.moscicki2@partner.samsung.com>
Mon, 26 Feb 2018 12:22:47 +0000 (13:22 +0100)
committerKarol Lewandowski <k.lewandowsk@samsung.com>
Fri, 16 Mar 2018 14:03:09 +0000 (14:03 +0000)
commit1d0d800b2129a1b2521ffc603fc247daffb18850
tree09efe9a32d8df339f51258d5126ce959f45080b4
parent9d77520efa78ba52489b5a1136fb9717f554b747
crash-manager: don't store in zip archive files referred by symlinks

minicoredump (will be introduced in next commit) has an option to save
/proc/<pid>/ files in report. As /proc/<pid>/fd/* contains symlinks, the
created archive will contain the contents of these fds. This is
undesirable as files might be quite big and contain private (sensitive)
data.

This commit adds -y option to zip, which will allow storing symlinks to
actual files instead of their contents (as it was available originally
under /proc/<pid>/)"

Change-Id: I0a7c9211eab1acd39da7db3930e967ddab5eceef
src/crash-manager/crash-manager.c