1# The client writes a message with sendsyslog syscall. 2# The syslogd writes it into a file and through a pipe. 3# The syslogd passes it via UDP to the loghost. 4# The server receives the message on its UDP socket. 5# Find the message in client, file, pipe, syslogd, server log. 6# Create a ktrace dump of the client and check that sendsyslog(2) 7# has been used with flags. 8 9use strict; 10use warnings; 11use Sys::Syslog 'LOG_CONS'; 12 13our %args = ( 14 client => { 15 connect => { domain => "sendsyslog", flags => LOG_CONS }, 16 ktrace => { 17 qr/CALL sendsyslog\(.*LOG_CONS.*\)/ => 1, 18 qr/GIO fd -1 wrote \d+ bytes/ => 2, 19 qr/RET sendsyslog 0/ => 2, 20 }, 21 }, 22); 23 241; 25