summaryrefslogtreecommitdiff
path: root/source3/lib/dumpcore.c
Commit message (Collapse)AuthorAgeFilesLines
* s3/dump_core: Honour pipe symbol (|) in system-wide core_pattern under linuxAnoop C S2016-11-231-8/+24
| | | | | | | | | | | | | | | | | | | | | | | | From man core(5): "Since kernel 2.6.19, Linux supports an alternate syntax for the /proc/sys/kernel/core_pattern file. If the first character of this file is a pipe symbol (|), then the remainder of the line is interpreted as a user-space program to be executed." Discarding this symbol would result in misleading logs for smbd/nmbd/winbindd. For example even if core_pattern contains '|', smbd logs would suggest the following: ... dumping core in /var/log/samba/cores/smbd ... and coredump may or may not get created at that location depending on which helper binary is being used for handling coredumps. Signed-off-by: Anoop C S <anoopcs@redhat.com> Reviewed-by: Michael Adam <obnox@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* source3: Honor the core soft limit of the OS.Ira Cooper2016-03-051-15/+0
| | | | | | | | | | | | | We should honor the soft limits set by the operating system. In any case, 16M doesn't make a useful coredump for modern Samba. Signed-off-by: Ira Cooper <ira@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Sat Mar 5 00:39:48 CET 2016 on sn-devel-144
* lib: directory_create_or_exist() does not use "uid" parameterVolker Lendecke2014-07-281-1/+1
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s3: use directory_create_or_exist_strict() to create corepathGregor Beck2013-12-111-16/+17
| | | | | | | | | This simplifies the code and even works in testenv where the chown call fails. Signed-off-by: Gregor Beck <gbeck@sernet.de> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* s3-includes: only include system/filesys.h when needed.Günther Deschner2011-03-301-0/+1
| | | | Guenther
* s3: Fix a shadowed declaration warningVolker Lendecke2011-03-231-3/+3
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Mar 23 17:19:01 CET 2011 on sn-devel-104
* s3: Include prctl where it is actually usedVolker Lendecke2011-03-231-0/+4
|
* s3: Attempt to fix the build on FreeBSDVolker Lendecke2011-03-231-0/+4
|
* fault: get fault.c ready for use by s4Andrew Tridgell2011-03-231-0/+332
this moves the s3 specific dumpcore code into source3/lib/dumpcore.c, and uses a function pointer to setup which smb_panic call to use