jailkit-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Jailkit-dev] [bug #36814] jk_socketd fails to log messages after rsyslo


From: Georgi Georgiev
Subject: [Jailkit-dev] [bug #36814] jk_socketd fails to log messages after rsyslogd gets a SIGHUP
Date: Mon, 09 Jul 2012 03:17:45 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.4) Gecko/20120425 Firefox/10.0.4

URL:
  <http://savannah.nongnu.org/bugs/?36814>

                 Summary: jk_socketd fails to log messages after rsyslogd gets
a SIGHUP
                 Project: Jailkit
            Submitted by: chutz
            Submitted on: Mon 09 Jul 2012 12:17:44 PM JST
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

On CentOS 6 the weekly logrotate sends a sighup to rsyslogd. After that,
jk_socketd is no longer able to send messages from the chrooted /dev/log to
the system /dev/log. This is reproducible.

An strace shows that the issue is indeed in the system /dev/log socket being
closed and re-opened. Here is what happens after I do "sudo service rsyslog
restart"

[pid  4640] recvfrom(15, "<38>Jul  9 12:15:12 jk_lsh[4871]"..., 512, 0, NULL,
NULL) = 118
[pid  4640] sendto(3, "<38>Jul  9 12:15:12 jk_lsh[4871]"..., 118, 0, NULL, 0)
= -1 ENOTCONN (Transport endpoint is not connected)
[pid  4640] gettimeofday({1341803712, 620110}, NULL) = 0

And here is what happens after I restart jk_socketd, and everything works once
again.

[pid  4889] gettimeofday({1341803767, 931455}, NULL) = 0
[pid  4889] recvfrom(15, "<38>Jul  9 12:16:07 jk_lsh[4917]"..., 512, 0, NULL,
NULL) = 118
[pid  4889] sendto(3, "<38>Jul  9 12:16:07 jk_lsh[4917]"..., 118, 0, NULL, 0)
= 118
[pid  4889] gettimeofday({1341803767, 933058}, NULL) = 0





    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?36814>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]