platform/core/system/crash-worker.git
3 years agoRelease 5.5.44 22/252822/1 submit/tizen_5.5/20210202.125803
Mateusz Moscicki [Tue, 2 Feb 2021 12:38:35 +0000 (13:38 +0100)]
Release 5.5.44

Change-Id: If1981d99b883cd1f322597cc5514db555effc505

3 years agocrash-manager: Set primary group 21/252821/1
Mateusz Moscicki [Tue, 2 Feb 2021 10:01:06 +0000 (11:01 +0100)]
crash-manager: Set primary group

Change-Id: Id9e811e5cd4236a0ec7641295e08bb4f49827ab7

3 years agoMerge changes Id2dc4d93,I4f7c5095 into tizen_5.5 submit/tizen_5.5/20210114.151141
Mateusz Mościcki [Thu, 14 Jan 2021 15:00:05 +0000 (15:00 +0000)]
Merge changes Id2dc4d93,I4f7c5095 into tizen_5.5

* changes:
  Release 5.5.43
  Fix dbus policy for livedump_pid

3 years agoRelease 5.5.43 21/251521/1
Mateusz Moscicki [Thu, 14 Jan 2021 14:11:13 +0000 (15:11 +0100)]
Release 5.5.43

Change-Id: Id2dc4d931ae631a2f2b146f38a213476fa457835

3 years agoFix dbus policy for livedump_pid 20/251520/1
Mateusz Moscicki [Thu, 14 Jan 2021 13:30:10 +0000 (14:30 +0100)]
Fix dbus policy for livedump_pid

Change-Id: I4f7c5095edcfc4c27b33c982c2c82e415a27e646

3 years agoFix null dereferences 47/249347/1
Michal Bloch [Mon, 7 Dec 2020 21:16:07 +0000 (22:16 +0100)]
Fix null dereferences

Change-Id: Id23b9aaad60752f797783f9ccc6f9bbfa9357941
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
(cherry picked from commit a9a8f5e3955f55e03a05878a381257085dc02951)

3 years agoRelease 5.5.42 20/246520/1
Mateusz Moscicki [Fri, 30 Oct 2020 11:23:03 +0000 (12:23 +0100)]
Release 5.5.42

Change-Id: If159756bf6815e5c509028b5f97965f2e7cb11c4

4 years agoFix coverity issue - untrusted divisor 71/244171/1
Mateusz Moscicki [Tue, 15 Sep 2020 11:00:44 +0000 (13:00 +0200)]
Fix coverity issue - untrusted divisor

Change-Id: I9be328f16c0a3a1b59652656f496218b2c51cc7d

4 years agoRelease 5.5.41 29/238829/1 accepted/tizen_5.5_unified_wearable_hotfix tizen_5.5_wearable_hotfix accepted/tizen/5.5/unified/20200724.222804 accepted/tizen/5.5/unified/wearable/hotfix/20201027.113402 submit/tizen_5.5/20200722.120034 submit/tizen_5.5/20200722.131259 submit/tizen_5.5_wearable_hotfix/20201026.184304
Karol Lewandowski [Fri, 17 Jul 2020 14:36:51 +0000 (16:36 +0200)]
Release 5.5.41

Change-Id: I84fe783e7033b291bb18d6f41cfc7c9ec0d17c9d

4 years agoChange the way ELF file are parsed 35/238735/2
Mateusz Moscicki [Tue, 30 Jun 2020 08:47:26 +0000 (10:47 +0200)]
Change the way ELF file are parsed

Change-Id: I737ec17f8a5a6e71efe24f7f44ad1e08775d24b7

4 years agoMerge branch 'tizen' into tizen_5.5 93/234993/1 accepted/tizen/5.5/unified/20200603.230103 submit/tizen_5.5/20200601.114801 submit/tizen_5.5/20200602.093504
Mateusz Moscicki [Mon, 1 Jun 2020 10:34:09 +0000 (12:34 +0200)]
Merge branch 'tizen' into tizen_5.5

Change-Id: Ic9c38d8dc354da3f82e7c9e10fb54eea092f7467

4 years agoRelease 6.0.18 37/234237/3 accepted/tizen/unified/20200602.133237 submit/tizen/20200601.114633 submit/tizen/20200601.141752
Mateusz Moscicki [Fri, 22 May 2020 14:30:16 +0000 (16:30 +0200)]
Release 6.0.18

This release brings option that allows to specify whether the process is
to be released as soon as all the necessary data has been read or only
after the entire report has been created.

Change-Id: Icb2cab7884966505a26c97aa86745721252b6bb7

4 years agoFix 'full_core' system test 92/234992/1
Mateusz Moscicki [Tue, 26 May 2020 12:59:31 +0000 (14:59 +0200)]
Fix 'full_core' system test

