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

Bug#149234: marked as done (ssh: scp linked with redundant shared libs)



Your message dated Tue, 7 May 2013 11:43:01 +0100
with message-id <20130507104301.GA13349@riva.ucam.org>
and subject line Re: Bug#149234: ssh: scp linked with redundant shared libs
has caused the Debian Bug report #149234,
regarding ssh: scp linked with redundant shared libs
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 owner@bugs.debian.org
immediately.)


-- 
149234: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=149234
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: ssh
Version: 1:3.0.2p1-9
Severity: wishlist

It suffices to to link scp with

$ gcc -o scp scp.o -L. -Lopenbsd-compat/  -lssh -lopenbsd-compat

as opposed to including all of the following:

$ ldd /usr/bin/scp
	libpam.so.0 => /lib/libpam.so.0 (0x40019000)
	libdl.so.2 => /lib/libdl.so.2 (0x40021000)
	libwrap.so.0 => /lib/libwrap.so.0 (0x40025000)
	libutil.so.1 => /lib/libutil.so.1 (0x4002d000)
	libz.so.1 => /usr/lib/libz.so.1 (0x40030000)
	libnsl.so.1 => /lib/libnsl.so.1 (0x4003f000)
	libcrypto.so.0.9.6 => /usr/lib/libcrypto.so.0.9.6 (0x40053000)
	libc.so.6 => /lib/libc.so.6 (0x40114000)
	libcrypt.so.1 => /lib/libcrypt.so.1 (0x40231000)
	/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

This is important when including scp in chrooted environment.

Thanks,
Hein

-- System Information
Debian Release: 3.0
Kernel Version: Linux ins-mail 2.4.18-686 #1 Sun Apr 14 11:32:47 EST 2002 i686 unknown

Versions of the packages ssh depends on:
ii  debconf        1.1.7          Debian configuration management system
ii  libc6          2.2.5-6        GNU C Library: Shared libraries and Timezone
ii  libpam0g       0.72-35        Pluggable Authentication Modules library
ii  libpam-modules 0.72-35        Pluggable Authentication Modules for PAM
ii  libssl0.9.6    0.9.6c-2       SSL shared libraries
ii  libwrap0       7.6-9          Wietse Venema's TCP wrappers library
ii  zlib1g         1.1.4-1        compression library - runtime

--- Begin /etc/pam.d/ssh (modified conffile)
auth       required     pam_nologin.so
auth       required     pam_unix.so
auth       required     pam_env.so # [1]
account    required     pam_unix.so
session    required     pam_unix.so
session    optional     pam_lastlog.so # [1]
session    optional     pam_motd.so # [1]
session    optional     pam_mail.so standard noenv # [1]
session    required     pam_limits.so
session    required   pam_chroot.so debug
password   required     pam_unix.so

--- End /etc/pam.d/ssh


--- End Message ---
--- Begin Message ---
Source: openssh
Source-Version: 1:5.3p1-2

On Thu, Jun 06, 2002 at 06:52:47PM +0200, hein@acm.org wrote:
> It suffices to to link scp with
> 
> $ gcc -o scp scp.o -L. -Lopenbsd-compat/  -lssh -lopenbsd-compat
> 
> as opposed to including all of the following:
> 
> $ ldd /usr/bin/scp
> 	libpam.so.0 => /lib/libpam.so.0 (0x40019000)
> 	libdl.so.2 => /lib/libdl.so.2 (0x40021000)
> 	libwrap.so.0 => /lib/libwrap.so.0 (0x40025000)
> 	libutil.so.1 => /lib/libutil.so.1 (0x4002d000)
> 	libz.so.1 => /usr/lib/libz.so.1 (0x40030000)
> 	libnsl.so.1 => /lib/libnsl.so.1 (0x4003f000)
> 	libcrypto.so.0.9.6 => /usr/lib/libcrypto.so.0.9.6 (0x40053000)
> 	libc.so.6 => /lib/libc.so.6 (0x40114000)
> 	libcrypt.so.1 => /lib/libcrypt.so.1 (0x40231000)
> 	/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
> 
> This is important when including scp in chrooted environment.

I fixed this in 1:5.3p1-2 in response to http://bugs.debian.org/560155,
but didn't notice at the time that it also dealt with this bug.

openssh (1:5.3p1-2) unstable; urgency=low

  * Link with -Wl,--as-needed (closes: #560155).
  * Install upstream sshd_config as an example (closes: #415008).
  * Use dh_lintian.
  * Honour DEB_BUILD_OPTIONS=nocheck.

 -- Colin Watson <cjwatson@debian.org>  Mon, 22 Feb 2010 12:43:24 +0000

Thanks,

-- 
Colin Watson                                       [cjwatson@debian.org]

--- End Message ---

Reply to: