aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-extended/rsyslog
AgeCommit message (Collapse)Author
2017-09-22rsyslog: update from 8.22 to 8.29Randy MacLeod
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>
2017-09-22librelp: upgrade from 1.2.12 to 1.2.14Randy MacLeod
Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-09-07rsyslog: fix segfault after configuration errorsOvidiu Panait
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>
2017-08-28rsyslog: install logrotate configuration file into correct locationChen Qi
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>
2017-08-28rsyslog: fix CVE-2017-12588Chen Qi
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>
2017-03-11rsyslog: fixes musl libc buildMing Liu
- 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>
2017-03-07Make use of the new bb.utils.filter() functionPeter Kjellerstedt
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-02-13rsyslog: use atomic builtins to avoid race issueQi.Chen@windriver.com
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>
2017-01-10rsyslog: don't use update-alternatives to manage init scriptMarkus Lehtonen
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>
2016-12-02remove True option to getVar callsJoshua Lock
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>
2016-10-26rsyslog: upgrade to 8.22.0Chen Qi
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>
2016-10-26librelp: add recipeChen Qi
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>
2016-10-26libfastjson: add recipeChen Qi
This is a project under rsyslog. Add its recipe as it's needed by new version of rsyslog. Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-10-03rsyslog: fixes musl libc buildMing Liu
- struct timeval is defined in sys/time.h with a musl libc. - include fcntl.h without the conditional checking. Signed-off-by: Ming Liu <peter.x.liu@external.atlascopco.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-09-26rsyslog: upgrade to 7.6.7Wenzong Fan
* fix CVEs CVE-2014-3634, CVE-2014-3683 * rebase the patch use-pkgconfig-to-check-libgcrypt.patch * backport fixes for build error: lexer.l:34:14: error: expected identifier or '(' before '__extension__' * replace the old configure option '--enable-cached-man-pages' with '--disable-generate-man-pages' Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-04-28meta-oe: use bb.utils.contains() instead of base_contains()Ross Burton
base_contains() is a compatibility wrapper and may warn in the future, so replace all instances with bb.utils.contains(). Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-02-15rsyslog: add tls related testsTudor Florea
Signed-off-by: Tudor Florea <tudor.florea@enea.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-02-15rsyslog: avoid deprecated GnuTLS functionsTudor Florea
Signed-off-by: Tudor Florea <tudor.florea@enea.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-01-06rsyslog: blacklist because of gnutls upgradeMartin Jansa
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-09-23rsyslog: fix ptestWenzong Fan
After rsyslog updated to 7.6.1, ptest fails to build & run since the serial-tests config patch was dropped: - rsyslog-use-serial-tests-config-needed-by-ptest.patch This patch involved serial test harness: + AM_INIT_AUTOMAKE([serial-tests]) Which is deprecated in favour of parallel test harness. Automake generated a parallel test harness by default. It features automatic collection of the test scripts output in .log files ... More details please refer to: http://www.gnu.org/software/automake/manual/html_node/Parallel-Test-Harness.html To enable the ptest with new changes, we should: * add target 'buildtest-TESTS' for building test components; * fix 'top_srcdir' and install required script 'test-driver'; * run testcases with target 'check-TESTS'. Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-08-24rsyslog: upgrade to 7.6.1Roy Li
1. remove two backport patch: 0001-bugfix-potential-abort-during-HUP.patch and 0001-remove-memleak-introduced-by-GenerateLocalHostName-H.patch 2. update the patch json-0.12-fix.patch 3. remove a obsolete patch rsyslog-use-serial-tests-config-needed-by-ptest.patch 4. update the Dependence 5. update the checksum Signed-off-by: Roy Li <rongqing.li@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-07-16rsyslog: remove the dependency on valgrind for mips64n32Yue Tao
valgrind is not supported mips64n32, so remove it Signed-off-by: Yue Tao <Yue.Tao@windriver.com> Signed-off-by: Roy Li <rongqing.li@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-05-11rsyslogd: Backport upstream commits to fix rsyslog segmentation fault when ↵Li Zhou
heavy load Backport <commit 9a775051f7373176c6e54bee1110965342dd41ad> and <commit 17e1ee2539cea6bac16832b488afd52b20a348ac> from rsyslog upstream <https://github.com/rsyslog/rsyslog> to solve issue: rsyslog segmentation fault when heavy load. Solve the race condition in GenerateLocalHostNameProperty between the prop.Destruct(&propLocalHostName) and prop.Construct(&propLocalHostName). Signed-off-by: Li Zhou <li.zhou@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-02-27rsyslog: fix name of syslogd ua groupSteffen Sledz
All the other syslogd implementations use 'syslogd' as update alternatives group name. So rsyslogd should use this too. Signed-off-by: Steffen Sledz <sledz@dresearch-fe.de> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-02-12rsyslog: don't call init script in logrotate conf fileJackie Huang
Send HUP signal instead of calling the reload command of init script in logrotate configure file, so that it also works when the init system is systemd. Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-02-12rsyslog: add packageconfig for imfile moduleJackie Huang
* imfile: Text file input module, added as default Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-01-28rsyslog: set the default file permissionJackie Huang
We use the default file permission root:adm for syslog-ng, so set the same for rsyslog. Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-01-15rsyslog: fix build with json-0.12Martin Jansa
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-09-26rsyslog: add ptest supportJackie Huang
Changed: - add a patch to use serial-tests config needed by ptest - add a patch to fix rsyslog test cases don't finish issue - add run-ptest, do_compile_ptest and do_install_ptest - add dependency for rsyslog-ptest - add PACKAGECONFIG for valgrind Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-09-26rsyslog: add UPDATE_ALTERNATIVE for syslog-serviceChen Qi
Use ALTERNATIVE mechanism in OE to manage the syslog service to avoid conflicts with other syslog implementations like sysklogd or busybox. Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-08-11rsyslog: use syslog as the script name of syslog-initJackie Huang
Use syslog as the default symlink and INITSCRIPT_NAME just as sysklogd and syslog-ng did. Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-06-21rsyslog: use pkgconfig to check libgcryptRoy Li
libgcrypt does no longer provide libgcrypt-config, and provide *.pc, so we should use pkgconfig to check Signed-off-by: Roy Li <rongqing.li@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-05-03rsyslog: add DEPENDS on bison-native and flex-nativeJackie Huang
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
2014-05-03rsyslog: Add config files and use update-alternatives for rsyslogJackie Huang
- Add a logrotate config file for rsyslog. - Change rsyslog.conf to be compatible with sysklogd.conf. - Use update-alternatives since we have other syslog systems: sysklogd, busybox-syslog, etc. Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
2014-05-03rsyslog: add PACKAGECONFIG for optional featuresJackie Huang
rsyslog supports many optional features, add PACKAGECONFIG for them to ensures that the dependency on related packages is deterministic and so that we can easily enable/disable features. Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
2014-05-03rsyslog: use BPN to fix multilib and add all licensesJackie Huang
- use BPN instead of PN to fix multilib builds - add all three licenses - add DESCRIPTION Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
2014-04-20rsyslog: add status command and a minor fix for initscriptJackie Huang
- add status command - add --oknodo for do_start Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-04-20rsyslog: remove unsupported option from initscriptJack Mitchell
> starting rsyslogd ... rsyslogd: error: option -c > is no longer supported - ignored Signed-off-by: Jack Mitchell <jmitchell@cbnl.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-02-23recipes: convert remaining SUMMARY/DESCRIPTION cosmetic issuesMatthieu CRAPET
Changes: - rename SUMMARY with length > 80 to DESCRIPTION - rename DESCRIPTION with length < 80 to (non present tag) SUMMARY - drop final point character at the end of SUMMARY string - remove trailing whitespace of SUMMARY line Note: don't bump PR Signed-off-by: Matthieu Crapet <Matthieu.Crapet@ingenico.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2013-12-21lib32-rsyslog: fix wrong systemd server fileKang Kai
When enable multilib on x86-64, it fails to build lib32-rsyslog with error: | ERROR: Function failed: SYSTEMD_SERVICE_lib32-rsyslog value lib32-rsyslog.service does not exist It uses wrong value ${PN}.service to set SYSTEMD_SERVICE. Correct it by using BPN. Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2013-11-24rsyslog: rename libjson to json-c in DEPENDSOlof Johansson
The libjson recipe was renamed to json-c in commit 533c1db2 of oe-core. Signed-off-by: Olof Johansson <olof.johansson@axis.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2013-10-21rsyslog: fix dependency name (json-c => libjson)Olof Johansson
Signed-off-by: Olof Johansson <olof.johansson@axis.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2013-10-17rsyslog: update to 7.4.4Jack Mitchell
Signed-off-by: Jack Mitchell <jmitchell@cbnl.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2013-07-12rsyslog: inherit pkgconfigMartin Jansa
* without pkgconfig it's failing to expand PKG_CHECK_MODULES macro: | rsyslog-5.8.0/configure: line 16111: syntax error near unexpected token `GNUTLS,' | rsyslog-5.8.0/configure: line 16111: ` PKG_CHECK_MODULES(GNUTLS, gnutls >= 1.4.0)' Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2013-04-15recipes: Unify indentationMartin Jansa
* This change is only aesthetic (unlike indentation in Python tasks). * Some recipes were using tabs. * Some were using 8 spaces. * Some were using mix or different number of spaces. * Make them consistently use 4 spaces everywhere. * Yocto styleguide advises to use tabs (but the only reason to keep tabs is the need to update a lot of recipes). Lately this advice was also merged into the styleguide on the OE wiki. * Using 4 spaces in both types of tasks is better because it's less error prone when someone is not sure if e.g. do_generate_toolchain_file() is Python or shell task and also allows to highlight every tab used in .bb, .inc, .bbappend, .bbclass as potentially bad (shouldn't be used for indenting of multiline variable assignments and cannot be used for Python tasks). * Don't indent closing quote on multiline variables we're quite inconsistent wheater it's first character on line under opening quote or under first non-whitespace character in previous line. Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Acked-by: Koen Kooi <koen@dominion.thruhere.net>
2013-04-15rsyslog: move systemd support from meta-systemd back to meta-oeMartin Jansa
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2012-07-16rsyslog: move systemd support to meta-systemdAndreas Müller
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
2012-06-05recipes: bump PR to fix -systemd postinsts where SYSTEMD_SERVICE was used ↵Martin Jansa
without PN* suffix Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2012-02-23rsyslog: remove unneeded systemd codeAndreas Müller
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com> Acked-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-12-23rsyslog: move systemd support to rsyslog-systemdOtavio Salvador
This makes the package consistent with others supporting systemd and also cleans up the recipe using the systemd.bbclass. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>