Change-Id: I9bd5831f134141546fe435b9042b87a13ed39c1b

4 years agoAdd option to release the crashed process as soon as possible 96/234096/6
Mateusz Moscicki [Thu, 21 May 2020 09:28:12 +0000 (11:28 +0200)]
Add option to release the crashed process as soon as possible

Change-Id: Idd951c4b8c50ba1e29524339358475acdbacd382

4 years agoMerge "Read the /proc/<PID>/comm earlier" into tizen
Karol Lewandowski [Fri, 22 May 2020 14:12:03 +0000 (14:12 +0000)]
Merge "Read the /proc/<PID>/comm earlier" into tizen

4 years agoRead the /proc/<PID>/comm earlier 95/234095/2
Mateusz Moscicki [Thu, 21 May 2020 10:55:24 +0000 (12:55 +0200)]
Read the /proc/<PID>/comm earlier

Change-Id: Ied692bc4e770c9aa3b8f03f7a2515214bc40cb63

4 years agoClarify logs related to coredump handling 77/234077/2
Karol Lewandowski [Thu, 21 May 2020 10:48:30 +0000 (12:48 +0200)]
Clarify logs related to coredump handling

The coredump should not be created when minicoredumper (-s) works
correctly.  Make this clear in code and logs.

Change-Id: I2e4e160a46ac4be25143f310ffc336b121530cc8

4 years agoMerge branch 'tizen' into tizen_5.5 92/232592/1 accepted/tizen/5.5/unified/20200507.152455 accepted/tizen/5.5/unified/20200507.152459 submit/tizen_5.5/20200506.154707 submit/tizen_5.5/20200507.084734
Mateusz Moscicki [Wed, 6 May 2020 15:15:16 +0000 (17:15 +0200)]
Merge branch 'tizen' into tizen_5.5

Change-Id: Ifc34de59ce651c51058f63bf5035ba94663d9f2c

4 years agoRelease 6.0.17 91/232591/1 accepted/tizen/unified/20200510.220332 submit/tizen/20200506.154637 submit/tizen/20200507.084828
Mateusz Moscicki [Wed, 6 May 2020 15:11:51 +0000 (17:11 +0200)]
Release 6.0.17

This release brings fixes

Change-Id: Iebcb0ec695edf3c589507c9d9a667fac5bb8cab7

4 years agoFix: app ids repeats in app's manifest xmls search logic 86/232586/7
Wiktor Gerstenstein [Wed, 6 May 2020 13:09:27 +0000 (15:09 +0200)]
Fix: app ids repeats in app's manifest xmls search logic

Change-Id: I3fe0ca9cfef80077c9d3abb40fb439fc0bb87203

4 years agoFix Coverity issue 87/232587/1
Mateusz Moscicki [Wed, 6 May 2020 10:52:36 +0000 (12:52 +0200)]
Fix Coverity issue

dirname() could return pointer to the local variable

Change-Id: I886df1d2abf73d49f20c11e7ed5eef4595d1c6c5

4 years agoCheck if the file operation failed by lack of disk space 63/232463/3
Mateusz Moscicki [Tue, 5 May 2020 15:41:39 +0000 (17:41 +0200)]
Check if the file operation failed by lack of disk space

Change-Id: I3921e4631d9d2a84110af0681777bae15e62cfbc

4 years agoMerge "Returns unique file paths from the maps file" into tizen
Karol Lewandowski [Tue, 5 May 2020 19:36:57 +0000 (19:36 +0000)]
Merge "Returns unique file paths from the maps file" into tizen

4 years agoReturns unique file paths from the maps file 50/232450/1
Mateusz Moscicki [Tue, 5 May 2020 08:01:23 +0000 (10:01 +0200)]
Returns unique file paths from the maps file

This prevents duplicate entries in the *.so_info file

Change-Id: I49c4d4949d4d0075b056891557fe027d82b017a0

4 years agoMerge branch 'tizen' into tizen_5.5 22/232422/1 accepted/tizen/5.5/unified/20200505.133412 submit/tizen_5.5/20200504.104440
Mateusz Moscicki [Mon, 4 May 2020 08:00:07 +0000 (10:00 +0200)]
Merge branch 'tizen' into tizen_5.5

Change-Id: I593619b2394cc321a92cc76582ac433c86de85c5

4 years agoRelease 6.0.16 17/232317/1 submit/tizen/20200430.145229
Mateusz Moscicki [Thu, 30 Apr 2020 13:17:48 +0000 (15:17 +0200)]
Release 6.0.16

