summaryrefslogtreecommitdiff
path: root/source3/lib/dumpcore.c
AgeCommit message (Collapse)AuthorFilesLines
2024-04-16lib: Give lib/util/util_file.c its own header fileVolker Lendecke1-0/+1
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Martin Schwenke <mschwenke@ddn.com>
2019-10-18s3/dump_core: Have a newline towards the end of log messageAnoop C S1-1/+1
Signed-off-by: Anoop C S <anoopcs@redhat.com> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Uri Simchoni <uri@samba.org> Autobuild-User(master): Uri Simchoni <uri@samba.org> Autobuild-Date(master): Fri Oct 18 08:54:04 UTC 2019 on sn-devel-184
2016-11-23s3/dump_core: Honour pipe symbol (|) in system-wide core_pattern under linuxAnoop C S1-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>
2016-03-05source3: Honor the core soft limit of the OS.Ira Cooper1-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
2014-07-28lib: directory_create_or_exist() does not use "uid" parameterVolker Lendecke1-1/+1
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2013-12-11s3: use directory_create_or_exist_strict() to create corepathGregor Beck1-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>
2011-03-30s3-includes: only include system/filesys.h when needed.Günther Deschner1-0/+1
Guenther
2011-03-23s3: Fix a shadowed declaration warningVolker Lendecke1-3/+3
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Mar 23 17:19:01 CET 2011 on sn-devel-104
2011-03-23s3: Include prctl where it is actually usedVolker Lendecke1-0/+4
2011-03-23s3: Attempt to fix the build on FreeBSDVolker Lendecke1-0/+4
2011-03-23fault: get fault.c ready for use by s4Andrew Tridgell1-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