Your message dated Sat, 28 May 2022 20:43:52 +0000
with message-id <[email protected]>
and subject line Bug#1010922: fixed in samba 2:4.16.1+dfsg-5
has caused the Debian Bug report #1010922,
regarding samba-libs: linking against libraries in private dirs without RUNPATH
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.)


-- 
1010922: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1010922
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: samba-libs
Version: 2:4.16.1+dfsg-4
Severity: important
File: /usr/lib/x86_64-linux-gnu/libsmbldap.so.2.1.0
File: /usr/lib/x86_64-linux-gnu/samba/libads-samba4.so.0
File: /usr/lib/x86_64-linux-gnu/samba/libnet-keytab-samba4.so.0
File: /usr/lib/x86_64-linux-gnu/samba/libsamba-modules-samba4.so.0
File: /usr/lib/x86_64-linux-gnu/samba/libsmbldaphelper-samba4.so.0

The recent upgrade of samba in Debian testing made libsmbldap link
against libraries that are only in private dirs, without using a custom
library path. This means that every program that uses libsmbldap will
fail to start. It looks like not just libsmbldap has this problem
though, several of the private libraries (libsamba-modules-samba4
libsmbldaphelper-samba4 libads-samba4 libnet-keytab-samba4) also have
this issue too. It appears that other libraries in samba-libs have used
the RUNPATH option to allow finding the private samba libraries.
The commands below are how I discovered and debugged this issue.
I filed this at important, not sure what uses those libraries.

$ adequate samba-libs
samba-libs:amd64: library-not-found 
/usr/lib/x86_64-linux-gnu/libsmbldap.so.2.1.0 => libsamba-debug-samba4.so.0
samba-libs:amd64: library-not-found 
/usr/lib/x86_64-linux-gnu/libsmbldap.so.2.1.0 => libreplace-samba4.so.0
samba-libs:amd64: library-not-found 
/usr/lib/x86_64-linux-gnu/libsmbldap.so.2.1.0 => libsamba-security-samba4.so.0
samba-libs:amd64: library-not-found 
/usr/lib/x86_64-linux-gnu/libsmbldap.so.2.1.0 => libsmbd-shim-samba4.so.0

$ ldd /usr/lib/x86_64-linux-gnu/libsmbldap.so.2.1.0
...
        libsamba-debug-samba4.so.0 => not found
        libreplace-samba4.so.0 => not found
        libsamba-security-samba4.so.0 => not found
        libsmbd-shim-samba4.so.0 => not found

$ lddtree /usr/lib/x86_64-linux-gnu/libsmbldap.so.2.1.0
libsmbldap.so.2.1.0 => /usr/lib/x86_64-linux-gnu/libsmbldap.so.2.1.0 
(interpreter => none)
...
    libsamba-debug-samba4.so.0 => not found
    libreplace-samba4.so.0 => not found
    libsamba-security-samba4.so.0 => not found
    libsmbd-shim-samba4.so.0 => not found

$ libtree /usr/lib/x86_64-linux-gnu/libsmbldap.so.2.1.0  
libsmbldap.so.2 
...
├── libsmbd-shim-samba4.so.0 not found
├── libsamba-security-samba4.so.0 not found
├── libsamba-debug-samba4.so.0 not found
└── libreplace-samba4.so.0 not found
    ┊ Paths considered in this order:
    ┊ 1. rpath:
    ┊ 2. LD_LIBRARY_PATH was not set
    ┊ 3. runpath was not set
    ┊ 4. ld config files:
    ┊    /usr/lib/atlas
    ┊    /usr/lib/x86_64-linux-gnu/fakechroot
    ┊    /usr/lib/x86_64-linux-gnu/libfakeroot
    ┊    /usr/local/lib
    ┊    /usr/local/lib/x86_64-linux-gnu
    ┊    /lib/x86_64-linux-gnu
    ┊    /usr/lib/x86_64-linux-gnu
    ┊    /lib32
    ┊    /usr/lib32
    ┊    /libx32
    ┊    /usr/libx32
    ┊ 5. Standard paths:
    ┊    /lib
    ┊    /lib64
    ┊    /usr/lib
    ┊    /usr/lib64
Error [/usr/lib/x86_64-linux-gnu/libsmbldap.so.2.1.0]: Not all dependencies 
were found
$ echo $?
28