This release brings following changes:
 - Include packages in the *.so_info file that are associated with
   *.ni.dll
 - Copy application manifest xml

Change-Id: I12bf5e8e227f04e4d6b4714abe56c9944c508545

4 years agoAdd app's manifest xmls search logic 50/232150/10
Wiktor Gerstenstein [Tue, 28 Apr 2020 16:55:49 +0000 (18:55 +0200)]
Add app's manifest xmls search logic

Change-Id: I585cdc6e395efda52390c6059989d4da6afe5edb

4 years agoInclude packages in so_info file that are associated with *.ni.dll 61/231561/3
Mateusz Moscicki [Wed, 22 Apr 2020 10:04:25 +0000 (12:04 +0200)]
Include packages in so_info file that are associated with *.ni.dll

Change-Id: I114a866da9fc70915b616b39869d23cb9e7f22c7

4 years agoRemove duplicate g_object_unref 13/231513/2
INSUN PYO [Wed, 22 Apr 2020 07:39:39 +0000 (16:39 +0900)]
Remove duplicate g_object_unref

Reference:
 https://developer.gnome.org/gio/stable/GDBusConnection.html#g-dbus-connection-call-sync
 If the parameters GVariant is floating, it is consumed. This allows convenient 'inline' use of g_variant_new(), e.g.:

Change-Id: Icacb1a3e8d738a990fa498815bbadfe72bdf2349

4 years agoMerge branch 'tizen' into tizen_5.5 04/231004/1 accepted/tizen/5.5/unified/20200420.142844 submit/tizen_5.5/20200416.122929
Karol Lewandowski [Thu, 16 Apr 2020 12:01:49 +0000 (14:01 +0200)]
Merge branch 'tizen' into tizen_5.5

Change-Id: Idff9f02a6f028005c1fef1755dac19176f8ca7fa

4 years agoRelease 6.0.15 03/231003/1 accepted/tizen/unified/20200419.223914 submit/tizen/20200416.123008
Karol Lewandowski [Thu, 16 Apr 2020 11:36:07 +0000 (13:36 +0200)]
Release 6.0.15

This release brings following changes:
 - tizen-manifest.xml is included in report for tizen applications
 - unused temporary directories are cleaned up when creating new reports
 - shared object info is properly collected for binaries without build id

Change-Id: I955a6296b5fd422d66344c0a8bbda6fba75360db

4 years agoUse bool instead of int in remove.*() functions 38/230838/3
Mateusz Moscicki [Tue, 14 Apr 2020 11:36:19 +0000 (13:36 +0200)]
Use bool instead of int in remove.*() functions

In the modified places the int type was used as a bool, so the function
signatures were changed.

Change-Id: Ic172432c33c06d40c1f71ca8137606d7ea102acf

4 years agoMove unlocking and removing of the temp dir to a separate function 37/230837/2
Mateusz Moscicki [Tue, 14 Apr 2020 09:55:41 +0000 (11:55 +0200)]
Move unlocking and removing of the temp dir to a separate function

Change-Id: If38fcfda5737e8d39cb496692ca663e2a3d7c6a2

4 years agoAdd locking and cleaning temporary directory 63/230063/5
Mateusz Moscicki [Fri, 3 Apr 2020 13:42:39 +0000 (15:42 +0200)]
Add locking and cleaning temporary directory

This commit solves the problem of leaving many temporary directories
that were not deleted if the crash-worker has not finished working
properly.

Change-Id: I415403a2531b6e41ebf20a3b185790d9e21a8ca3

4 years agoFix report_basic test 65/230065/5
Mateusz Moscicki [Tue, 7 Apr 2020 08:30:24 +0000 (10:30 +0200)]
Fix report_basic test

Add a delay to m ake sure that crash-manager has the time to run

Change-Id: I26fd47126d1d8b14ed8da6547f88275e2cbba116

4 years agoFix libcrash-service test 64/230064/5
Mateusz Moscicki [Tue, 7 Apr 2020 08:06:06 +0000 (10:06 +0200)]
Fix libcrash-service test

Because of second trap, core_pattern didn't have the correct value
restored

Change-Id: I71c6f2c401c293769caa816fe2e767b30578d7b6

4 years agocrash-manager: Clarify when tizen-manifest.xml is copied 18/230218/2
Karol Lewandowski [Wed, 8 Apr 2020 14:33:50 +0000 (16:33 +0200)]
crash-manager: Clarify when tizen-manifest.xml is copied

Change-Id: Iba48fc54f9809c077b5ebc0fbe8463186abd767e

4 years agocrash-manager: Fix free of invalid pointer returned by dirname() 17/230217/2
Karol Lewandowski [Wed, 8 Apr 2020 14:33:18 +0000 (16:33 +0200)]
crash-manager: Fix free of invalid pointer returned by dirname()

This fixes SVACE issue (overwriting dst_dirpath pointer by dirname(3)
result, which should not be freed).

Change-Id: Iad2ed92c6111f8133e3c6363876ff3fad80557f3

4 years agoMerge "Add tizen-manifest.xml to crash-reports" into tizen
Karol Lewandowski [Wed, 8 Apr 2020 13:02:40 +0000 (13:02 +0000)]
Merge "Add tizen-manifest.xml to crash-reports" into tizen

4 years agoFix build id reading when the binary don't have it 56/230056/1
Mateusz Moscicki [Tue, 7 Apr 2020 11:27:12 +0000 (13:27 +0200)]
Fix build id reading when the binary don't have it

Change-Id: I82db306cad980104e096e8b738db24fc5e3547bb

4 years agoAdd tizen-manifest.xml to crash-reports 03/225403/23
Wiktor Gerstenstein [Wed, 19 Feb 2020 16:37:21 +0000 (17:37 +0100)]
Add tizen-manifest.xml to crash-reports

Change-Id: I6fc7f723ad33cd825e2c5f85b42c7b134a0f1f8b

4 years agoRelease 5.6.36 60/229660/1 accepted/tizen/5.5/unified/20200403.153233 submit/tizen_5.5/20200402.132109
Karol Lewandowski [Thu, 2 Apr 2020 13:06:50 +0000 (15:06 +0200)]
Release 5.6.36

Change-Id: I9ce23297693b869fd4189c0eacbd24347e4f66ed

4 years agoRelease 6.0.14 48/229648/3 accepted/tizen/unified/20200403.153141 submit/tizen/20200402.130550
Karol Lewandowski [Thu, 2 Apr 2020 11:40:03 +0000 (13:40 +0200)]
Release 6.0.14

This release brings /opt/usr reporting to dump_systemstate utility.

Change-Id: I1aada1d58681272703b7c64181d0c7aceccc3d84

4 years agodump_systemstate: report ran command faithfully 52/229652/2
Michal Bloch [Thu, 2 Apr 2020 12:14:45 +0000 (14:14 +0200)]
dump_systemstate: report ran command faithfully

Change-Id: Id4b830804ae420b60a7250c220a56a5695f80cff
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
4 years agoMerge "dump_systemstate: Add /opt/usr disk usage section" into tizen
Karol Lewandowski [Thu, 2 Apr 2020 13:02:37 +0000 (13:02 +0000)]
Merge "dump_systemstate: Add /opt/usr disk usage section" into tizen

4 years agoMerge "dump_systemstate: Use compile-time parameter check in get_disk_used_percent...
Karol Lewandowski [Thu, 2 Apr 2020 12:59:48 +0000 (12:59 +0000)]
Merge "dump_systemstate: Use compile-time parameter check in get_disk_used_percent()" into tizen

4 years agoMerge "Fix cmp_backtraces test" into tizen
Karol Lewandowski [Thu, 2 Apr 2020 12:58:04 +0000 (12:58 +0000)]
Merge "Fix cmp_backtraces test" into tizen

4 years agoMerge "packaging: remove libebl dependency" into tizen
Karol Lewandowski [Thu, 2 Apr 2020 12:49:38 +0000 (12:49 +0000)]
Merge "packaging: remove libebl dependency" into tizen

4 years agoFix cmp_backtraces test 66/228966/2
Mateusz Moscicki [Thu, 26 Mar 2020 13:23:28 +0000 (14:23 +0100)]
Fix cmp_backtraces test

Change-Id: Ia628adfb80a4945d34e9847e864c903106dba3e6

4 years agodump_systemstate: Add /opt/usr disk usage section 47/229647/3
Karol Lewandowski [Thu, 2 Apr 2020 11:37:03 +0000 (13:37 +0200)]
dump_systemstate: Add /opt/usr disk usage section

Change-Id: Ib52cba397f7272c14dcb7623efc85535d4d98d8e

4 years agodump_systemstate: Use compile-time parameter check in get_disk_used_percent() 46/229646/3
Karol Lewandowski [Thu, 2 Apr 2020 11:32:36 +0000 (13:32 +0200)]
dump_systemstate: Use compile-time parameter check in get_disk_used_percent()

Guard functions with assert as it's programming error to invoke
it with null path.

Change-Id: I3a312f90c0553c1dd9e9233551c0d42b89c260f7

4 years agodump_systemstate: Also list files when reporting /tmp disk usage 45/229645/1
Karol Lewandowski [Thu, 2 Apr 2020 08:55:30 +0000 (10:55 +0200)]
dump_systemstate: Also list files when reporting /tmp disk usage

