Ulogd crashes when pcap file has wrong permissions
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ulogd2 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
When ulogd2 has problems reopening the pcap file it will crash immediately or some seconds later - most likely due to first attempt to flush packets to dump file after reopen (file NULL-ptr?).
Reproduce:
chown root.root /var/log/
chmod 0644 /var/log/
# Invoke command similar to logrotate:
invoke-rc.d ulogd2 reload
Mar 9 00:15:43 localhost ulogd[3567]: can't open pcap file /var/log/
Mar 9 00:15:44 localhost kernel: [210247.584746] ulogd[3567]: segfault at 0 ip 00007fbd8379fda0 sp 00007ffff30e8ed0 error 4 in libc-2.
# lsb_release -rd
Description: Ubuntu 14.04.2 LTS
Release: 14.04
# apt-cache policy ulogd2-pcap
ulogd2-pcap:
Installed: 2.0.3-1ubuntu2
Candidate: 2.0.3-1ubuntu2
Version table:
*** 2.0.3-1ubuntu2 0
500 http://
100 /var/lib/
# apt-cache policy ulogd2
ulogd2:
Installed: 2.0.3-1ubuntu2
Candidate: 2.0.3-1ubuntu2
Version table:
*** 2.0.3-1ubuntu2 0
500 http://
100 /var/lib/
Yeah, I have a good idea what's happened there. I'll get it fixed upstream.