Your message dated Sat, 15 Jan 2011 19:38:41 +0000
with message-id <[email protected]>
and subject line Bug#574468: fixed in samba 2:3.5.6~dfsg-4
has caused the Debian Bug report #574468,
regarding samba: pam_winbind leaks file descriptors
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
574468: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=574468
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: samba
Version: 2:3.4.7~dfsg-1~bpo50+1
Severity: important
Tags: patch


The pam_winbind module leaks file descriptors.  wb_common.c keeps its
file descriptor in the winbindd_fd global variable and closes that
through the winbind_close_sock function, but there's no provision for
making sure that winbind_close_sock is called when pam_winbind is closed
via dlclose.

A symptom of this is that Apache, if set up to use its auth_pam module,
is eventually unable to authenticate new users.

The attached patch instructs gcc to treat winbind_close_sock as a
destructor.  This is the simplest fix but maybe not the best; from
looking at the docs, specifying a cleanup function to pam_set_data (and
doing something else for nss_winbind?) may be more correct.

-- System Information:
Debian Release: 5.0.4
  APT prefers stable
  APT policy: (900, 'stable'), (750, 'unstable'), (700, 'experimental')
Architecture: i386 (x86_64)

Kernel: Linux 2.6.26-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages samba depends on:
ii  adduser  3.110                           add and remove users and groups
ii  debconf  1.5.24                          Debian configuration management sy
ii  libacl1  2.2.47-2                        Access control list shared library
ii  libattr1 1:2.4.43-2                      Extended attribute shared library
ii  libc6    2.7-18lenny2                    GNU C Library: Shared libraries
ii  libcap2  2.11-2                          support for getting/setting POSIX.
ii  libcomer 1.41.3-1                        common error description library
ii  libcups2 1.3.8-1+lenny8                  Common UNIX Printing System(tm) - 
ii  libgnutl 2.4.2-6+lenny2                  the GNU TLS library - runtime libr
ii  libkrb53 1.6.dfsg.4~beta1-5lenny2        MIT Kerberos runtime libraries
ii  libldap- 2.4.11-1+lenny1                 OpenLDAP libraries
ii  libpam-m 1.0.1-5+lenny1                  Pluggable Authentication Modules f
ii  libpam-r 1.0.1-5+lenny1                  Runtime support for the PAM librar
ii  libpam0g 1.0.1-5+lenny1                  Pluggable Authentication Modules l
ii  libpopt0 1.14-4                          lib for parsing cmdline parameters
ii  libtallo 2.0.1-1~bpo50+1                 hierarchical pool based memory all
ii  libwbcli 2:3.4.7~dfsg-1~bpo50+1          Samba winbind client library
ii  lsb-base 3.2-20                          Linux Standard Base 3.2 init scrip
ii  procps   1:3.2.7-11                      /proc file system utilities
ii  samba-co 2:3.4.7~dfsg-1~bpo50+1          common files used by both the Samb
ii  update-i 4.31                            inetd configuration file updater
ii  zlib1g   1:1.2.3.3.dfsg-12               compression library - runtime

Versions of packages samba recommends:
ii  logrotate                     3.7.1-5    Log rotation utility