Change-Id: I0ea99ca0a05a7d620a4462d6dc44257aa6e4bee0

4 years agopackaging: remove libebl dependency 41/229241/1
Dongkyun Son [Mon, 30 Mar 2020 12:23:37 +0000 (21:23 +0900)]
packaging: remove libebl dependency

libebl is not needed anymore.

Change-Id: If88fa16b361c70c9155e5240a03cbede3e235074
Signed-off-by: Dongkyun Son <dongkyun.s@samsung.com>
4 years agoconfig: iniparser 3.x fix: Remove needless **keys allocation 73/228373/1
Karol Lewandowski [Fri, 20 Mar 2020 17:06:06 +0000 (18:06 +0100)]
config: iniparser 3.x fix: Remove needless **keys allocation

Change-Id: I823d77c9a16584d7eb04b4c5c8d0e242f0d7c865

4 years agoRelease 5.5.35 68/228368/1 accepted/tizen/5.5/unified/20200321.004529 submit/tizen_5.5/20200320.153547
Karol Lewandowski [Fri, 20 Mar 2020 15:15:21 +0000 (16:15 +0100)]
Release 5.5.35

Change-Id: I35106646c5221c853aedae6cf2c53b4895a8d318

4 years agoRelease 6.0.13 66/228366/1 accepted/tizen/unified/20200321.043827 submit/tizen/20200320.153607
Karol Lewandowski [Fri, 20 Mar 2020 15:12:50 +0000 (16:12 +0100)]
Release 6.0.13

This release introduces ability to disable creation of .so_info files.

Change-Id: I6bbc308e0d15b1872e43fd5c5f89142d76b9943d

4 years agosystem tests: Sort entries 04/228204/1
Karol Lewandowski [Thu, 19 Mar 2020 14:31:38 +0000 (15:31 +0100)]
system tests: Sort entries

Change-Id: I8b5fea6bcd1a9cc50b9efdf96820b444a96d534f

4 years agoAllow disabling so_info generation via config file 03/228203/1
Karol Lewandowski [Thu, 19 Mar 2020 14:06:45 +0000 (15:06 +0100)]
Allow disabling so_info generation via config file

Change-Id: I89d3b687225a7a85498344c9dd84c17ba4f3e33b

4 years agoRelase 5.5.34: Merge branch 'tizen' into tizen_5.5 28/227628/1 accepted/tizen/5.5/unified/20200319.094146 submit/tizen_5.5/20200313.115618
Karol Lewandowski [Thu, 12 Mar 2020 14:20:18 +0000 (15:20 +0100)]
Relase 5.5.34: Merge branch 'tizen' into tizen_5.5

Change-Id: I843c0462064ed23efca4101d7025f6426d48213e

4 years agoRelease 6.0.12 53/227553/1 accepted/tizen/unified/20200315.214856 submit/tizen/20200313.115636
Karol Lewandowski [Thu, 12 Mar 2020 12:34:30 +0000 (13:34 +0100)]
Release 6.0.12

Notable features & changes:

 - dump_systemstate: move information about most of the programs to config files
 - dump_systemstate: add cmdflag= and order= support
 - crash-manager, service: add information about C# libraries to package info file (.so_info)
 - whole codebase: reduce default log level to INFO
 - drop separate spec for system-tests

Change-Id: If47fc36e26954309a2c18262f32a69053bab2eb3

4 years agodump_systemstate: Allow passing arbitrary flags for cmdflag= usage 87/227387/3
Karol Lewandowski [Wed, 11 Mar 2020 12:45:37 +0000 (13:45 +0100)]
dump_systemstate: Allow passing arbitrary flags for cmdflag= usage

Change-Id: I0099e5248f5665af41dbbc22ef17932213f68abd

4 years agoSave in the *.so_info records related to C# DLL files. 46/226546/9
Mateusz Moscicki [Tue, 3 Mar 2020 13:14:34 +0000 (14:14 +0100)]
Save in the *.so_info records related to C# DLL files.

Change-Id: Ibee68bec0fdf3ae07c64b1240093269ce51ec6a6

4 years agoCopy address of regions related to C# DLL files. 45/226545/9
Mateusz Moscicki [Tue, 3 Mar 2020 12:43:08 +0000 (13:43 +0100)]
Copy address of regions related to C# DLL files.

Change-Id: Ic2e7e4b78d0ba85efcb6c3735152c5a5bffb395e

4 years agoChange the way the process name is reading 35/227535/2
Mateusz Moscicki [Wed, 11 Mar 2020 09:38:38 +0000 (10:38 +0100)]
Change the way the process name is reading

