Commit Graph

  • c2d9f80859 syslogd: Drop -h flag, does not do anything since 353cd10 Joachim Nilsson 2019-11-13 10:22:15 +01:00
  • 18f9611d3e Install systemd unit files, follow-up to cda4c6a Joachim Nilsson 2019-11-13 10:18:10 +01:00
  • 31630f73cc Mention klogd now is optional and rest of project is 3-clause BSD Joachim Nilsson 2019-11-13 10:09:41 +01:00
  • 5b2d9d313d Revert "Travis-CI: Disable clang temporarily for Coverity Scan run" Joachim Nilsson 2019-11-13 09:58:05 +01:00
  • 4a9b9b7756 Travis-CI: Simplify, syslogd now continues if /proc/kmsg is missing Joachim Nilsson 2019-11-13 09:57:15 +01:00
  • 45c7dcc6df syslogd: Only warn when opening /proc/kmsg fails, continue anyway Joachim Nilsson 2019-11-13 09:55:33 +01:00
  • 353cd10a06 Refactor, graft in FreeBSD fprintlog_first() & fprintlog_successive() Joachim Nilsson 2019-11-13 09:43:57 +01:00
  • ef22d6dbe9 Travis-CI: Run unit tests with klogd enabled, add 2nd pass Joachim Nilsson 2019-11-13 08:34:46 +01:00
  • d6370aeb1f Follow-up to 69608f7: Update API test with TAG formatting change Joachim Nilsson 2019-11-13 08:31:36 +01:00
  • 97dfe638b4 Fix uninitialized variable, found by Coverity Scan Joachim Nilsson 2019-11-13 08:16:14 +01:00
  • 0555e0989f Fix suspicius code for allocating a sockaddr_un to a sockaddr ptr Joachim Nilsson 2019-11-13 08:14:48 +01:00
  • e1f9a1a566 Travis-CI: Disable clang temporarily for Coverity Scan run Joachim Nilsson 2019-11-12 23:50:48 +01:00
  • 69608f7158 syslogd: Fix RFC3164 TAG formatting when no PID is included Joachim Nilsson 2019-11-12 16:41:09 +01:00
  • d92f8466f8 syslogd: Minor refactor, move init code from main() to init() Joachim Nilsson 2019-11-12 16:20:52 +01:00
  • 823bb4cf2a Support for building the project w/o separate klogd (default) Joachim Nilsson 2019-11-12 15:51:33 +01:00
  • 0455da805f syslogd: Rename -R flag to -r, same as logger tool Joachim Nilsson 2019-11-12 13:30:25 +01:00
  • 6ac6abe60e test: Verify new secure mode, and remote log to default port Joachim Nilsson 2019-11-12 13:27:07 +01:00
  • 11ab6c55bc test: Don't overwrite bar.conf Joachim Nilsson 2019-11-12 13:26:17 +01:00
  • 2f72a17b8e syslogd: If system has SO_REUSEPORT, use it Joachim Nilsson 2019-11-12 13:25:21 +01:00
  • 095aa56996 Minor, don't touch PID file on SIGHUP in debug mode Joachim Nilsson 2019-11-12 13:24:50 +01:00
  • f606667038 syslogd: Add support for FreeBSD -s, secure mode Joachim Nilsson 2019-11-12 12:53:21 +01:00
  • d607d6b845 syslogd: Update usage text and man page for new -b flag, drop -r Joachim Nilsson 2019-11-12 12:06:21 +01:00
  • 762e09d7e8 syslogd: Drop -l HOST flag, the RFCs are very clear on this point Joachim Nilsson 2019-11-12 12:05:03 +01:00
  • d1035377cc syslogd: Drop -s HOST flag in favor of future BSD SecureMode Joachim Nilsson 2019-11-12 11:53:41 +01:00
  • 4ee6211277 syslogd: Refactor internals to use new socket API Joachim Nilsson 2019-11-12 09:24:26 +01:00
  • 07677c78a5 Graft struct addrinfo support on top of new socket API Joachim Nilsson 2019-11-12 09:21:25 +01:00
  • a4c1acbca8 syslogd: Drop -r flag, to be replaced with BSD -s (secure) flag Joachim Nilsson 2019-11-12 09:19:54 +01:00
  • c66411e8c2 Use new log macros and err.h fns Joachim Nilsson 2019-11-12 08:56:06 +01:00
  • 53c2d0e3d9 Export flog() function and define new log macros ERR(), WARN(), etc. Joachim Nilsson 2019-11-11 18:52:00 +01:00
  • 90fb520c06 Add socket helper functions from SMCRoute, licesened as 3-clause BSD Joachim Nilsson 2019-11-10 11:22:14 +01:00
  • c31a7d1031 Minor refactor/cleanup Joachim Nilsson 2019-11-10 09:35:01 +01:00
  • a2feba69e2 Allow klogd to send LOG_KERN messages to syslogd Joachim Nilsson 2019-11-09 11:28:34 +01:00
  • b15420fdc5 syslogd: Inherit parsed PRI value in RFC3164 front-end Joachim Nilsson 2019-11-09 11:21:55 +01:00
  • 9aaa7ec8c4 syslogd: Install SIGHUP handler earlier Joachim Nilsson 2019-11-08 16:15:29 +01:00
  • 9ed0fe672a Bump version for second release candidate Joachim Nilsson 2019-11-08 16:04:04 +01:00
  • dd5b470342 Fix assert when buffer->hostname == NULL at startup Joachim Nilsson 2019-11-08 15:50:09 +01:00
  • 0435139ec9 man: Formatting fixes for readability Joachim Nilsson 2019-11-08 13:56:16 +01:00
  • 625a0d4abc Relicense example code/readme/makefile as public domain Joachim Nilsson 2019-11-08 13:43:16 +01:00
  • 1546d3ce94 Bump version for v2.0-rc1 release candidate Joachim Nilsson 2019-11-08 13:23:33 +01:00
  • 9a3d5b6a4d Mention syslogp() code example and Dr. Wettstein's formative work Joachim Nilsson 2019-11-08 13:21:41 +01:00
  • 307dcd073e Revert "Disable clang in Coverity Scan run" Joachim Nilsson 2019-11-08 12:39:45 +01:00
  • fbb7c5ce86 Minor, same look for contact information as previous maintainers Joachim Nilsson 2019-11-08 12:37:18 +01:00
  • 0a3c5e1544 syslogd: Update usage text, drop -a add -b and simplify Joachim Nilsson 2019-11-08 08:07:09 +01:00
  • 3377f07a5a klogd: Update usage text, no more -i or -I Joachim Nilsson 2019-11-08 08:06:45 +01:00
  • 172ae92887 test: Extend API test with logger verifing structured data Joachim Nilsson 2019-11-07 23:19:03 +01:00
  • cc96379252 syslogd: Fix RFC5424 structured-data parser Joachim Nilsson 2019-11-07 23:18:29 +01:00
  • 22c3fa9fa3 syslogd: Increase debug logging of raw incoming and parsed messages Joachim Nilsson 2019-11-07 23:18:00 +01:00
  • 3f68d765db logger: Change usage text slightly for readability Joachim Nilsson 2019-11-07 22:11:29 +01:00
  • 31815d6143 logger: Add NetBSD -d SD for RFC5424 structured data Joachim Nilsson 2019-11-07 22:10:27 +01:00
  • 12d5536dfc Update man page with missing -u SOCK documentation Joachim Nilsson 2019-11-07 21:53:51 +01:00
  • 60239756af Reference syslogp(3) instead of native/old syslog(3) API Joachim Nilsson 2019-11-07 21:48:53 +01:00
  • e25f835a5a logger: Add NetBSD -m MSGID support for logging RFC5424 style Joachim Nilsson 2019-11-07 21:41:33 +01:00
  • f2e1793cda logger: Add NetBSD -n option for LOG_NDELAY Joachim Nilsson 2019-11-07 21:28:49 +01:00
  • 0aa57978ee logger: Add NetBSD -i option for LOG_PID Joachim Nilsson 2019-11-07 21:25:32 +01:00
  • d3461fd6a3 logger: Add NetBSD -c option for LOG_CONS Joachim Nilsson 2019-11-07 21:08:01 +01:00
  • fff4368e80 RFC5424 sec 6.1 states that we *should* support 2048 byte long msgs Joachim Nilsson 2019-11-07 20:56:02 +01:00
  • 07033382ee Minor, type cast logit() argument for Coverity Scan Joachim Nilsson 2019-11-07 20:35:54 +01:00
  • 11819e5b7f Type cast arguments to logit(), fixes warnings from Coverity Joachim Nilsson 2019-11-07 19:36:09 +01:00
  • 884a0a180b Use correct format specifier for ssize_t, found by Coverity Scan Joachim Nilsson 2019-11-07 19:35:53 +01:00
  • 774523f6e2 Fix missing argument to logit() and clean up unreadable code Joachim Nilsson 2019-11-07 19:35:35 +01:00
  • 7533f96ca9 Fix invalid/missing/extra argument to logit(), found by Coverity Joachim Nilsson 2019-11-07 19:24:38 +01:00
  • bafdb29743 Disable clang in Coverity Scan run Joachim Nilsson 2019-11-07 19:17:18 +01:00
  • 6059d873a5 Fix stray 'g' that sneaked in last test update Joachim Nilsson 2019-11-07 19:13:28 +01:00
  • cee833a7f5 Draft update of v2.0 change log Joachim Nilsson 2019-11-07 19:08:05 +01:00
  • 939a28f6f8 Test with a secondary UNIX socket Joachim Nilsson 2019-11-07 18:58:47 +01:00
  • 4376def121 Allow running tests stand-alone Joachim Nilsson 2019-11-07 18:58:25 +01:00
  • 64c6866667 Minor, drop debug log message for normal case Joachim Nilsson 2019-11-07 18:57:33 +01:00
  • 67723e53b9 syslogd.8: Clarify -r documentation and how it works with -b :PORT Joachim Nilsson 2019-11-07 17:47:14 +01:00
  • f8e87f143d syslogd: Drop -a SOCK support, replaced with multiple -p SOCK args Joachim Nilsson 2019-11-07 17:46:15 +01:00
  • d723574eee logger: Update usage text with missing -u SOCK info Joachim Nilsson 2019-11-07 06:47:53 +01:00
  • 9a0bfeef8a Travis-CI: Fix configure rule, follow-up to previous commit Joachim Nilsson 2019-11-06 17:13:55 +01:00
  • 55d92d73c3 Drop address sanitizer for now, fails on Clang builds Joachim Nilsson 2019-11-06 16:59:04 +01:00
  • 74c523a158 Build with -O2 but keep address sanitizer Joachim Nilsson 2019-11-06 16:54:15 +01:00
  • 1544cddd5a Drop unnecessary (and buggy) debug logs Joachim Nilsson 2019-11-06 16:53:48 +01:00
  • 849aeb18c4 Enable Address Sanitizer for debugging Joachim Nilsson 2019-11-06 16:48:16 +01:00
  • 8142c780e0 Wait a bit before checking the log file, also check if it's alive Joachim Nilsson 2019-11-06 16:38:30 +01:00
  • 999f713115 Dump actual v1.conf file on error Joachim Nilsson 2019-11-06 16:26:44 +01:00
  • 66e9975234 Actually return error when API test fails, dump more logs Joachim Nilsson 2019-11-06 16:22:06 +01:00
  • b32d8279ad Travis-CI: Dump test logs since it now suddenly works again Joachim Nilsson 2019-11-06 16:12:19 +01:00
  • 09085b2ba9 Debug API test, syslogp() fails on Travis-CI for some reason Joachim Nilsson 2019-11-06 16:07:13 +01:00
  • 4b994b6ae5 Revert "Disable clang temporarily for Coverity Scan run" Joachim Nilsson 2019-11-06 14:23:42 +01:00
  • 533ca61faa Support for sending messages to a custom port on remote server Joachim Nilsson 2019-11-06 14:21:18 +01:00
  • ff4b9e0499 Minor, code formatting Joachim Nilsson 2019-11-06 13:55:05 +01:00
  • b2ba0048cd Finished valgrind/Coverity -fsanitize=address phase Joachim Nilsson 2019-11-06 13:45:53 +01:00
  • 449a2ea162 Minor, whitespace formatting Joachim Nilsson 2019-11-06 13:45:49 +01:00
  • d3abc7aa16 Minor, whitespace formatting Joachim Nilsson 2019-11-06 13:45:38 +01:00
  • fc4b804a6d Add LOG_WARN alias Joachim Nilsson 2019-11-06 13:35:44 +01:00
  • 31d7298516 Refactor, factor out getaddrinfo() code duplication to a sep. func. Joachim Nilsson 2019-11-06 13:35:06 +01:00
  • 0fd87623d5 Update syslog.conf man page with log formatting options and example Joachim Nilsson 2019-11-06 12:35:56 +01:00
  • 65ac085a97 Add backwards compatibility handling with sysklogd v1.6 Joachim Nilsson 2019-11-06 12:08:42 +01:00
  • 02a67ef273 Refactor, move daemon defines to header file Joachim Nilsson 2019-11-06 12:08:09 +01:00
  • 3ced4508b4 Add missing globfree(), found using -fsanitize=address Joachim Nilsson 2019-11-06 08:48:50 +01:00
  • ec06b220e4 If available, use O_TMPFILE, fix insecure tempfile found by Coverity Joachim Nilsson 2019-11-06 07:04:06 +01:00
  • 3cff584621 Refactor wallmsg() slightly, fixes "unused value" found by Coverity Joachim Nilsson 2019-11-06 06:58:37 +01:00
  • e8674a8fd7 Check return value from setsockopt(), found by Coverity Scan Joachim Nilsson 2019-11-05 15:56:47 +01:00
  • 3c2c353c37 Handle open() errors during log rotation, found by Coverity Scan Joachim Nilsson 2019-11-05 11:04:44 +01:00
  • 0bf36c59a6 Refactor, close() may try to close -1, found by Coverity Scan Joachim Nilsson 2019-11-05 10:28:26 +01:00
  • 2e8dffe893 If fstat() failes logrotate() cannot run, found by Coverity Scan Joachim Nilsson 2019-11-05 10:23:17 +01:00
  • 1fe3c311ca Ignore return value from rename() to silence Coverity Scan Joachim Nilsson 2019-11-05 10:20:50 +01:00
  • 58b243ea55 Replace unsafe strncpy() and strcpy() with safe strlcpy(), Joachim Nilsson 2019-11-05 10:10:06 +01:00