$ objdump -x /usr/lib/x86_64-linux-gnu/libsmbldap.so.2.1.0 | grep -E 
'NEEDED|PATH'
  NEEDED               libsamba-util.so.0
  NEEDED               libsmbconf.so.0
  NEEDED               libsamba-debug-samba4.so.0
  NEEDED               libreplace-samba4.so.0
  NEEDED               libsamba-security-samba4.so.0
  NEEDED               libsmbd-shim-samba4.so.0
  NEEDED               libldap-2.5.so.0
  NEEDED               liblber-2.5.so.0
  NEEDED               libtalloc.so.2
  NEEDED               libtevent.so.0
  NEEDED               libc.so.6

$ dpkg -L samba-libs | grep /usr/lib | xargs -d '\n' ldd 2> /dev/null | grep -E 
'not found|^/' | grep -B1 'not found'
/usr/lib/x86_64-linux-gnu/libsmbldap.so.2.1.0:
        libsamba-debug-samba4.so.0 => not found
        libreplace-samba4.so.0 => not found
        libsamba-security-samba4.so.0 => not found
        libsmbd-shim-samba4.so.0 => not found
--
/usr/lib/x86_64-linux-gnu/samba/libads-samba4.so.0:
        libsmbd-shim-samba4.so.0 => not found
--
/usr/lib/x86_64-linux-gnu/samba/libnet-keytab-samba4.so.0:
        libsmbd-shim-samba4.so.0 => not found
--
/usr/lib/x86_64-linux-gnu/samba/libsamba-modules-samba4.so.0:
        libsamba-debug-samba4.so.0 => not found
--
/usr/lib/x86_64-linux-gnu/samba/libsmbldaphelper-samba4.so.0:
        libreplace-samba4.so.0 => not found
        libsmbd-shim-samba4.so.0 => not found

$ objdump -x /usr/lib/x86_64-linux-gnu/libnetapi.so.1.0.0 | grep -iE 
'NEEDED.*samba-security|PATH'
  NEEDED               libsamba-security-samba4.so.0
  RUNPATH              /usr/lib/x86_64-linux-gnu/samba

$ objdump -x /usr/lib/x86_64-linux-gnu/samba/auth/samba4.so | grep -iE 
'NEEDED.*samba-debug-samba4|PATH'
  NEEDED               libsamba-debug-samba4.so.0
  RUNPATH              /usr/lib/x86_64-linux-gnu/samba

$ apt-file search smbd-shim-samba
samba-libs: /usr/lib/x86_64-linux-gnu/samba/libsmbd-shim-samba4.so.0

$ apt-file search samba-security
samba-libs: /usr/lib/x86_64-linux-gnu/samba/libsamba-security-samba4.so.0

$ apt-file search samba-debug
libwbclient0: /usr/lib/x86_64-linux-gnu/samba/libsamba-debug-samba4.so.0

$ apt-file search replace-samba
libwbclient0: /usr/lib/x86_64-linux-gnu/samba/libreplace-samba4.so.0

