Joey Schulze [Wed, 4 Jul 2007 19:04:02 +0000 (19:04 +0000)]
Prevent pipes from becoming the controlling tty
Joey Schulze [Wed, 4 Jul 2007 19:00:09 +0000 (19:00 +0000)]
Reverted patch by Andreas Barth since it caused problems with opening the pipe
Joey Schulze [Wed, 4 Jul 2007 17:36:05 +0000 (17:36 +0000)]
Untypo
Joey Schulze [Wed, 4 Jul 2007 17:35:22 +0000 (17:35 +0000)]
Preparation for version 1.5
Joey Schulze [Thu, 21 Jun 2007 08:22:59 +0000 (08:22 +0000)]
Updated the changelog/documentation
Joey Schulze [Mon, 18 Jun 2007 07:50:55 +0000 (07:50 +0000)]
Adjusted the search function to find the symbol associated with an
address when EIP address resolving is enabled.
Joey Schulze [Sun, 17 Jun 2007 19:21:55 +0000 (19:21 +0000)]
Beautification of the output
Joey Schulze [Sat, 2 Jun 2007 19:08:52 +0000 (19:08 +0000)]
Improved condition
Joey Schulze [Sat, 2 Jun 2007 19:04:38 +0000 (19:04 +0000)]
We need to read all symbols
Joey Schulze [Thu, 31 May 2007 15:23:42 +0000 (15:23 +0000)]
Improved symbol lookup, since symbols are spread over the entire
address space. Return the symbol that fits best instead of the first hit.
Joey Schulze [Thu, 31 May 2007 14:52:20 +0000 (14:52 +0000)]
Only read kernel symbols from /proc/kallsyms if no System.map has been read
Joey Schulze [Wed, 30 May 2007 18:46:09 +0000 (18:46 +0000)]
Formatting & untypo
Joey Schulze [Wed, 30 May 2007 15:43:45 +0000 (15:43 +0000)]
Correction to build tsyslogd again
Joey Schulze [Wed, 30 May 2007 15:28:48 +0000 (15:28 +0000)]
Build the new oops module with the kernel build system
Joey Schulze [Wed, 30 May 2007 15:27:13 +0000 (15:27 +0000)]
Complete rewrite of the oops kernel module for Linux 2.6
Joey Schulze [Wed, 30 May 2007 15:26:09 +0000 (15:26 +0000)]
File not needed anymroe
Joey Schulze [Wed, 30 May 2007 15:24:27 +0000 (15:24 +0000)]
Use SKFLAGS instead of CFLAGS due to a conflict with the kernel build system
Joey Schulze [Wed, 30 May 2007 10:26:51 +0000 (10:26 +0000)]
Untypo
Joey Schulze [Mon, 28 May 2007 17:45:43 +0000 (17:45 +0000)]
Notify the waiting parent process if the client dies to it doesn't
wait the entire five minutes.
Joey Schulze [Mon, 28 May 2007 17:25:43 +0000 (17:25 +0000)]
Improvements
Joey Schulze [Mon, 28 May 2007 17:24:21 +0000 (17:24 +0000)]
Spelling and other improvements, many of them from James R. Van Zandt
Joey Schulze [Mon, 28 May 2007 17:02:06 +0000 (17:02 +0000)]
Patch by Andreas Barth: Prevent pipes from becoming the controlling tty
Joey Schulze [Mon, 28 May 2007 16:08:32 +0000 (16:08 +0000)]
Patch by Matthew Fischer: Remove special treatment of the percent sign
Joey Schulze [Mon, 28 May 2007 15:26:23 +0000 (15:26 +0000)]
Added missing dependencies
Joey Schulze [Mon, 28 May 2007 15:26:09 +0000 (15:26 +0000)]
Moved structs to module.h
Joey Schulze [Mon, 28 May 2007 15:24:57 +0000 (15:24 +0000)]
Removed several structs not used anymore.
Moved structs from ksym_mod.c over here.
Joey Schulze [Mon, 28 May 2007 15:24:33 +0000 (15:24 +0000)]
Return of the symbols.
Linux 2.6 exports its symbols in /proc/kallsyms and does not implement
query_module() anymore. Thus, the entire scanner has been overhauled.
Joey Schulze [Mon, 28 May 2007 06:28:37 +0000 (06:28 +0000)]
Added back /usr/src/linux/System.map as fall-back location
Joey Schulze [Sun, 27 May 2007 12:16:17 +0000 (12:16 +0000)]
Updated address and copyright, shortened AUTHORS section
Joey Schulze [Sun, 27 May 2007 12:08:51 +0000 (12:08 +0000)]
Removed superflous newlines
Joey Schulze [Sun, 27 May 2007 12:05:25 +0000 (12:05 +0000)]
Moved the documentation of the console log level into its own section
Joey Schulze [Sun, 27 May 2007 12:05:01 +0000 (12:05 +0000)]
Don't fiddle with the console log level anymore
Joey Schulze [Sat, 26 May 2007 18:44:42 +0000 (18:44 +0000)]
Use ssize_t and reduced code where appropriate
Joey Schulze [Sat, 26 May 2007 14:37:43 +0000 (14:37 +0000)]
Improved daemonise routine to stabilise startup
Joey Schulze [Sat, 26 May 2007 10:45:55 +0000 (10:45 +0000)]
Log message
Joey Schulze [Sat, 26 May 2007 10:30:46 +0000 (10:30 +0000)]
Log message
Joey Schulze [Sat, 26 May 2007 10:22:34 +0000 (10:22 +0000)]
Properly accompany the MARK message with the facility
Joey Schulze [Sat, 26 May 2007 08:05:05 +0000 (08:05 +0000)]
Only try to gather the local domain name when messages are received
from the network, it's not needed otherwise.
Joey Schulze [Sat, 26 May 2007 07:11:45 +0000 (07:11 +0000)]
Removed test to detect control characters > 0x20 as this prevented
characters encoded in UTF-8 to be properly passed through. This
prevented a security-related patch by Solar Designer (1.29).
References:
Debian Bug#315605 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=315605>
RedHat Bug#89292 <https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=89292>
Joey Schulze [Fri, 25 May 2007 18:47:21 +0000 (18:47 +0000)]
Reset the signal handler in the child
Joey Schulze [Fri, 25 May 2007 18:07:24 +0000 (18:07 +0000)]
Improved query_module calls and unified code against former version (1.12)
Joey Schulze [Fri, 25 May 2007 18:01:26 +0000 (18:01 +0000)]
Added missing defines and a prototype so that the code compiles.
Removed old code that is neither supported nor working anymore
Joey Schulze [Fri, 25 May 2007 17:47:46 +0000 (17:47 +0000)]
Conversion to file coding style
Joey Schulze [Fri, 25 May 2007 17:47:16 +0000 (17:47 +0000)]
Patch by Kelledin to use the newer query_module function rather than
the old obsolete hack of stepping thru /dev/kmem.
Joey Schulze [Thu, 24 May 2007 17:48:44 +0000 (17:48 +0000)]
Added missing dependency to ksyms.h for ksym_mod.c
Joey Schulze [Thu, 24 May 2007 17:29:16 +0000 (17:29 +0000)]
Added missing dependency to module.h for ksym_mod.c
Joey Schulze [Thu, 24 May 2007 14:46:45 +0000 (14:46 +0000)]
Added missing newline
Joey Schulze [Thu, 24 May 2007 14:07:10 +0000 (14:07 +0000)]
Formatting
Joey Schulze [Thu, 24 May 2007 14:04:22 +0000 (14:04 +0000)]
Remove SO_BSDCOMPAT since it was only support by Linux 2.0 and 2.2,
ignored in 2.4 and emitted a warning in 2.6
Joey Schulze [Thu, 24 May 2007 13:56:04 +0000 (13:56 +0000)]
Patch by Mike Frysinger: use socklen_t where appropriate
Joey Schulze [Thu, 24 May 2007 13:28:18 +0000 (13:28 +0000)]
When writing log files ignore errors caused by filled up disks so that
the log continues to be written as soon as space becomes available again.
Joey Schulze [Mon, 21 May 2007 16:27:39 +0000 (16:27 +0000)]
Spelling fix
Joey Schulze [Mon, 21 May 2007 16:26:40 +0000 (16:26 +0000)]
Escape hyphens
Joey Schulze [Mon, 21 May 2007 11:00:35 +0000 (11:00 +0000)]
Only play with the network when the syslog port can be determined.
Ignore networking otherwise, but continue working. (Debian Bug#226611)
Joey Schulze [Sun, 20 May 2007 18:21:15 +0000 (18:21 +0000)]
Spelling improvements
Joey Schulze [Sun, 20 May 2007 17:45:59 +0000 (17:45 +0000)]
Phrasing improvements
Joey Schulze [Sun, 20 May 2007 17:41:01 +0000 (17:41 +0000)]
Phrasing correction
Joey Schulze [Sun, 20 May 2007 17:40:35 +0000 (17:40 +0000)]
Phrasing correction
Joey Schulze [Sun, 3 Dec 2006 12:21:37 +0000 (12:21 +0000)]
Adjusted the date
Joey Schulze [Sun, 3 Dec 2006 12:15:21 +0000 (12:15 +0000)]
Adjusted the date
Joey Schulze [Thu, 30 Nov 2006 07:59:45 +0000 (07:59 +0000)]
Explanation added by Eric Tucker
Joey Schulze [Thu, 28 Sep 2006 18:43:36 +0000 (18:43 +0000)]
Corrected typo in syslog.conf(5)
Joey Schulze [Mon, 18 Sep 2006 09:56:13 +0000 (09:56 +0000)]
Properly use format strings
Joey Schulze [Thu, 25 May 2006 08:11:49 +0000 (08:11 +0000)]
Added a description of system log level and link to sysctl(8)
Joey Schulze [Thu, 25 May 2006 07:49:54 +0000 (07:49 +0000)]
Reset the 'restart' flag immediately after entering the restart code,
so that subsequent SIGHUPs are able to set it again and cause a new
restart. This fixes a race condition when somebody sends tons of HUP
signals.
Joey Schulze [Thu, 25 May 2006 07:15:57 +0000 (07:15 +0000)]
Removed asm/atomic.h since it is not needed anymore.
Joey Schulze [Thu, 25 May 2006 07:12:44 +0000 (07:12 +0000)]
More LFS options as comments
Joey Schulze [Wed, 25 May 2005 18:08:30 +0000 (18:08 +0000)]
Applied adjusted patch by Miquel van Smoorenburg to fix spurious
hanging syslogd in connection with futex and NPTL introduced in recent
glibc versions and Linux 2.6 (details: http://bugs.debian.org/301511)
Joey Schulze [Fri, 11 Mar 2005 16:12:09 +0000 (16:12 +0000)]
Added the date
Joey Schulze [Fri, 11 Mar 2005 16:11:26 +0000 (16:11 +0000)]
Added a note to sysctl(8) for setting the console level
Joey Schulze [Sat, 15 Jan 2005 19:14:21 +0000 (19:14 +0000)]
Updated changes file
Joey Schulze [Sat, 15 Jan 2005 19:13:08 +0000 (19:13 +0000)]
Applied patch by Dirk Mueller <mueller@kde.org> to prevent syslogd
from crashing when the log file can't grow anymore (e.g. with 2GB
without LargeFileSupport)
Joey Schulze [Sun, 7 Nov 2004 12:52:30 +0000 (12:52 +0000)]
Remove trailing newline from forwarded messages. This would be turned
into a whitespace by the receiving syslogd and doesn't seem to be
required anyway.
Joey Schulze [Sun, 7 Nov 2004 11:38:44 +0000 (11:38 +0000)]
Discard any timestamp information found in received syslog messages.
This will affect local messages sent from a different timezone. Also
removed code due to the changed semantics. This was inspired by
Anders Henke from Schlund + Partner AG.
Joey Schulze [Tue, 2 Nov 2004 19:30:30 +0000 (19:30 +0000)]
Colin Phipps <cph@cph.demon.co.uk>: Don't block on the network socket,
in case a packet gets lost between select and recv. (Debian Bug#275578)
Joey Schulze [Tue, 27 Jul 2004 11:36:10 +0000 (11:36 +0000)]
Removed atomic_t in the usecount field of the module struct for
compatibility reasons, since atomic_t is not defined in <asm/atomic.h>
on all architectures.
Joey Schulze [Fri, 16 Jul 2004 06:48:27 +0000 (06:48 +0000)]
Ulf Härnhammar <Ulf.Harnhammar.9485@student.uu.se>
Added boundary check for fscanf() in InitKsyms() and CheckMapVersion()
to prevent an unintended crash when reading an incorrect System.map.
Hello,
I have discovered a potential crash bug in sysklogd. The klogd daemon
doesn't handle really malformed System.map files very well. It has
two fscanf() calls with "%s"format strings that stores to char
sym[512] arrays. This causes a crash if the string field in the
file is longer than that.
Despite being a buffer overflow, this is not a security problem, as
only root can change the System.map file. Nevertheless, I think it
is worth fixing, as the Right Thing for a program should be not to
assume anything about its input and to handle various problems well.
Joey Schulze [Fri, 9 Jul 2004 17:33:32 +0000 (17:33 +0000)]
Documentation improvement
Joey Schulze [Fri, 9 Jul 2004 17:22:29 +0000 (17:22 +0000)]
Documentation improvements by Greg Trounson <gregt@maths.otago.ac.nz>
Joey Schulze [Tue, 4 May 2004 14:52:56 +0000 (14:52 +0000)]
Adjust the size of a variable to prevent a buffer overflow
should _PATH_DEV ever contain something different than "/dev/".
Joey Schulze [Tue, 4 May 2004 14:50:18 +0000 (14:50 +0000)]
Minor corrections
Joey Schulze [Tue, 4 May 2004 14:49:23 +0000 (14:49 +0000)]
Patch: sysklogd-1.4.1-owl-longjmp.diff from Openwall
From: Solar Designer <solar@openwall.com>
1. Ensures that "len" is not placed in a register and as such can't be
clobbered by longjmp(). With the particular code, it does not really
matter whether it is clobbered or not, but this avoids the gcc warning.
2. Makes endtty() the signal handler only after the variable that
function uses is initialized. In the original code, the signal
handler was setup too early and if there would be SIGALRM before
control reaches setjmp(), syslogd would segfault (if not worse).
Basically, this is a minor correctness patch.
Joey Schulze [Thu, 29 Apr 2004 16:10:10 +0000 (16:10 +0000)]
Patch by Dmitry V. Levin <ldv@altlinux.org>
Close file descriptor in FindSymbolFile() in order not to leak file
descriptors.
Joey Schulze [Thu, 29 Apr 2004 13:29:03 +0000 (13:29 +0000)]
Prevent potential buffer overflow in reading messages from the
kernel log rinbuffer.
Joey Schulze [Thu, 29 Apr 2004 11:04:03 +0000 (11:04 +0000)]
Distinguish between MAN_OWNER and MAN_GROUP, introduce MAN_PERMS and
also $(prefix) for convenience
Joey Schulze [Thu, 29 Apr 2004 10:58:40 +0000 (10:58 +0000)]
From Openwalls: needs to be a USER_PROCESS
Joey Schulze [Thu, 29 Apr 2004 10:39:55 +0000 (10:39 +0000)]
Applied Openwall paranoia patches to improve crunch_list().
Joey Schulze [Thu, 29 Apr 2004 10:11:03 +0000 (10:11 +0000)]
Adjusted the symbol size since on non-32bit architectures a long may
be longer than 4 bytes
Joey Schulze [Sat, 17 Apr 2004 16:07:21 +0000 (16:07 +0000)]
Added Steve
Joey Schulze [Sat, 17 Apr 2004 16:06:16 +0000 (16:06 +0000)]
Patch by Steve Grubb <linux_4ever@yahoo.com> to correct memory calculation
Joey Schulze [Wed, 31 Mar 2004 15:47:08 +0000 (15:47 +0000)]
Added a private module.h with extracted data from Linux 2.2 to replace
<linux/module.h> which creates a number parse errors.
Joey Schulze [Mon, 29 Sep 2003 17:47:51 +0000 (17:47 +0000)]
Updated the changelog file to reflect most recent changes
Joey Schulze [Sun, 28 Sep 2003 10:26:22 +0000 (10:26 +0000)]
Moved the installation of the signal handler up a little bit so it
guaranteed to be available when the child is forked, hence, fixing a
race condition. This used to create problems with UML and fast
machines. Thanks to Jon Burgess <Jon_Burgess@eur.3com.com>
Joey Schulze [Sun, 28 Sep 2003 02:51:38 +0000 (02:51 +0000)]
Improved documentation
Joey Schulze [Sun, 28 Sep 2003 02:38:18 +0000 (02:38 +0000)]
Whoops, looks like O_TRUNC was missing when opening the file,
increasing the chance of left-overs from older pid contents in the
file.
Joey Schulze [Sat, 27 Sep 2003 23:29:02 +0000 (23:29 +0000)]
On heavily loaded systems, some which are probably receiving a lot of
syslog traffic through the network, there's a (not well researched)
problem with receiving messages on the syslog UDP port. For some
reason recvfrom() results in EAGAIN. See
http://bugs.debian.org/188194 and
http://www.ussg.iu.edu/hypermail/linux/kernel/0209.1/0218.html
Joey Schulze [Sat, 27 Sep 2003 22:05:39 +0000 (22:05 +0000)]
There's a problem with including kernel-space header files on the
little endian MIPS architecture. According to Ryan Murray this should
help and also work on all architectures.
Joey Schulze [Thu, 4 Sep 2003 13:22:23 +0000 (13:22 +0000)]
Added information about large file support
Joey Schulze [Wed, 27 Aug 2003 15:56:01 +0000 (15:56 +0000)]
Improved patch by Michael Pomraning <mjp@securepipe.com> to reconnect
klogd to the logger after it went away, so messages won't get lost if
the logger is already around by trying to reopen the socket in time.
Joey Schulze [Wed, 27 Aug 2003 15:55:04 +0000 (15:55 +0000)]
Applied patch by Michael Pomraning <mjp@securepipe.com> to reconnect
klogd to the logger after it went away.