sysctl: Set fs.suid_dumpable=2 for release builds 43/193643/2
authorKarol Lewandowski <k.lewandowsk@samsung.com>
Thu, 22 Nov 2018 17:44:03 +0000 (18:44 +0100)
committerKarol Lewandowski <k.lewandowsk@samsung.com>
Fri, 23 Nov 2018 15:45:21 +0000 (15:45 +0000)
This commit enables dumping all processes - including those considered
by kernel as "suid".

Process is considered "suid" not only when it does (among other)
setuid/setgid but also when Capabilities are defined in systemd
unit.  With suid_dumpable=0 crash of such "suid" processes would
not trigger execution of crash-worker by the kernel.

Please see suid_dumpable description in proc(5) for full explanation
what kernel considers "suid".

Change-Id: I067355ba651507b35ef7c8d23245443184b670cf

src/crash-manager/99-crash-manager.conf.in

index 5961717..e1900b9 100644 (file)
@@ -1,3 +1,5 @@
 # Tizen crash-manager
 kernel.core_pattern=|/usr/bin/crash-manager %p %u %g %s %t %i
 kernel.core_pipe_limit=10
+# All processes should be dumped
+fs.suid_dumpable=2