-- System Information:
Debian Release: bookworm/sid
  APT prefers testing-debug
  APT policy: (900, 'testing-debug'), (900, 'testing'), (800, 
'unstable-debug'), (800, 'unstable'), (790, 'buildd-unstable'), (700, 
'experimental-debug'), (700, 'experimental'), (690, 'buildd-experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.17.0-2-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_AU.utf8, LC_CTYPE=en_AU.utf8 (charmap=UTF-8), LANGUAGE=en_AU:en
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages samba-libs:amd64 depends on:
ii  libacl1           2.3.1-1
ii  libavahi-client3  0.8-5
ii  libavahi-common3  0.8-5
ii  libbsd0           0.11.6-1
ii  libc6             2.33-7
ii  libcap2           1:2.44-1
ii  libgnutls30       3.7.4-2
ii  libjansson4       2.14-2
ii  libldap-2.5-0     2.5.12+dfsg-1
ii  libldb2           2:2.5.0+smb4.16.1-4
ii  libpam0g          1.4.0-13
ii  libpopt0          1.18-3
ii  libtalloc2        2.3.3-4
ii  libtdb1           1.4.6-3
ii  libtevent0        0.12.0-1
ii  libtirpc3         1.3.2-2
ii  libwbclient0      2:4.16.1+dfsg-4
ii  zlib1g            1:1.2.11.dfsg-4

samba-libs:amd64 recommends no packages.

samba-libs:amd64 suggests no packages.

-- no debconf information

-- 
bye,
pabs

https://wiki.debian.org/PaulWise

Attachment: signature.asc
Description: This is a digitally signed message part


--- End Message ---
--- Begin Message ---
Source: samba
Source-Version: 2:4.16.1+dfsg-5
Done: Michael Tokarev <[email protected]>

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.

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.
Michael Tokarev <[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: SHA256

Format: 1.8
Date: Sat, 28 May 2022 22:50:43 +0300
Source: samba
Architecture: source
Version: 2:4.16.1+dfsg-5
Distribution: unstable
Urgency: medium
Maintainer: Debian Samba Maintainers <[email protected]>
Changed-By: Michael Tokarev <[email protected]>
Closes: 1010922
Changes:
 samba (2:4.16.1+dfsg-5) unstable; urgency=medium
 .
   * add-missing-libs-deps.diff: add missing dependencies for a few samba
     libraries. Closes: #1010922
   * point [printers] to /var/tmp/, stop shipping /var/spool/samba/.
     For a long time, we shipped an alternative /var/tmp/ directory with mode
     01777 (so that anyone can use it to store files) but without the same setup
     as for regular /var/tmp/ (in particular, without removing old files and
     since it is not a usual place to store temp files, no one actually looked
     at it the same way someone would take care of /var/tmp/.  Change smb.conf
     to use /var/tmp/ instead of /var/spool/samba/. In the postinst script,
     remove /var/spool/samba/, check if it is still used in smb.conf,
     and create a compatibility symlink pointing to tmp/, suggesting changing
     smb.conf.  And remove this compat symlink in postrm.
     This probably can be accomplished by a debconf question, but the
     thing is complicated by the fact that smb.conf might be upgrading
     too at the same time.
   * debian/patches/weak-crypto-allowed-clarify.diff: update
   * testparm-do-not-fail-if-pid-dir-does-not-exist.patch: also cover samba-tool
     testparm too, not only regular stand-alone testparm.
   * fix-samba-tool-domain-join-segfault.patch: fix segfault when joining an
     AD-DC domain using samba-tool join.
   * d/rules: enable --with-profilig-data to build samba with profiling
     collection (if set in smb.conf)
   * d/control: add libunwind-dev to build-deps, to compile in stack backtrace
     logging in case of crash
   * d/control: stop build-conflicting with now-unused libtracker-miner-2.0-dev
   * d/control: stop build-conflicting with libtracker-sparql-2.0-dev: there's
     no point in explicitly disabling libtracker-sparql support (bullseye-only
     for now anyway)
Checksums-Sha1:
 c1af1b242ed555df6c38ed966e50e4a20d1aa781 4240 samba_4.16.1+dfsg-5.dsc
 0dcabdaa28e3a63c1115dbd903cf94867c2adfe9 266408 
samba_4.16.1+dfsg-5.debian.tar.xz
 84b402195a40a2d112195dae8f368ed2c1e8a756 6043 
samba_4.16.1+dfsg-5_source.buildinfo
Checksums-Sha256:
 ef68ab796bdc2b3282b2107397e06f53b7696a6e4f3eee9d0ddfca196414d79d 4240 
samba_4.16.1+dfsg-5.dsc
 838a67d8a71e44249fa9bb8a78bcdb6e2e44e9ec1e62f066815fc5357b49c4d6 266408 
samba_4.16.1+dfsg-5.debian.tar.xz
 5ced3dd9ff4c9bf7a71b8b542ada0f7d4f1fe2a64f0d6ff28d6e40f4932ff62c 6043 
samba_4.16.1+dfsg-5_source.buildinfo
Files:
 dc5f77e31547a38fad38fdd2187d6f95 4240 net optional samba_4.16.1+dfsg-5.dsc
 29eb0d36e6d0242a8002b8996b88368b 266408 net optional 
samba_4.16.1+dfsg-5.debian.tar.xz
 b72217ec95e7c15d1ebf2471fbae82e9 6043 net optional 
samba_4.16.1+dfsg-5_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQFDBAEBCAAtFiEEe3O61ovnosKJMUsicBtPaxppPlkFAmKSfUMPHG1qdEB0bHMu
bXNrLnJ1AAoJEHAbT2saaT5Z2cgIAJELjnIsYK5rY3YRIT28nWZRCdPlQ9ap3vWR
44w3Ji7ww2U4OO3FXa9ZefjnqILbZUSuA7egJ1SCly3hnnS+iknSVctqtlXOvqee
IH/wCl81d/34ptzKzLfvEg/5QFK02lTH6h9A4MhDyUh/ou98hqyHr1yvh+o0FIau
661+Em4HIckiDgeakSOEEq+8nVr566CWaSy6Jnqi6Pw1aMyah488vfUeiOHYc8ZX
tEIqjnaenyoN+ZEhHMZhXFqZKEhVBQ713P6U4y7DSjOYhi5sByNfL5CWE6giwLOg
4VoUITg3ifg00c0JKHe2z9yodULEbgtORKPhp4EOkCWVOrZV3To=
=O0F4
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to