summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-extended/rsyslog
Commit message (Collapse)AuthorAgeFilesLines
* rsyslog: fix wrong option of PACKAGECONFIG[valgrind]Haiqing Bai2020-09-151-7/+1
| | | | | | | | | | | | | | | | | | | | The source configure.ac shows: --enable-valgrind: Enable somes special code that rsyslog core developers consider useful for testing.Do NOT use if you don't exactly know what you are doing, except if told so by rsyslog developers. NOT to be used by distro maintainers for building regular packages. --without-valgrind-testbench: Don't use valgrind in testbench PACKAGECONFIG[valgrind] should use '--without-valgrind-testbench' And after this fix, the code which removes the valgrind depended ptest cases for arm,mips is no longer needed. Signed-off-by: Haiqing Bai <Haiqing.Bai@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* rsyslog: get alias of syslog backChangqing Li2020-07-131-0/+4
| | | | | | | | | | | | | | | since upstream rsyslog commit https://github.com/rsyslog/rsyslog/pull/4317/commits/7a671da74f78047b3fd0eb65203f045de28cec0f , Alias=syslog.service is removed from service file, which will make systemctl restart syslog fail since Unit syslog.service not found when we set rsyslog to default syslog. And upstream have change the solution about pull 4317, so during next upgrade, we need to add our own rsyslog.service, refer https://github.com/rgerhards/rsyslog/commit/83d5710f074b34263322cd53fa1112aafd25b985 Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* rsyslog: upgrade 0.2004.0 -> 0.2006.0Zang Ruochen2020-06-301-2/+2
| | | | | Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* librelp: upgrade 1.5.0 -> 1.6.0Zang Ruochen2020-06-301-1/+1
| | | | | Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* rsyslog: upgrade 8.2002 -> 8.2004Zang Ruochen2020-05-281-2/+2
| | | | | Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* rsyslog: Enable atomic builtins on rv32Khem Raj2020-04-291-0/+1
| | | | | | | | Fixes rsyslog-8.2002.0/runtime/../action.c:1666: undefined reference to `__sync_bool_compare_and_swap_8' collect2: error: ld returned 1 exit status Signed-off-by: Khem Raj <raj.khem@gmail.com>
* rsyslog: Disable valgrind dependency for riscv32Khem Raj2020-04-251-0/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* rsyslog: 8.1911.0 -> 8.2002.0Randy MacLeod2020-04-102-2/+9
| | | | | | | | | | | | | | | | | | | Add some error handling to run-ptests. Fix up the new set-envvars script to that 36 new tests pass. On qemux86-64/kvm the ptest results with extra filesystem space and a timeout of 800 seconds are: 1911 2002 TOTAL: 389 408 PASS: 339 357 SKIP: 39 39 XFAIL: 0 0 FAIL: 11 12 XPASS: 0 0 ERROR: 0 0 Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* librelp: upgrade 1.4.0 -> 1.5.0Pierre-Jean Texier2020-03-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a bugfix release: - bugfix: too late termination of relp Engine on shutdown When librelp is instructed to shutdown, it processes messages still present inside its receive buffers. It only terminates when it needs to wait for new data to arrive. Depending on RELP and TCP window size and message length, this may cause many messages to be processed while in shutdown. Even with default settings, up to 128 messages may be taken off the wire and be processed. This is a problem regarding the shutdown timing of a librelp user (e.g. rsyslog). It may take unexpectedly long to shutdown the RELP component and as such timeout may occur in the caller code. This is especially the case if the caller does lengthy processing when a RELP message is received. Note: It is perfectly fine for a caller to do this. The problem is that librelp continues to provide new data for a relatively long and unexpected period. This fix ensure that the relp engine shuts down much quicker when shutdown is requested. It now also checks the shutdown request while processing already received buffer data. This problem was detected when working on see also https://github.com/rsyslog/rsyslog/issues/3941 closes https://github.com/rsyslog/librelp/issues/175 - build system fix: invalid default in configure help text closes https://github.com/rsyslog/librelp/issues/169 - error message on invalid TLS library request added This way an invalid TLS library (name) can be detected and the error presented to the user. So far, invalid library names were hard to find. Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* rsyslog: Use python3 in ptestsKhem Raj2020-02-171-1/+7
| | | | | | Adjusts rdeps accordingly Signed-off-by: Khem Raj <raj.khem@gmail.com>
* recipes: Make powerpc64le overridesKhem Raj2020-01-191-0/+1
| | | | | | The existing conditions for ppc64/be are applicable for le as well Signed-off-by: Khem Raj <raj.khem@gmail.com>
* rsyslog: update from 8.1910 to 8.1911Randy MacLeod2020-01-061-2/+2
| | | | | | | | | | | | ptest results for qemux86-64 with kvm and a timeout of 1000 seconds to allow stress tests to complete: Recipe | Passed | Failed | Skipped rsyslog-8.1908.0 | 379 | 4 | 2 rsyslog-8.1911.0 | 381 | 4 | 3 Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* rsyslog: Do not assume atomic built-ins on ppcKhem Raj2019-12-191-0/+1
| | | | | | | Fixes build issue runtime/../action.c:2019: undefined reference to `__sync_val_compare_and_swap_8' Signed-off-by: Khem Raj <raj.khem@gmail.com>
* rsyslog: Sync VALGRIND supported arch listKhem Raj2019-12-151-5/+19
| | | | | | This list should be same as the valgrind recipe Signed-off-by: Khem Raj <raj.khem@gmail.com>
* rsyslog: Dont force enable atomic builtins on mipsKhem Raj2019-11-181-0/+1
| | | | | | This would ensure that checks are performed properly before using them Signed-off-by: Khem Raj <raj.khem@gmail.com>
* rsyslog: upgrade from v8.1908.0 to v8.1910.0Trevor Gamblin2019-10-283-78/+2
| | | | | | | | | | | | | | Upgrade rsyslog to latest version for various fixes including the following CVEs: CVE: CVE-2019-17040 CVE: CVE-2019-17041 Backported patches for those fixes were removed since they are contained in v8.1910.0. Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* rsyslog: fix CVE-2019-17041Trevor Gamblin2019-10-172-0/+44
| | | | | | | Backport fix to zeus; master branch already has v8.1910.0 Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* rsyslog: fix CVE-2019-17040Trevor Gamblin2019-10-112-0/+32
| | | | | | | Backport CVE-2019-17040 fix to zeus. Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* rsyslog: update from 8.1907.0 to 8.1908.0Randy MacLeod2019-09-221-2/+3
| | | | | | | | | | | | | | | | | | | | | Enable imfile-tests even if they take a while. ptest results for qemux86-64 with kvm and a timeout of 1000 seconds to allow stress tests to complete: Recipe | Passed | Failed | Skipped | Time(s) rsyslog-8.1907.0 | 365 | 4 | 2 | 2452 rsyslog-8.1908.0 | 379 | 4 | 2 | 2538 The failed tests for both 8.1907 and 8.1908 are: FAIL: Test ./omfile-read-only-errmsg.sh (took 2 seconds) FAIL: Test ./omfile-read-only.sh (took 2 seconds) FAIL: Test ./privdropuser.sh (took 580 seconds) FAIL: Test ./privdropuserid.sh (took 580 seconds) They are not fixed in this update. Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* rsyslog: update from 8.1903.0 to 8.1907.0Randy MacLeod2019-08-021-3/+2
| | | | | Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* librelp: Pass Wno-error to compilerKhem Raj2019-07-211-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | After autoconf-archive was upgraded to 2019.01.06 it started to add extra warning flags via WARN_CFLAGS along with -Werror which means that now compiler could be stricter and break the build if any of the new warnings are flagged The difference is old WARN_CFLAGS='-fno-strict-aliasing -Wimplicit-function-declaration -Wold-style-definition -Wjump-misses-init -Werror -Wno-suggest-attribute=format -Wunused-parameter -Wmissing-field-initializers' new WARN_CFLAGS='-fno-strict-aliasing -Wimplicit-function-declaration -Wold-style-definition -Wjump-misses-init -Wall -Wextra -Wundef -Wwrite-strings -Wpointer-arith -Wmissing-declarations -Wredundant-decls -Wno-unused-parameter -Wno-missing-field-initializers -Wformat=2 -Wcast-align -Wformat-nonliteral -Wformat-security -Wsign-compare -Wstrict-aliasing -Wshadow -Winline -Wpacked -Wmissing-format-attribute -Wmissing-noreturn -Winit-self -Wmissing-include-dirs -Wunused-but-set-variable -Warray-bounds -Wreturn-type -Wswitch-enum -Wswitch-default -Wduplicated-cond -Wduplicated-branches -Wlogical-op -Wrestrict -Wnull-dereference -Wdouble-promotion -pedantic -Wunused-parameter -Wmissing-field-initializers -Werror -Wno-suggest-attribute=format -Wunused-parameter -Wmissing-field-initializers' Hence we started seing build failure like https://errors.yoctoproject.org/Errors/Details/252684/ This fix just turns off warnings-as-errors so build can still go on, if we need to fix the warnings they still are present in log.do_compile Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com> Cc: Robert Yang <liezhi.yang@windriver.com>
* Rsyslog: Add mmjsonparse to PACKAGECONFIGVincent Prince2019-04-061-0/+5
| | | | | Signed-off-by: Vincent Prince <vincent.prince.fr@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* rsyslog: Update from 8.37.0 to 8.1903.0Randy MacLeod2019-03-212-122/+7
| | | | | | | | | | | | | | | | | | | | | | Remove obsoleted fix-ptest-not-finish patch which is no longer required after rsyslog commit: a5b9fbc02 testbench: remove no longer needed .conf files Add libgcc and python dependencies for ptest: Testsuite summary for rsyslog 8.1903.0 ======================================================================== # TOTAL: 351 # PASS: 309 # SKIP: 38 # XFAIL: 0 # FAIL: 4 # XPASS: 0 # ERROR: 0 for qemux86[-64] when run with ptest-runner -t 800 since some tests are stress tests and take quite a while to complete. Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* librelp: Upgrade to 1.4.0Mingli Yu2019-03-142-167/+2
| | | | | | | | | Remove one backported patch. Add openssl to Depends. Signed-off-by: Mingli Yu <mingli.yu@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* rsyslog: curl-less build with fmhttp PACKAGECONFIGBrad Bishop2018-12-051-2/+3
| | | | | | | | | With all other configure options at their defaults, the dependency on libcurl can be removed if fmhttp is configured out. Add an fmhttp PACKAGECONFIG, still enabled by default, to enable this. Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* librelp: Upgrade to 1.2.18Mingli Yu2018-11-264-128/+167
| | | | | | | | | | | | * Correct the homepage * Remove two backported patches * Backport 0001-testbench-improvements.patch to fix the below error: | ../../git/src/tcp.c:3072:57: error: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1005 [-Werror=format-truncation=] | snprintf(errmsg, sizeof(errmsg), "error connecting: '%s'", errStr); Signed-off-by: Mingli Yu <mingli.yu@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* rsyslog: avoid recompiling program during running ptestMingli Yu2018-09-301-0/+4
| | | | | | | | | | | | | | | | | | | | | | * Previously there is below logic in rsyslog-8.37.0/tests/Makefile check-TESTS: After below commit in automake, 8555e7b81 check: Make 'check-TESTS' target depend on test dependencies the logic changes to the below: check-TESTS: $(check_PROGRAMS) It will result in compiling program on target when run ptest on target, but actually there is no need to rebuild the program on target, so change it back to "check-TESTS:" to avoid recompiling. * Update the path of abs_top_builddir to guarantee the test env is correct. Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* rsyslog: update from 8.36 to 8.37Randy MacLeod2018-08-302-44/+2
| | | | | | | | Drop upstreamed patch: edce434db fix race in parallel builds Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* rsyslog: add PACKAGECONFIG for imjournalChen Qi2018-08-052-0/+11
| | | | | | | | | | | Add PACKAGECONFIG for imjournal, and add corresponding configuration to /etc/rsyslog.d/imjournal.conf when it's enabled. Default to disable it. This patch also enables rsyslog.conf to include configuration files /etc/rsyslog.d/*.conf. Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libfastjson: backport patch to fix compilation errorChen Qi2018-08-022-1/+48
| | | | | | | | | | | I've met the following compilation error. | ../git/json_object.c:415:3: error: jump skips variable initialization [-Werror=jump-misses-init] Backport a patch to fix it. Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* librelp: Upgrade to 1.2.16Mingli Yu2018-08-023-2/+129
| | | | | | | | | | | * Add 0001-src-tcp.c-fix-jump-misses-init-error.patch to fix -Werror=jump-misses-init error * Add 0001-src-tcp.c-increase-the-size-of-szHname.patch to fix -Werror=format-truncation error when security_flags turned on Signed-off-by: Mingli Yu <mingli.yu@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* rsyslog: fix configuration file for logrotateChen Qi2018-08-022-2/+3
| | | | | | | | | | | | | | | | The logrotate.rsyslog file uses 'cat /var/run/rsyslogd.pid' to determine the pid of rsyslogd daemon. This is incorrect, because rsyslogd may start in a way that does not create rsyslog.pid file. Failing to send HUP signal to rsyslogd daemon will result in unexpected behaviour. e.g. rsyslogd is writing to /var/log/messages-xxxx instead of /var/log/messages. We should really use pkill to send HUP signal to rsyslogd to ensure correct behaviour. Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* rsyslog: fix race in parallel buildsHongxu Jia2018-07-272-0/+42
| | | | | | | | | | | | | | | | | | If libgcry.la is built later than lmcry_gcry.la, there is a failure: [snip] |../aarch64-wrs-linux-libtool --tag=CC --mode=link aarch64-wrs-linux-gcc -o lmcry_gcry.la lmcry_gcry_la-lmcry_gcry.lo libgcry.la -lgcrypt |aarch64-wrs-linux-libtool: error: cannot find the library 'libgcry.la' or unhandled argument 'libgcry.la' |Makefile:1049: recipe for target 'lmcry_gcry.la' failed |make[2]: *** [lmcry_gcry.la] Error 1 [snip] The LIBADD of lmcry_gcry.la contains libgcry.la, we should also add libgcry.la to lmcry_gcry.la's DEPENDENCIES. Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* rsyslog: Disable valgrind support on risv64Khem Raj2018-07-141-0/+1
| | | | | | valgrind is not yet working on risc-v arch Signed-off-by: Khem Raj <raj.khem@gmail.com>
* rsyslog: upgrade 8.29.0 -> 8.36.0changqing.li@windriver.com2018-07-033-11/+12
| | | | | Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libfastjson: Upgrade to 0.99.8Mingli Yu2018-06-271-1/+1
| | | | | Signed-off-by: Mingli Yu <mingli.yu@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* rsyslog: add UPSTREAM_CHECK_URIYi Zhao2018-05-291-0/+3
| | | | | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* rsyslog: refresh patchesYi Zhao2018-05-015-70/+52
| | | | | | | | Refresh patches with devtool command to fix do_patch warning. Drop 0001-Undefine-GLOB_BRACE.patch since it had been fixed upstream. Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
* rsyslog: update from 8.22 to 8.29Randy MacLeod2017-09-223-135/+3
| | | | | | | | | | | | Drop two patches: CVE-2017-12588.patch 0001-core-bugfix-segfault-after-configuration-errors.patch since they are included in 8.29. Update the testbench configuration flags. Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* librelp: upgrade from 1.2.12 to 1.2.14Randy MacLeod2017-09-221-1/+1
| | | | | Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* rsyslog: fix segfault after configuration errorsOvidiu Panait2017-09-072-0/+91
| | | | | | | | | | | | | | | | | | | | | | | | | rsyslog will segfault on startup if a) the local machine's hostname is set to a non-FQDN name b) the getaddrinfo() system call fails This scenario is higly unlikely, but may exist especially with provisioned VMs which may not properly be able to do name queries on startup (seen for example on AWS). This patch fixes the situation and also provides more robustness for very early startup error messages when some of the error-reporting subsystem is not yet properly initialized. Note that under these circumstances, errors may only show up on stderr. closes https://github.com/rsyslog/rsyslog/issues/1573 Reference: https://github.com/rsyslog/rsyslog/issues/1573 Upstream patch: https://github.com/rsyslog/rsyslog/commit/6d258339802cb9f13d8a4a157a4b74eccb902d8f Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* rsyslog: install logrotate configuration file into correct locationChen Qi2017-08-281-1/+2
| | | | | | | | | | | | | | Previously we used update-alternatives to manage this configuration file, creating link under /etc/logrotate.d/ directory. However, we later dropped the update-alternatives approach and explicitly setting rsyslog to conflict with other syslog providers. So we need to install the logrotate configuration file under /etc/logrotate.d to make things right. Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* rsyslog: fix CVE-2017-12588Chen Qi2017-08-282-0/+41
| | | | | | | | | | | | | | | Backport a patch to fix CVE-2017-12588. The zmq3 input and output modules in rsyslog before 8.28.0 interpreted description fields as format strings, possibly allowing a format string attack with unspecified impact. Reference: https://nvd.nist.gov/vuln/detail/CVE-2017-12588 CVE: CVE-2017-12588 Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* rsyslog: fixes musl libc buildMing Liu2017-03-113-0/+73
| | | | | | | | - struct timeval is defined in sys/time.h with a musl libc. - GLOB_BRACE is not defined in posix and thus not implemented in musl libc. Signed-off-by: Ming Liu <peter.x.liu@external.atlascopco.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* Make use of the new bb.utils.filter() functionPeter Kjellerstedt2017-03-071-2/+1
| | | | | Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* rsyslog: use atomic builtins to avoid race issueQi.Chen@windriver.com2017-02-131-1/+1
| | | | | | | | | | | | | rsyslog uses a small program to check if compiler has atomic builtins or not. This does not work when cross compiling, resulting in potential race issue. In fact, when running ptest on intel-x86-64 board, we have met the race problem. As our compiler gcc, has atomic builtins, we force ap_cv_atomic_builtins to be 'yes' so that rsyslog could make use of the atomic builtins and avoid the race issue. Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
* rsyslog: don't use update-alternatives to manage init scriptMarkus Lehtonen2017-01-101-30/+4
| | | | | | | | | Also, explicitly conflict with other syslog providers. [YOCTO #10433] Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* remove True option to getVar callsJoshua Lock2016-12-021-6/+6
| | | | | | | | | getVar() now defaults to expanding by default, thus remove the True option from getVar() calls with a regex search and replace. Search made with the following regex: getVar ?\(( ?[^,()]*), True\) Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
* rsyslog: upgrade to 8.22.0Chen Qi2016-10-267-358/+10
| | | | | | | | | | | | enable_tls_ptests.patch is removed as the problem has been fixed in new version. fix_build_with_musl.patch is removed as it's no longer suitable. The file it fixes is not even there any more. Several necessary runtime dependencies are added to rsyslog-ptest. Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* librelp: add recipeChen Qi2016-10-261-0/+15
| | | | | | | | This is a project under rsyslog. Add its recipe as it's needed by the new version of rsyslog. Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>