Versions of packages samba suggests:
ii  ctdb                    1.0.99-1~bpo50+1 clustered database to store tempor
pn  ldb-tools               <none>           (no description available)
ii  openbsd-inetd [inet-sup 0.20080125-2     The OpenBSD Internet Superserver
pn  smbldap-tools           <none>           (no description available)

-- debconf information:
  samba/run_mode: daemons
  samba/generate_smbpasswd: true
diff -r samba-3.4.7.orig/nsswitch/winbind_client.h samba-3.4.7/nsswitch/winbind_client.h
28c28
< void winbind_close_sock(void);
---
> void winbind_close_sock(void) __attribute__((destructor));

--- End Message ---
--- Begin Message ---
Source: samba
Source-Version: 2:3.5.6~dfsg-4

We believe that the bug you reported is fixed in the latest version of
samba, which is due to be installed in the Debian FTP archive:

libpam-smbpass_3.5.6~dfsg-4_i386.deb
  to main/s/samba/libpam-smbpass_3.5.6~dfsg-4_i386.deb
libsmbclient-dev_3.5.6~dfsg-4_i386.deb
  to main/s/samba/libsmbclient-dev_3.5.6~dfsg-4_i386.deb
libsmbclient_3.5.6~dfsg-4_i386.deb
  to main/s/samba/libsmbclient_3.5.6~dfsg-4_i386.deb
libwbclient0_3.5.6~dfsg-4_i386.deb
  to main/s/samba/libwbclient0_3.5.6~dfsg-4_i386.deb
samba-common-bin_3.5.6~dfsg-4_i386.deb
  to main/s/samba/samba-common-bin_3.5.6~dfsg-4_i386.deb
samba-common_3.5.6~dfsg-4_all.deb
  to main/s/samba/samba-common_3.5.6~dfsg-4_all.deb
samba-dbg_3.5.6~dfsg-4_i386.deb
  to main/s/samba/samba-dbg_3.5.6~dfsg-4_i386.deb
samba-doc-pdf_3.5.6~dfsg-4_all.deb
  to main/s/samba/samba-doc-pdf_3.5.6~dfsg-4_all.deb
samba-doc_3.5.6~dfsg-4_all.deb
  to main/s/samba/samba-doc_3.5.6~dfsg-4_all.deb
samba-tools_3.5.6~dfsg-4_i386.deb
  to main/s/samba/samba-tools_3.5.6~dfsg-4_i386.deb
samba_3.5.6~dfsg-4.debian.tar.gz
  to main/s/samba/samba_3.5.6~dfsg-4.debian.tar.gz
samba_3.5.6~dfsg-4.dsc
  to main/s/samba/samba_3.5.6~dfsg-4.dsc
samba_3.5.6~dfsg-4_i386.deb
  to main/s/samba/samba_3.5.6~dfsg-4_i386.deb
smbclient_3.5.6~dfsg-4_i386.deb
  to main/s/samba/smbclient_3.5.6~dfsg-4_i386.deb
swat_3.5.6~dfsg-4_i386.deb
  to main/s/samba/swat_3.5.6~dfsg-4_i386.deb
winbind_3.5.6~dfsg-4_i386.deb
  to main/s/samba/winbind_3.5.6~dfsg-4_i386.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Christian Perrier <[email protected]> (supplier of updated samba package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Sat, 15 Jan 2011 18:06:22 +0100
Source: samba
Binary: samba samba-common-bin samba-common samba-tools smbclient swat 
samba-doc samba-doc-pdf libpam-smbpass libsmbclient libsmbclient-dev winbind 
samba-dbg libwbclient0
Architecture: source all i386
Version: 2:3.5.6~dfsg-4
Distribution: unstable
Urgency: low
Maintainer: Debian Samba Maintainers <[email protected]>
Changed-By: Christian Perrier <[email protected]>
Description: 
 libpam-smbpass - pluggable authentication module for Samba
 libsmbclient - shared library for communication with SMB/CIFS servers
 libsmbclient-dev - development files for libsmbclient
 libwbclient0 - Samba winbind client library
 samba      - SMB/CIFS file, print, and login server for Unix
 samba-common - common files used by both the Samba server and client
 samba-common-bin - common files used by both the Samba server and client
 samba-dbg  - Samba debugging symbols
 samba-doc  - Samba documentation
 samba-doc-pdf - Samba documentation in PDF format
 samba-tools - Samba testing utilities
 smbclient  - command-line SMB/CIFS clients for Unix
 swat       - Samba Web Administration Tool
 winbind    - Samba nameservice integration server
Closes: 574468 607402
Changes: 
 samba (2:3.5.6~dfsg-4) unstable; urgency=low
 .
   * Fix pam_winbind file descriptor leak with a patch
     proposed in https://bugzilla.samba.org/show_bug.cgi?id=7265.
     Upstream claim is that #7265 is fixed in 3.5.6 but our bug submitter
     confirmed it is not while the patch applied here fixes the file
     descriptor leak.
     Closes: #574468
 .
   [ Debconf translations ]
   * Brazilian Portuguese (Adriano Rafael Gomes).  Closes: #607402
Checksums-Sha1: 
 65921ab08ac23e99dd370fd7f9879fbccbf48dc8 2925 samba_3.5.6~dfsg-4.dsc
 433a60a757531d708609b5b4ef3df92734a17088 497747 
samba_3.5.6~dfsg-4.debian.tar.gz
 8fe68afae045c63657fe9153cf51564ae9f7cb9f 386994 
samba-common_3.5.6~dfsg-4_all.deb
 1564edc22bc8e9934d7ea6ffec04f5c613b7ef60 1728490 samba-doc_3.5.6~dfsg-4_all.deb
 7eacd8bb2e3c1075fa597465b397e277e6ed1145 7107802 
samba-doc-pdf_3.5.6~dfsg-4_all.deb
 9f14feb902ccaeca769e2a4cef9c8aeeea1f2459 7633622 samba_3.5.6~dfsg-4_i386.deb
 bcfcfec54faec2f9e7e6e70e5c6968779d5062b9 5842738 
samba-common-bin_3.5.6~dfsg-4_i386.deb
 bc34f8d884e771a836e1dce3dd67446589909f8c 10598546 
samba-tools_3.5.6~dfsg-4_i386.deb
 13a7ea76eccc79de7ec1f9fece83ab4fc5e662df 13834892 
smbclient_3.5.6~dfsg-4_i386.deb
 309ae54d36b8d3a2820288fc54b25f42fd0db947 2266432 swat_3.5.6~dfsg-4_i386.deb
 e0cc4cff0b2612a7e8315d8f2fb62150456019ae 828300 
libpam-smbpass_3.5.6~dfsg-4_i386.deb
 ff604870a9a0591837bae6fc84c1eaf9612a98f7 1968162 
libsmbclient_3.5.6~dfsg-4_i386.deb
 b91abace8229bc295a6951e424971a72419aad6d 2896482 
libsmbclient-dev_3.5.6~dfsg-4_i386.deb
 2e3659b30dc8bbef03a08632a064f7603eb0e0da 5292600 winbind_3.5.6~dfsg-4_i386.deb
 010d1e3c957741f82075060f65720376b9854d73 57295478 
samba-dbg_3.5.6~dfsg-4_i386.deb
 4b755065ad7d38b288a6906d01d55f5c99d6c411 112010 
libwbclient0_3.5.6~dfsg-4_i386.deb
Checksums-Sha256: 
 e15b665b94111300f5c8ed4a15977928808eec5f8460ad6effb065ebfee3d81b 2925 
samba_3.5.6~dfsg-4.dsc
 0745d83695845c077c3dc36b852d0d6f1bc5326a349212320a1f2452f0f73c97 497747 
samba_3.5.6~dfsg-4.debian.tar.gz
 617c1e03e7707daa54abc1bb4265e948f1454063f348328c721922c15e06a39b 386994 
samba-common_3.5.6~dfsg-4_all.deb
 464444d87dcf17d3f6c188a8aeb3fed050d582f7b41f886e4772c3667511e8c0 1728490 
samba-doc_3.5.6~dfsg-4_all.deb
 d1ac5b8f9bb75c02f1c21cb9576a1230ea63ed12e0ac484856e7a32b39c1fa63 7107802 
samba-doc-pdf_3.5.6~dfsg-4_all.deb
 dbf8a4df702d8216b638d53f2995a850b37b276d2df5fe65839a5bf676a8ff48 7633622 
samba_3.5.6~dfsg-4_i386.deb
 fe5dec6f937790cd85163bf39f096634a84fa10a66cda87bd7f580604383e0fd 5842738 
samba-common-bin_3.5.6~dfsg-4_i386.deb
 07deab805ab4cc2f2697b5b72019b072f842af30b7bd74b3542e3505df9316d7 10598546 
samba-tools_3.5.6~dfsg-4_i386.deb
 73a8e6aadf28a59b21c7df07ff73b7e9b6d868ea05d9e2784d5f708e780918bd 13834892 
smbclient_3.5.6~dfsg-4_i386.deb
 564718eb81598ab8b9dd3b5580862fa4a86850b298ac957b3d46e553e556b57d 2266432 
swat_3.5.6~dfsg-4_i386.deb
 90beeb7ef9cae489d67b7638e0396c821ccebfdd6898dd45eb386b0b88bc70e3 828300 
libpam-smbpass_3.5.6~dfsg-4_i386.deb
 e45b470ad5af1a430ac4984f7c04183dd6741e55311c3dd5cdece4d1c174577e 1968162 
libsmbclient_3.5.6~dfsg-4_i386.deb
 f0c3b8dd7d7980bf6bd618c91fc2cab392005e471c1dfc334660ccb84a7191aa 2896482 
libsmbclient-dev_3.5.6~dfsg-4_i386.deb
 ca32d61c2ea97f9d53845fe339c46fac423c9018a3ccf3a1d363bb391c7340f1 5292600 
winbind_3.5.6~dfsg-4_i386.deb
 560bd0a35aa71f753d1c4e9ffddb274bb166beffbb313cc099b76bd6aa86ba16 57295478 
samba-dbg_3.5.6~dfsg-4_i386.deb
 8f329edc7cc2c5c0194f1b6ae1fb7b6c388abd728cd0df11a473e2f6f440045b 112010 
libwbclient0_3.5.6~dfsg-4_i386.deb
Files: 
 9992d8d47be6412887fb127be112f130 2925 net optional samba_3.5.6~dfsg-4.dsc
 b4ce0f6785a10862120e4c33491ec42b 497747 net optional 
samba_3.5.6~dfsg-4.debian.tar.gz
 bc90dac29a4087136285ef32a656a16b 386994 net optional 
samba-common_3.5.6~dfsg-4_all.deb
 b4932b19b6c5771e12da9fdcd8bc3c40 1728490 doc optional 
samba-doc_3.5.6~dfsg-4_all.deb
 b30ec06b4db239a7edeb814526d1624b 7107802 doc optional 
samba-doc-pdf_3.5.6~dfsg-4_all.deb
 dfe5a944e01e22857696430b7d81a4b1 7633622 net optional 
samba_3.5.6~dfsg-4_i386.deb
 fb85a3e136aa30c4c4bca88720150292 5842738 net optional 
samba-common-bin_3.5.6~dfsg-4_i386.deb
 703d13fb03b0f23ed6998c8376f15251 10598546 net optional 
samba-tools_3.5.6~dfsg-4_i386.deb
 680fd3b05d10c4e63aa77c959387e7ae 13834892 net optional 
smbclient_3.5.6~dfsg-4_i386.deb
 57424e24555b184ffeb2c9bd5ad7a33b 2266432 net optional 
swat_3.5.6~dfsg-4_i386.deb
 a27c35d91cd0d67695916b374400f1b3 828300 admin extra 
libpam-smbpass_3.5.6~dfsg-4_i386.deb
 c759bc20cc15df423846e8e668e7623e 1968162 libs optional 
libsmbclient_3.5.6~dfsg-4_i386.deb
 35d3325e7c7a0d2fbd3b64417dcd9a3c 2896482 libdevel extra 
libsmbclient-dev_3.5.6~dfsg-4_i386.deb
 2b0263df785e3e86836228d12cd165d7 5292600 net optional 
winbind_3.5.6~dfsg-4_i386.deb
 9066e4f1f0a5a22214a0978585c6618e 57295478 debug extra 
samba-dbg_3.5.6~dfsg-4_i386.deb
 d40436a5b2a97bf992348965b10bbe70 112010 libs optional 
libwbclient0_3.5.6~dfsg-4_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iQIVAwUBTTHntocvcCxNbiWoAQKG0w//Sc8YxHE4M4ZWBDTyHHR3HgbeUV0rAnyF
bQ2LjmQosqBfzTrgyQFT7Q2IIcR/bIMeYt/iX9EDpST8dUbSetA3Xe/My68MpqBJ
pvLU0djiR5c7h5i8BQM88tV3Fu2g7M5wWuH6V6odB82qiANIEGXST4607HOs9TOQ
dj8G6g5XeacqBUt79Qx1DVrlv0submI44bdFs5/802mKgflUxfyU0rOLuIg7BVSa
FHkYJ/1F8mPQSsbXYSdtNGzeq9UdQo0msf49t590zCdKluWJVI+Dl3jysqlmBgkE
70gT64AxIBu3qiNDjLDIIq+1Ymju6OkBDZ7Dm+GozNbF4zZr12zHpt6dnRwAV8NP
dW5KAtmo1sQfZA6Mh7u/YtNROBCluxS5eYBcL+6DpSImEXuYZnBMlGWqXS9mHWha
/dHtBlDqiHBtX2pvbUzsQSwHmnp0Q0Ki7bzjqFaDF7RDDHjpGhCyRvwenoTY/AWQ
+SJTO2Hwf13rAm96nhcV7CPx24l08I9cKDbCI+3gixx4qQbtS1Ri8xT/C5B9Pq6w
qAwMMZmK8OYpQ2C8/RBN1ZhZKCgriNVzwUCxZUmY04FYlmixctD04cbU5atrnhQ8
dyzSzvcvPKxYaIDSF8PQgILq1wKdRprjXRnjSgiJL3UfrmZmNGHhbeR5bDKVLRJ7
jlTnBNhOU+o=
=sPpM
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to