platform/core/system/crash-worker.git
8 years agocrash-pipe: Add utility to process core sent to stdin 43/60043/3
Karol Lewandowski [Mon, 22 Feb 2016 17:11:30 +0000 (18:11 +0100)]
crash-pipe: Add utility to process core sent to stdin

This is going to be used as systemd-coredump replacement.

Change-Id: Ib7074ba5e10990d8487b1693a8c92431cdee6964

8 years agoMerge "path: change coredump path using changed policy" into tizen accepted/tizen/common/20160314.065520 accepted/tizen/ivi/20160310.052638 accepted/tizen/mobile/20160310.052528 accepted/tizen/tv/20160310.052555 accepted/tizen/wearable/20160310.052611 submit/tizen/20160229.000000 submit/tizen/20160305.131859 submit/tizen_common/20160311.185532
Taeyoung Kim [Mon, 29 Feb 2016 03:14:47 +0000 (19:14 -0800)]
Merge "path: change coredump path using changed policy" into tizen

8 years agosmack: change exec label of dump_systemstate to "System" 92/59892/1 accepted/tizen/ivi/20160222.043629 accepted/tizen/mobile/20160222.043444 accepted/tizen/tv/20160222.043518 accepted/tizen/wearable/20160222.043554 submit/tizen/20160222.012437
Taeyoung Kim [Fri, 19 Feb 2016 07:53:41 +0000 (16:53 +0900)]
smack: change exec label of dump_systemstate to "System"

- Previously, the exec label of dump_systemstate is not set (default "_").
  Thus reading vconf keys occurs smack deny issues.

- Now, the exec_label is changed to "System". Thus the smack deny issues
  are fixed. Other operations except reading vconf keys are same.

Change-Id: Ifdf7c1c31aec77343e45775cea15b1f1a4a0853c
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agopath: change coredump path using changed policy 28/59628/1
Taeyoung Kim [Wed, 17 Feb 2016 04:39:46 +0000 (13:39 +0900)]
path: change coredump path using changed policy

- Previously, coredump path was /opt/usr/share/crash.
  TZ_SYS_SHARE was used to get the path /usr/share.
  However, the definition of TZ_SYS_SHARE is changed
  to /opt/share, and thus there is no need to add
  /opt in front of the TZ_SYS_SHARE now.

Change-Id: Ib50fed4935135fa00bb3a07275da685de153dd7a
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agodump_systemstate: modify checking dlog backend to adapt newly patched dlog 22/56722/1 accepted/tizen/ivi/20160218.023959 accepted/tizen/mobile/20160112.224410 accepted/tizen/tv/20160112.224425 accepted/tizen/wearable/20160112.224446 submit/tizen/20160112.094446 submit/tizen_common/20160218.142243 submit/tizen_ivi/20160217.000000 submit/tizen_ivi/20160217.000003
Kichan Kwon [Tue, 12 Jan 2016 09:11:35 +0000 (18:11 +0900)]
dump_systemstate: modify checking dlog backend to adapt newly patched dlog

Change-Id: Ib2e615ed871cfc0b3578a7d3fc8523b45b953699
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
8 years agocrash: change strcmp() to strncmp() 80/55480/2 accepted/tizen/mobile/20151228.063717 accepted/tizen/tv/20151228.063744 accepted/tizen/wearable/20151228.063821 submit/tizen/20151228.041818 submit/tizen_common/20151229.142028 submit/tizen_common/20151229.144031 submit/tizen_common/20151229.154718
Taeyoung Kim [Thu, 24 Dec 2015 03:04:48 +0000 (12:04 +0900)]
crash: change strcmp() to strncmp()

- overflow issues can be occurred by strcmp()
  thus strcmp()s are changed to strncmp()

Change-Id: Icc1d3b22bffa56680f6d9b3e54c1661ffe75a8eb
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agocrash: change path for dump to tmpfs 03/54903/2 accepted/tizen/mobile/20151221.050637 accepted/tizen/tv/20151221.050655 accepted/tizen/wearable/20151221.050716 submit/tizen/20151221.014746
Taeyoung Kim [Fri, 18 Dec 2015 12:00:27 +0000 (21:00 +0900)]
crash: change path for dump to tmpfs

- When power is turned off during zipping coredump file,
  the coredump files are remained even if target is rebooted.
- By changing the path to tmpfs, the dumps are removed
  when power is turned off before completing makging dump.

Change-Id: I8718bee8777a3ce6977f07bc975cdce772f5b8ad
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agocrash: remove temporary dump files during booting 82/54882/2
Taeyoung Kim [Fri, 18 Dec 2015 10:48:29 +0000 (19:48 +0900)]
crash: remove temporary dump files during booting

