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

Bug#860269: libkf5bluezqt6: kded5 leaks file descriptor to child processes, /dev/rfkill should be opened with CLOEXEC



Package: libkf5bluezqt6
Version: 5.28.0-1
Severity: normal

I have noticed lvm tools complaining about leaked file descriptors when
they are started from a shell in a kde konsole. One of the file
descriptors is /dev/rfkill , which is likely opened by
/usr/lib/x86_64-linux-gnu/libKF5BluezQt.so.5.28.0 (at least that's the
only lib in kded5's /proc/../maps file that contains the string rfkill.

libkf5bluezqt6 should open the file with O_CLOEXEC to avoid leaks.

$ LANG=C ls -l /proc/$$/fd
total 0
lrwx------ 1 stf stf 64 Apr 13 21:01 0 -> /dev/pts/3
lrwx------ 1 stf stf 64 Apr 13 21:01 1 -> /dev/pts/3
lrwx------ 1 stf stf 64 Apr 13 21:01 2 -> /dev/pts/3
lrwx------ 1 stf stf 64 Apr 13 21:01 255 -> /dev/pts/3
lr-x------ 1 stf stf 64 Apr 13 21:01 31 -> /dev/rfkill
lrwx------ 1 stf stf 64 Apr 13 21:01 37 -> socket:[28435]

-- System Information:
Debian Release: 9.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: armhf, i386

Kernel: Linux 4.9.0-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages libkf5bluezqt6 depends on:
ii  libc6               2.24-10
ii  libkf5bluezqt-data  5.28.0-1
ii  libqt5core5a        5.7.1+dfsg-3+b1
ii  libqt5dbus5         5.7.1+dfsg-3+b1
ii  libqt5network5      5.7.1+dfsg-3+b1
ii  libstdc++6          6.3.0-12

libkf5bluezqt6 recommends no packages.

libkf5bluezqt6 suggests no packages.

-- no debconf information


Reply to: