#
8d9c25c4 |
| 12-Feb-2025 |
Jose Luis Duran <jlduran@FreeBSD.org> |
syslogd: Fix tests when if_epair is not loaded
Take a cue from vnet.subr and abstract module loading, jail creation and cleanup.
Note that the way jails are created differs slightly from vnet.subr,
syslogd: Fix tests when if_epair is not loaded
Take a cue from vnet.subr and abstract module loading, jail creation and cleanup.
Note that the way jails are created differs slightly from vnet.subr, to maintain the current style of the tests.
Reported by: Jenkins Reviewed by: markj Approved by: emaste (mentor) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D48949
show more ...
|
Revision tags: release/14.1.0-p7, release/14.2.0-p1, release/13.4.0-p3 |
|
#
ae4f708f |
| 14-Jan-2025 |
Mark Johnston <markj@FreeBSD.org> |
syslogd: Ensure that forwarded messages are sent from port 514
Prior to commit 4ecbee2760f7, syslogd used its listening socket(s) to forward messages to remote hosts, when so configured. As a conse
syslogd: Ensure that forwarded messages are sent from port 514
Prior to commit 4ecbee2760f7, syslogd used its listening socket(s) to forward messages to remote hosts, when so configured. As a consequence, they are sent from the address+port to which those sockets are bound, typically 0.0.0.0:514.
When in capability mode, sendto() is not permitted, so we instead pre-create sockets and connect them to the forwarding addresses, letting the kernel pick an ephemeral source port. However, this doesn't match syslogd's previous behaviour, breaking some setups.
So, restore the old behaviour by binding forwarding sockets to the addresses on which syslogd is listening. Since we cannot use the same sockets for receiving messages and also for forwarding them, use SO_REUSEPORT to enable duplicate bindings to port 514, relying on the existing behaviour that the first socket bound to that port is the one that actually receives messages.
Add some regression tests to cover this and related functionality of syslogd's -a option.
Reviewed by: jfree Reported by: Michael Butler <imb@protected-networks.net> Fixes: 4ecbee2760f7 ("syslogd: Open forwarding socket descriptors") Differential Revision: https://reviews.freebsd.org/D48222
show more ...
|
#
66a022a3 |
| 23-Dec-2024 |
Michal Scigocki <michal.os@hotmail.com> |
syslogd: Add syslog basic message format tests
RFC 3164 and RFC 5424 syslog message format tests and minor refactor of existing tests to reuse components in new tests.
Reviewed by: markj MFC after:
syslogd: Add syslog basic message format tests
RFC 3164 and RFC 5424 syslog message format tests and minor refactor of existing tests to reuse components in new tests.
Reviewed by: markj MFC after: 3 weeks Pull Request: https://github.com/freebsd/freebsd-src/pull/1536
show more ...
|
Revision tags: release/14.2.0 |
|
#
b872bb72 |
| 27-Nov-2024 |
Jake Freeland <jfree@FreeBSD.org> |
syslogd: Split up basic test case
The basic case previously tested if messages are correctly logged over UNIX, INET, and INET6 transport. This single case can be split up into three separate cases t
syslogd: Split up basic test case
The basic case previously tested if messages are correctly logged over UNIX, INET, and INET6 transport. This single case can be split up into three separate cases to decrease code complexity and offer more granular results.
Both INET and INET6 cases will be skipped if the kernel does not support the corresponding transport.
Reviewed by: zlei, markj Differential Revision: https://reviews.freebsd.org/D47650
show more ...
|
#
8b63477e |
| 27-Nov-2024 |
Jake Freeland <jfree@FreeBSD.org> |
syslogd: Add host forwarding test
Test communication between hosts by setting up two syslogd instances, each binded to their own addresses, and sending a message from one to the other. The tests pas
syslogd: Add host forwarding test
Test communication between hosts by setting up two syslogd instances, each binded to their own addresses, and sending a message from one to the other. The tests passes if the message was delivered and logged successfully.
This required some tweaking to the syslogd start and stop routines so they could handle launching multiple syslogd instances with different runtime files.
Run the tests in jails with an isolated VNET so they don't fail due to an address bind collision in the host's VNET.
Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D47649
show more ...
|
#
5d045d55 |
| 19-Sep-2024 |
Mark Johnston <markj@FreeBSD.org> |
syslogd: Ignore getaddrinfo() errors if -ss is specified
This can arise if the jail doesn't have networking configured, and if -ss is specified, syslogd won't listen on port 514 anyway.
Add a regre
syslogd: Ignore getaddrinfo() errors if -ss is specified
This can arise if the jail doesn't have networking configured, and if -ss is specified, syslogd won't listen on port 514 anyway.
Add a regression test case for this as well.
PR: 238006 MFC after: 1 month
show more ...
|
Revision tags: release/13.4.0, release/14.1.0, release/13.3.0, release/14.0.0 |
|
#
fcace290 |
| 22-Jun-2023 |
Jake Freeland <jfree@FreeBSD.org> |
syslogd: Add some basic regression tests
Reviewed by: markj MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D41403
|