-
f6ecb8b47b
Fix Coverity CID 1406626, avoid strncat() in favor of snprintf()
Joachim Nilsson
2019-11-05 09:35:59 +01:00
-
1f4877e21f
Disable clang temporarily for Coverity Scan run
Joachim Nilsson
2019-11-05 09:01:12 +01:00
-
c5a85ad4da
Update TODO with progress
Joachim Nilsson
2019-11-05 08:59:28 +01:00
-
a4b09cc15b
Clarify comment, _PATH_LOG applies to *sysklogd project*
Joachim Nilsson
2019-11-05 08:57:15 +01:00
-
2fcfc0ad81
Drop #include "config.h" from syslog.h
Joachim Nilsson
2019-11-05 08:42:29 +01:00
-
5c1c1cd10c
Travis-CI: Try to build example application as well
Joachim Nilsson
2019-11-05 08:36:11 +01:00
-
225d8da17f
Add stand-alone example program w/ Makefile and README
Joachim Nilsson
2019-11-05 08:13:55 +01:00
-
0ade961e60
Fix syslog() and syslogp() message formatting in API test
Joachim Nilsson
2019-11-04 20:10:36 +01:00
-
512aaa1afc
Fix paths for out-of-tree builds, found by make distcheck
Joachim Nilsson
2019-11-04 20:09:54 +01:00
-
e202196152
Add missing files to distribution, found by make distcheck
Joachim Nilsson
2019-11-04 20:09:15 +01:00
-
0b409d0b06
Relocate and increase indent of items
Joachim Nilsson
2019-11-04 11:16:17 +01:00
-
aa80483e25
Remember to add an example application and test build + linking
Joachim Nilsson
2019-11-04 11:10:38 +01:00
-
58da3b6bd2
Mark strlcat() and strlcpy() as weak functions, for libsyslog
Joachim Nilsson
2019-11-04 10:59:45 +01:00
-
8f66822b2a
Check for getprogname() et al, and use config.h for #ifndefs
Joachim Nilsson
2019-11-04 10:55:52 +01:00
-
ad70b49790
Minor, whitspace alignment
Joachim Nilsson
2019-11-04 06:21:50 +01:00
-
17f43903b6
Document how to use -lsyslog
Joachim Nilsson
2019-11-04 05:59:54 +01:00
-
30d26f1d6d
Add RFC flair to logo
Joachim Nilsson
2019-11-04 00:51:54 +01:00
-
8101365ecf
Minor adjustment to top
Joachim Nilsson
2019-11-03 22:31:16 +01:00
-
b55dc9d37d
Adjust logo, add RFCs on the right hand side
Joachim Nilsson
2019-11-03 22:28:52 +01:00
-
1bc8e9f366
Fix spacing
Joachim Nilsson
2019-11-03 22:24:05 +01:00
-
781a5cd246
Prototype logo ...
Joachim Nilsson
2019-11-03 22:23:01 +01:00
-
024dde00c2
Remove unused files
Joachim Nilsson
2019-11-03 21:13:20 +01:00
-
eb37e7a20c
docs/: Add help for contributors and a code of conduct for project
Joachim Nilsson
2019-11-03 21:10:34 +01:00
-
c35f4de7fc
Travis-CI: Build all test programs as regular user, or clang fails
Joachim Nilsson
2019-11-03 19:52:37 +01:00
-
dca48d8b7d
test: Extend API test with three more phases
Joachim Nilsson
2019-11-03 19:51:39 +01:00
-
f07d00f910
test: Enable syslogd debug mode, log in test/start.log
Joachim Nilsson
2019-11-03 19:51:02 +01:00
-
11a16e16b8
syslogd: Strip whitespace in rule between action and option
Joachim Nilsson
2019-11-03 19:48:22 +01:00
-
ff27d39cca
syslogd: Fix double free() warning after SIGHUP
Joachim Nilsson
2019-11-03 19:47:10 +01:00
-
07475f60a1
Travis-CI: Disable silent build to figure out why clang goes missing
Joachim Nilsson
2019-11-03 18:13:54 +01:00
-
94afe95a25
Travis-CI: Simplify build script, skip parallel build
Joachim Nilsson
2019-11-03 18:07:19 +01:00
-
53a4ea735f
Add Coverity badge
Joachim Nilsson
2019-11-03 17:59:51 +01:00
-
10f904bf79
Travis-CI: Initial test with Coverity Scan
Joachim Nilsson
2019-11-03 17:47:55 +01:00
-
7446255827
Silence autoconf, use an m4/ sub-directory for macros
Joachim Nilsson
2019-11-03 17:30:59 +01:00
-
b2940cade1
Remove old Makefile, not needed anymore
Joachim Nilsson
2019-11-03 17:30:12 +01:00
-
ea565153bc
Remove last remnants of TESTING define
Joachim Nilsson
2019-11-03 17:28:47 +01:00
-
ab621e189b
Travis-CI: Debug automake + autoconf
Joachim Nilsson
2019-11-03 17:28:27 +01:00
-
3a825cf0da
Update GPL license headers, wrong address for FSF
Joachim Nilsson
2019-11-03 17:21:06 +01:00
-
b1548e7c73
Add simple API test, syslog() no call to openlog()
Joachim Nilsson
2019-11-03 15:54:36 +01:00
-
c05956010c
Make sure libsyslog.la, incl. strlcpy.o, is built with -fPIC
Joachim Nilsson
2019-11-03 15:53:36 +01:00
-
fe3066f4c2
Connect to syslogd using SYSLOG_UNIX_PATH variable, if set
Joachim Nilsson
2019-11-03 15:52:13 +01:00
-
cedff49662
Minor change to ingress
Joachim Nilsson
2019-11-03 12:23:05 +01:00
-
8f582259d8
Document difference in log formats between RFC3164 and RFC5424
Joachim Nilsson
2019-11-03 12:19:57 +01:00
-
d63b2e68f6
Update example syslog.conf with relevant and modern defaults
Joachim Nilsson
2019-11-03 12:19:37 +01:00
-
cebec1202b
Update man pages with new per-rule options and fix old paths
Joachim Nilsson
2019-11-03 12:19:06 +01:00
-
84aa897628
Consolidate option parsing for syslog.conf rules
Joachim Nilsson
2019-11-03 12:15:05 +01:00
-
4066a1e9bf
Add FreeBSD facilities: LOG_NTP, LOG_SECURITY, LOG_CONSOLE, ...
Joachim Nilsson
2019-11-03 08:16:00 +01:00
-
ff4f2cdb31
Replace homegrown PID file functions with std BSD pidfile()
Joachim Nilsson
2019-11-02 20:57:07 +01:00
-
1236334c39
Fix some memory leaks, found by Valgrind
Joachim Nilsson
2019-11-02 14:59:52 +01:00
-
8c0304a977
Remember to document libsyslog API
Joachim Nilsson
2019-11-02 14:14:12 +01:00
-
b0a3d5cdd9
Document new include /etc/syslog.d/*.conf support
Joachim Nilsson
2019-11-02 14:09:42 +01:00
-
dc2e7c013c
TODO before v2.0
Joachim Nilsson
2019-11-02 11:49:43 +01:00
-
62c651a979
Adapt unit tests to leverage and test /etc/syslog.d/*.conf support
Joachim Nilsson
2019-11-02 11:47:24 +01:00
-
917ef4ed1d
Add support for
include /etc/syslog.d/*.conf
in /etc/syslog.conf
Joachim Nilsson
2019-11-02 11:44:11 +01:00
-
ddaa0a1a82
Factor out ConfFile parsing to separate function
Joachim Nilsson
2019-10-31 12:09:04 +01:00
-
c6a19049dc
Trim remote test, restore startup/log
sleep 2
Joachim Nilsson
2019-10-31 12:07:52 +01:00
-
3ef86e98b1
Import NetBSD syslog.3 v1.33 as syslogp.3
Joachim Nilsson
2019-10-31 11:00:15 +01:00
-
892ee80e59
Trim test times now that we've fixed the root cause on Travis-CI
Joachim Nilsson
2019-10-31 10:52:27 +01:00
-
3f5ae0e861
Travis-CI: Run test suite as super user, avoid sudo from within test
Joachim Nilsson
2019-10-31 10:46:49 +01:00
-
1c14168558
Travis-CI: Require sudo to be able to run tshark on loopback
Joachim Nilsson
2019-10-31 10:43:08 +01:00
-
cd7d2ca0be
sudo do what I mean
Joachim Nilsson
2019-10-31 10:35:19 +01:00
-
ef00787c5c
Show any errors from tshark/tcpdump in error log
Joachim Nilsson
2019-10-31 10:15:01 +01:00
-
aad95082fb
Drop -fno-strength-reduce from default CFLAGS not supported by Clang
Joachim Nilsson
2019-10-31 10:13:36 +01:00
-
ba9e494db2
Travis-CI: Debug networking capabilities
Joachim Nilsson
2019-10-31 10:09:46 +01:00
-
495325dc51
Let remote unit test exit on first error
Joachim Nilsson
2019-10-31 10:04:36 +01:00
-
0afeba201b
Maintain error code when
make check
fails
Joachim Nilsson
2019-10-31 10:02:08 +01:00
-
7a605f1435
Increase delay in remote logging test for Travis-CI
Joachim Nilsson
2019-10-31 09:53:56 +01:00
-
8adb82494e
Show test-suite.log if make check fails
Joachim Nilsson
2019-10-31 09:03:21 +01:00
-
af97a5bb0a
Build libsyslog.la and install it with syslog.h and libsyslog.pc
Joachim Nilsson
2019-10-31 08:39:09 +01:00
-
358cbae1dc
Update README to reflect the RFC compliance bump
Joachim Nilsson
2019-10-31 08:07:02 +01:00
-
96d7fe596a
Travis-CI: Enable
make check
to run unit tests on push
Joachim Nilsson
2019-10-30 21:29:34 +01:00
-
8f459d349a
test: Check sending log messages to remote server works
Joachim Nilsson
2019-10-30 17:14:29 +01:00
-
72bbee7812
syslogd: Add support for '-b :service' to bind to another port
Joachim Nilsson
2019-10-30 16:25:37 +01:00
-
dfff48fb04
Convert man pages to mdoc format, remove sysklogd.8 man page
Joachim Nilsson
2019-10-30 15:56:30 +01:00
-
a1e5680aee
Disable logger default file rotation, must now be enabled with -r
Joachim Nilsson
2019-10-30 09:30:42 +01:00
-
eb10b94f55
Update usage text; -b/-c removed in favor of -R
Joachim Nilsson
2019-10-30 09:19:54 +01:00
-
87292c6f95
Verify logging to local file via syslogd
Joachim Nilsson
2019-10-29 13:58:33 +01:00
-
fc4840a698
Add support for -P pid_file, like FreeBSD syslogd
Joachim Nilsson
2019-10-29 13:54:36 +01:00
-
b67d57cf59
Initial test framework:
make check
Joachim Nilsson
2019-10-29 11:08:23 +01:00
-
ec9c92987f
Add support for
logger -u /tmp/foo
to log to alternate socket
Joachim Nilsson
2019-10-29 10:43:14 +01:00
-
08aa942ffb
Minor, staticify global variables and fix indentation
Joachim Nilsson
2019-10-29 10:42:45 +01:00
-
48a9f1fdd7
Remove old TESTING mode, incl. tsyslogd and syslog-tst
Joachim Nilsson
2019-10-29 10:39:56 +01:00
-
b6dcef71dd
Enable remote syslog messages for testing
Joachim Nilsson
2019-10-29 09:09:05 +01:00
-
176ba2d095
Support for logging to a file/stdout using syslog API
Joachim Nilsson
2019-10-29 09:08:37 +01:00
-
ee2d0ce106
Sync with FreeBSD syslogd to get full RFC5424 support
Joachim Nilsson
2019-10-29 09:01:01 +01:00
-
4f45f3c22f
Minor, misc cleanup and simplification
Joachim Nilsson
2019-10-29 08:59:54 +01:00
-
e9a546c683
Only chdir("/") when detaching from TTY and backgrounding process
Joachim Nilsson
2019-10-29 08:54:30 +01:00
-
4f5124cb79
Change command line option for log rotation, from -b/-c --> -R b:c
Joachim Nilsson
2019-10-29 06:37:55 +01:00
-
b66090ce4f
Minor, sync variable name with FreeBSD
Joachim Nilsson
2019-10-28 20:42:40 +01:00
-
4c6aa23dba
Add missing include guards
Joachim Nilsson
2019-10-27 21:32:37 +01:00
-
bf448fc6a1
Remove historical changelogs from files
Joachim Nilsson
2019-10-27 21:30:03 +01:00
-
0603849891
syslogd need _XOPEN_SOURCE for strptime()
Joachim Nilsson
2019-10-27 21:27:30 +01:00
-
19f09ebb9d
Change to use local version of syslog.h in syslogd
Joachim Nilsson
2019-10-26 19:10:19 +02:00
-
6b07e96753
Add Emacs mode hinting, mostly for syslog.conf.5
Joachim Nilsson
2019-10-25 15:53:26 +02:00
-
bdb1d45f90
Refactor and drop '-n' option for rotation
Joachim Nilsson
2019-10-25 15:52:14 +02:00
-
76b6981467
Factor out strtobytes() helper function from syslogd.c
Joachim Nilsson
2019-10-25 15:51:19 +02:00
-
f6e17bd6b3
Update syslog.c, add syslog.h from NetBSD to get new syslogp() API
Joachim Nilsson
2019-10-25 14:25:29 +02:00
-
d83f781dc0
Add OpenBSD strlcat() and strlcpy() safe string manipulation APIs
Joachim Nilsson
2019-10-25 14:24:35 +02:00
-
2d64227d7d
Send all test logs to /tmp/syslog_tst.log, for now ...
Joachim Nilsson
2019-10-24 10:50:41 +02:00
-
a8060d0ad1
Fix tsyslogd, which reads from stdin, exit on EOF
Joachim Nilsson
2019-10-24 10:49:57 +02:00
-
56ff4eedbe
Simplify variable declarations in main(), strip #ifdefs
Joachim Nilsson
2019-10-24 10:49:32 +02:00