Applications launched by process pool have a modified
/proc/<pid>/cmdline, so cmdline must be treated in a specific way.  Now
the process name is the content of /proc/<pid>/cmdline to the first
occurrence of ' ' (space) or '\0' (NULL byte).

Change-Id: I3af1b9d1df86540b16ea238baa0f03152545e408
Signed-off-by: Mateusz Moscicki <m.moscicki2@partner.samsung.com>
4 years agoMerge "dump_systemstate: Move most of the runnable programs to configuration files...
Karol Lewandowski [Wed, 11 Mar 2020 13:00:39 +0000 (13:00 +0000)]
Merge "dump_systemstate: Move most of the runnable programs to configuration files" into tizen

4 years agodump_systemstate ordering tests 97/227097/1
Michal Bloch [Mon, 9 Mar 2020 15:24:09 +0000 (16:24 +0100)]
dump_systemstate ordering tests

Change-Id: I17a0dac49bb8b013462d76c8f78be2693c356b3c
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
4 years agodump_systemstate: Move most of the runnable programs to configuration files 76/226276/11
Karol Lewandowski [Fri, 28 Feb 2020 13:50:25 +0000 (14:50 +0100)]
dump_systemstate: Move most of the runnable programs to configuration files

Change-Id: I2b68d40de0f4309cc3a25dd6b2786bf5e0ff0902

4 years agodump_systemstate config: add `order` config entry 67/227067/2
Michal Bloch [Fri, 6 Mar 2020 13:21:45 +0000 (14:21 +0100)]
dump_systemstate config: add `order` config entry

Sort thereby

Change-Id: I1bfe5484a50763297048924d98374b0eaee66cf6
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
4 years agodump_systemstate: Allow extra programs to be turned on/off based on a cmdline flag 83/226283/5
Karol Lewandowski [Fri, 28 Feb 2020 10:25:01 +0000 (11:25 +0100)]
dump_systemstate: Allow extra programs to be turned on/off based on a cmdline flag

Change-Id: I287c46d5286e622c58d772b8063e62f66db82e51

4 years agoconfig: Ignore case of ReportType key values 09/226209/5
Karol Lewandowski [Thu, 27 Feb 2020 17:48:12 +0000 (18:48 +0100)]
config: Ignore case of ReportType key values

Change-Id: Ifb46e382eaf3b56681103b4220a85a93dd9e9847

4 years agoAdd informative messages for crash-worker processes running with high LogLevel 08/226208/6
Karol Lewandowski [Thu, 27 Feb 2020 17:04:16 +0000 (18:04 +0100)]
Add informative messages for crash-worker processes running with high LogLevel

Change-Id: Id7a6e66d3dd371b0efb961195daca98ef42b5260

4 years agolog: Drop _SE logs 07/226207/6
Karol Lewandowski [Wed, 26 Feb 2020 08:29:56 +0000 (09:29 +0100)]
log: Drop _SE logs

These are used incosistently. No benefit from _E/_SE logs known.

Change-Id: If33cd93240ddf6d30e07ada9f23342ae309fce4d

4 years agolog: Make LogLevel statically configurable 06/226206/6
Karol Lewandowski [Wed, 26 Feb 2020 08:24:40 +0000 (09:24 +0100)]
log: Make LogLevel statically configurable

Change-Id: I6d38d777ec5aaef0e8ba71d6d1c91907c4a68057

4 years agoMove system-tests to main .spec 14/225814/4
Karol Lewandowski [Mon, 24 Feb 2020 14:44:54 +0000 (15:44 +0100)]
Move system-tests to main .spec

Change-Id: I675555baab83ce3051401757054bde3cf4317271

4 years agoMerge branch 'tizen' into tizen_5.5 46/225946/1 accepted/tizen/5.5/unified/20200227.121148 submit/tizen_5.5/20200225.160015
Karol Lewandowski [Tue, 25 Feb 2020 15:34:49 +0000 (16:34 +0100)]
Merge branch 'tizen' into tizen_5.5

Change-Id: I6bc0d94fdc65b1e0c16905bb9c935e86fb577117

4 years agoRelease 6.0.11: Hotfix: Do not return pointer to member of destroyed pkgmgr structure 44/225944/2 accepted/tizen/unified/20200227.121108 submit/tizen/20200225.153334
Karol Lewandowski [Tue, 25 Feb 2020 14:51:38 +0000 (15:51 +0100)]
Release 6.0.11: Hotfix: Do not return pointer to member of destroyed pkgmgr structure

Change-Id: Ibe121a4d98cec1fe4aaaf61dd8b321f0c88ddd9a