- If power is turned off during making coredump file,
  temporary dump files are stored in /var/lib/systemd/coredump.
  The dump files cannot be used and their sizes are very large.
  Thus they are removed from the path during booting.

- After reboot, previous coredummps are not necessary,
  and coredumpctl is not working for them since there is
  no information in journal. Thus they are removed form the
  path during booting.

Change-Id: I6765da9474f4668d13a4563950b274b0871dcffb
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agodump_systemstate: check dlog backend by /etc/dlog_backend node 93/54593/1 accepted/tizen/mobile/20151217.022339 accepted/tizen/tv/20151217.022112 accepted/tizen/wearable/20151217.022216 submit/tizen/20151216.101812
Taeyoung Kim [Wed, 16 Dec 2015 09:37:00 +0000 (18:37 +0900)]
dump_systemstate: check dlog backend by /etc/dlog_backend node

- If the backend of dlog is logger, dlogutil works well.
  But if the backend of dlog is journal, dlogutil is not stopped
  since it uses "journalctl -f" command. Thus dump_systemstate
  is not stopped.
- Thus dump_systemstate checks the backend of dlog. If the backend
  is journal, journalctl is used directly instead of dlogutil.

Change-Id: I654fc58ae47ab0777cf7e68e618cd3b9d9ae5a80
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agocrash: change dump path to /opt/usr/share/crash 14/54514/1
Taeyoung Kim [Wed, 16 Dec 2015 00:44:23 +0000 (09:44 +0900)]
crash: change dump path to /opt/usr/share/crash

Change-Id: Ie4a7b17a85346d8e6ac023c604a1b41251b0d171
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agosysctl: update core_pattern by sysctl 15/54215/2 submit/tizen/20151215.234045
Taeyoung Kim [Mon, 14 Dec 2015 07:38:33 +0000 (16:38 +0900)]
sysctl: update core_pattern by sysctl

- core_pattern should be updated by sysctl command
  or conf file in /usr/lib/sysctl.d
- /usr/lib/sysctl.d/99-crash-manager.conf is used
  to update the operation for crash situation

Change-Id: I075667349d30e88f64e4dc42168334cdf2f5a10f
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agocommon: change directory pathes to macros 20/54220/1
Taeyoung Kim [Mon, 14 Dec 2015 07:25:29 +0000 (16:25 +0900)]
common: change directory pathes to macros

- hard-coded directory pathes are exchanged to macros

Change-Id: I8bc295b816ef1e772358f5f60820895168e78be6
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agocrash: zip crash informations to one file 88/53488/1 accepted/tizen/mobile/20151208.130302 accepted/tizen/tv/20151208.130315 accepted/tizen/wearable/20151208.130333 submit/tizen/20151208.095021
Taeyoung Kim [Mon, 7 Dec 2015 08:30:13 +0000 (17:30 +0900)]
crash: zip crash informations to one file

- The size of dump file is very large. Thus zipping
  is required to store the informations

Change-Id: I7672083386be8b7ade0dbf5e79d1155099c8026d
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agocrash: use journalctl if backend of dlog is journal 83/53483/1
Taeyoung Kim [Mon, 7 Dec 2015 08:09:43 +0000 (17:09 +0900)]
crash: use journalctl if backend of dlog is journal

- If backend of dlog is journal, dlogutil will
  be stopped and the crash-manager.sh is also held.
  Thus journalctl is used after checking /dev/log_* file

Change-Id: I4720b2e6cb84c399e6a63ce1ab45f8d12c7e055b
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agocrash: make crash info path to be changeable 55/53455/2
Taeyoung Kim [Mon, 7 Dec 2015 05:43:41 +0000 (14:43 +0900)]
crash: make crash info path to be changeable

- The crash info path of Platform is /opt/usr/share/crash/dump
- The path can be changed by manufacturer and thus the path
  is defined in spec file.

Change-Id: I59039910d558b4cd292362efce1c232bd59991b8
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agocrash: add crash module to use coredumpctl
taeyoung [Thu, 26 Nov 2015 09:37:14 +0000 (18:37 +0900)]
crash: add crash module to use coredumpctl

- For Tizen 2.4, Crash-manager and sys-assert are used
  to getting crash information.
- For Tizen 3.0 coredumpctl is supported, and thus
  coredumpctl is used to get information and store
  coredump file.

Signed-off-by: taeyoung <ty317.kim@samsung.com>
9 years agoInitial empty repository master sandbox/sunm71/test
Jeonghoon Jeon [Thu, 27 Nov 2014 04:48:27 +0000 (20:48 -0800)]
Initial empty repository