Menu

#57 Weird log prefixes with changed /proc titles

devel
open
Bishop
5
2014-11-07
2014-11-07
Natrio
No

After this patch:
http://vtun.cvs.sourceforge.net/viewvc/vtun/vtun/lib.c?r1=1.9.2.3&r2=1.9.2.4&pathrev=BRANCH-3_X2
vtun daemon sending some weird log messages:

vtund[2952]: VTun client ver 3.X 11/07/2014 started
t connecting to host1[2952]: Connecting to host1
t connecting to host1[2952]: Use SSL-aware challenge/response
t connecting to host1[2952]: Remote Server sends <TuC9KE15>
t connecting to host1[2952]: Session tuntest[host1] opened
t tun tun1[2952]: ZLIB compression[level 9] initialized.
t tun tun1[2952]: AES-256-CFB decryption initialized

because closelog() call (every time as vtun_syslog() is called) resets log ident to changed /proc titles instead of "vtund" string.

I think, closelog() in vtun_syslog() requires adding openlog()
The patch with fix attached.

1 Attachments

Discussion

  • Natrio

    Natrio - 2014-11-07

    UPD:
    It seems to be requires replacing ALL syslog() calls to vtun_syslog()

     
  • Natrio

    Natrio - 2014-11-07

    Better solution:
    Add openlog() after closelog() in vtun_suslog() code (patch attached).

     

Log in to post a comment.