4 years agoRelease 5.5.32: Use legacy iniparser 36/225936/2 submit/tizen_5.5/20200225.135601
Karol Lewandowski [Mon, 24 Feb 2020 11:21:47 +0000 (12:21 +0100)]
Release 5.5.32: Use legacy iniparser

This commit partially reverts commit 578274ea61 ("Adjust codebase for
iniparser upgrade (4.x)") as tizen 5.5 uses legacy iniparser.

Change-Id: Ic9b859f1a1d5b0fc0b19ddc6163813caab403d7b

4 years agoMerge branch 'tizen' into tizen_5.5 37/225937/1
Karol Lewandowski [Mon, 24 Feb 2020 11:01:27 +0000 (12:01 +0100)]
Merge branch 'tizen' into tizen_5.5

Change-Id: Ieae3ea80946e1dc066e8ccb29e046af86b693bb2

4 years agoRelease 6.0.10 47/225647/2 accepted/tizen/unified/20200225.224245 submit/tizen/20200221.151318
Karol Lewandowski [Fri, 21 Feb 2020 13:10:17 +0000 (14:10 +0100)]
Release 6.0.10

This release brings ability to exclude certain paths from
dumping via ExcludePaths config section.

Change-Id: I49bf203e836bf610ebb8836adb9af45cb23cabbb

4 years agoIntroduce list of processes excluded from dumping 48/225548/4
Karol Lewandowski [Thu, 20 Feb 2020 15:45:07 +0000 (16:45 +0100)]
Introduce list of processes excluded from dumping

This commits adds ability to specify list of executables
to be excluded from dumping via special new ExcludePaths
section, eg.

   /etc/crash-manager.conf.d/local.conf:
   [ExcludePaths]
   NameNotImportant=/usr/bin/daemon-with-sensitive-information

Change-Id: Ia1c7f6570a8fc243458c48cc8f5284ab461be256

4 years agoutil: Refactor get_cmd_info 46/225646/2
Karol Lewandowski [Fri, 21 Feb 2020 10:54:24 +0000 (11:54 +0100)]
util: Refactor get_cmd_info

Change-Id: Ie7c0584487367f7c059c49b0cc309ef5ac7e6542

4 years agoJanitorial: '<foo>*' -> '<foo> *' 46/225546/3
Karol Lewandowski [Thu, 20 Feb 2020 18:26:08 +0000 (19:26 +0100)]
Janitorial: '<foo>*' -> '<foo> *'

Place pointer signature consistently with rest of codebase.

Change-Id: Ie183a11724fe886036cf2929ca6acdfac989da9b

4 years agoutil: Add function to normalize paths produced by kernel.core_pattern %E 45/225545/3
Karol Lewandowski [Thu, 20 Feb 2020 15:46:03 +0000 (16:46 +0100)]
util: Add function to normalize paths produced by kernel.core_pattern %E

Change-Id: I0afbb7d946d16b2fff293c8697ae2e6d7db53e43

4 years agoComplain when livecoredumper is needed and not installed 44/225544/2
Karol Lewandowski [Thu, 13 Feb 2020 08:30:43 +0000 (09:30 +0100)]
Complain when livecoredumper is needed and not installed

This brings back functionality dropped in 22a0cccdad ("Simplify
struct crash_info setup").

Change-Id: If5ddddee6b99784d7ada9a93e89d3ad975facb6b

4 years agoconfig: Be more verbose about consequence of ExtraScript OOM condition 47/225547/2
Karol Lewandowski [Thu, 20 Feb 2020 18:26:59 +0000 (19:26 +0100)]
config: Be more verbose about consequence of ExtraScript OOM condition

Change-Id: I7add0d5df5fc2a0369c011574eff7a1eccd8343f

4 years agoRelease 6.0.9 75/225275/1 accepted/tizen/unified/20200219.130207 submit/tizen/20200218.160617
Karol Lewandowski [Mon, 17 Feb 2020 10:02:07 +0000 (11:02 +0100)]
Release 6.0.9

This release brings numerous fixes and one change - reports are named
with pkg name prefix for apps (regular processes still are named after
cmdline).

Change-Id: Ia0b6345e5d3735fa7e15cd0621818e55118a11f9

4 years agoMagic shall not prevail 45/225145/3
Michal Bloch [Mon, 17 Feb 2020 16:07:32 +0000 (17:07 +0100)]
Magic shall not prevail

Change-Id: I01eded05dc377efd992a2fa175891ac6765b4114
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
4 years agoSimplify struct crash_info setup 16/225016/5
Karol Lewandowski [Fri, 14 Feb 2020 16:20:51 +0000 (17:20 +0100)]
Simplify struct crash_info setup

Change-Id: Ibbb13c4534b89d6e1ee4b951a438ae1748ae30d2

4 years agoUse package id as prefix for report files 82/224882/2
Karol Lewandowski [Wed, 12 Feb 2020 15:00:15 +0000 (16:00 +0100)]
Use package id as prefix for report files

Change-Id: I37ea45e2c0a262e9bcd2bb3bcdb97edba83cbc7d

4 years agocrash-manager: Be a bit more verbose about consequence of missing TID 80/224880/2
Karol Lewandowski [Thu, 13 Feb 2020 14:24:27 +0000 (15:24 +0100)]
crash-manager: Be a bit more verbose about consequence of missing TID

Change-Id: If5b5a4c5050c9fc5afea233311de6145222c445f

4 years agoDrop sys-assert leftovers 79/224879/1
Karol Lewandowski [Thu, 13 Feb 2020 08:27:41 +0000 (09:27 +0100)]
Drop sys-assert leftovers

Change-Id: Ia220cc73a1b1e60f165aedd58cdfe9360c8de63b

4 years agoMerge "Adjust codebase for iniparser upgrade (4.x)" into tizen accepted/tizen/unified/20200213.121625 submit/tizen/20200203.003549 submit/tizen/20200205.003954
Karol Lewandowski [Mon, 3 Feb 2020 11:51:21 +0000 (11:51 +0000)]
Merge "Adjust codebase for iniparser upgrade (4.x)" into tizen

4 years agoRelease 6.0.8 68/223168/1 accepted/tizen/unified/20200129.022638 submit/tizen/20200123.165339
Karol Lewandowski [Thu, 23 Jan 2020 16:49:04 +0000 (17:49 +0100)]
Release 6.0.8

This release brings minor fixes to dbus policy and system test.

Change-Id: I2bd9cc0a7979dd92e0fe819e0eeca0ec37afb28c

4 years agoFix livedump API DBus access policy 61/223161/2
Karol Lewandowski [Thu, 23 Jan 2020 12:43:46 +0000 (13:43 +0100)]
Fix livedump API DBus access policy

This commit partially reverts commit f24c53fb20 ("crash-service:
Restrict allow livedump API via privilege")

As discussed with SRPOL Security, the 'group membership' of given
process does not map directly to process 'having privilege', as
verified by Cynara/security-manager.  For now the checking has to
be done per-user for system services and via-privilege for apps.

Change-Id: I2a7b76174adb22be8ffe55e41678b48938d90bbb

4 years agoAdd missing system test to spec 83/223083/1
Karol Lewandowski [Wed, 22 Jan 2020 14:51:26 +0000 (15:51 +0100)]
Add missing system test to spec

Change-Id: I7d7b4d2a91e40938e65cb9153ebfc8d0e320876e

4 years agoRelease 5.5.30 64/222964/1 tizen_5.5_tv accepted/tizen/5.5/unified/20200121.165912 submit/tizen_5.5/20200121.142755
Karol Lewandowski [Tue, 21 Jan 2020 14:18:18 +0000 (15:18 +0100)]
Release 5.5.30

This release brings support for legacy 'ProcessCrashed' signal.

Change-Id: I0096f13144b8028252cebff4048e607b394af6cb

4 years agoRevert "crash-service: Restrict allow livedump API via privilege" 63/222963/1
Karol Lewandowski [Tue, 21 Jan 2020 14:17:15 +0000 (15:17 +0100)]
Revert "crash-service: Restrict allow livedump API via privilege"

This reverts commit f24c53fb208eca0307ab55d1ae9157118b15ab2a.

It's not known if all forks support the new privilege, so we have to
keep the mechanism unchanged.

Change-Id: I70b72ae89430f483cc2200ce9fa7bbd7a748a300

4 years agoMerge 'tizen' into tizen_5.5 62/222962/1
Karol Lewandowski [Tue, 21 Jan 2020 14:16:33 +0000 (15:16 +0100)]
Merge 'tizen' into tizen_5.5

Change-Id: I53a8e8447efe160507ef1630dd8cfc1bfbedfee7

4 years agoRelease 6.0.7 12/222912/3 submit/tizen/20200121.141527 submit/tizen/20200123.105228
Karol Lewandowski [Tue, 21 Jan 2020 09:54:05 +0000 (10:54 +0100)]
Release 6.0.7

This version adds support option to support legacy 'ProcessCrashed' signal.

Change-Id: I964c7f8a58ac96f3055403d9a5c33aee223747e3

4 years agoAdd system test for legacy signal 55/222955/2
Karol Lewandowski [Tue, 21 Jan 2020 11:25:41 +0000 (12:25 +0100)]
Add system test for legacy signal

Change-Id: If4e2d007ebac2de6a11d64137c9d93e5efc75b6d