Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 561302 - net-misc/keychain-2.8.1 doesn't follow symlinks for private keys
Summary: net-misc/keychain-2.8.1 doesn't follow symlinks for private keys
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-23 20:43 UTC by Michael Hill
Modified: 2021-06-12 02:41 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Hill 2015-09-23 20:43:41 UTC
$ emerge --info
Portage 2.2.21 (python 3.3.5-final-0, default/linux/amd64/13.0, gcc-4.8.3, glibc-2.17, 3.14.27-gentoo x86_64)
=================================================================
System uname: Linux-3.14.27-gentoo-x86_64-Intel-R-_Core-TM-_i7-3930K_CPU_@_3.20GHz-with-gentoo-2.2
KiB Mem:    16362760 total,   5446968 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Wed, 23 Sep 2015 12:00:01 +0000
sh bash 4.2_p52
ld GNU ld (GNU Binutils) 2.23.1
ccache version 3.1.9 [enabled]
app-shells/bash:          4.2_p52::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.20.2-r1::gentoo
dev-lang/python:          2.7.8::gentoo, 3.2.5-r3::gentoo, 3.3.5-r1::gentoo
dev-util/ccache:          3.1.9-r3::gentoo
dev-util/cmake:           2.8.12.2-r1::gentoo
dev-util/pkgconfig:       0.28-r3::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.17::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.12.6::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.23.1::gentoo
sys-devel/gcc:            4.5.4::gentoo, 4.8.3::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.9::gentoo (virtual/os-headers)
sys-libs/glibc:           2.17::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

steam-overlay
    location: /var/lib/layman/steam
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CC="gcc"
CFLAGS="-O2 -march=core2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/spool/munin-async/.ssh"
CONFIG_PROTECT_MASK="${EPREFIX}/etc/gconf /etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=core2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg candy ccache collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.usu.edu/mirrors/gentoo/ http://distfiles.gentoo.org/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j12"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl additions aiglx alsa amd64 ao apache2 audacious audiofile bash-completion bcmath berkdb branding bzip2 bzlib calendar caps cdinstall cdr cli cracklib crypt curl cxx dbase dbx dedicated device-mapper dga divx doc dot dovecot-sasl dri dv efiemu expat faac fame fbcon ffmpeg fftw flac flatfile fluidsynth font-server fontconfig fontforge gd gecko-sdk geoip gflags gif gimpprint ginac glitz glut gnuplot gnutls gpgme graph gs gstreamer gtk guidexml hardenedphp hddtemp highlight hou iconv id3tag imagemagick imlib inifile inotify jack jpeg jpeg2k keyscrub lame lastfmradio latin1 lcms libmms libsamplerate lm_sensors logrotate logwatch lzma mbox memlimit mikmod mime mmap mmx mmxext modplug modules mount mp3 mp4 mpm-prefork multilib mysql mysqli ncurses no-suexec nocardbus nocd nodrm nomotif nowin nptl nsplugin ofx ogg openal opengl openssl pam pcntl pcre pda pdo php pie plotutils png posix ppds python qt3support quotes readline realmedia rtsp s3 sasl seccomp server session shared sharedmem simplexml skins smp smpeg smtp sndfile sockets sou sse sse2 ssl ssse3 startup-notification static steamruntime subtitles system-sqlite sysvipc tagwriting tcl tcpd theora threads tidy tiff timidity tk truetype ups usb usbhost userlocales vaapi vhosts videos vim-syntax vorbis wma wmp wv wxgtk1 wxwidgets wxwindows x264 xattr xcb xine xml xpm xprint xscreensaver xvid zlib" ABI_X86="64" ALSA_CARDS="ice1712" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_core authn_dbd authn_dbm authn_default authn_file authz_core authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif slotmem_shm so socache_shmcb speling status unique_id unixd userdir usertrack vhost_alias" APACHE2_MPMS="worker" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64 pc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python3_3" PYTHON_TARGETS="python2_7 python3_3" QEMU_SOFTMMU_TARGETS="i386" QEMU_USER_TARGETS="i386" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="vga nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
USE_PYTHON="2.7 3.3"
Unset:  CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


I have my main SSH private key (~/.ssh/id_foo) as a symlink.  I upgraded to net-misc/openssh-7.1_p1-r1 yesterday, and have been fixing related issues since (mainly due to deprecated DSA keys).  My previous keychain version was 2.7.1; I updated to 2.8.1 today to fix another problem I encountered.  Well, 2.7.1 and all previous versions haven't cared that the path to my key is a symlink, but 2.8.1 gives the following error:

 * keychain 2.8.1 ~ http://www.funtoo.org
 * Found existing ssh-agent: 31399
 * Warning: Cannot find public key for id_ed25519.

If I run "ssh-add id_ed25519" directly, it has no problem adding the key, so it seems to be a hangup in keychain (perhaps "if [ -f ..." instead of "if [ -e ...").

Expected behavior:  keychain should call ssh-add with symlinks as well as regular files.
Comment 1 SpanKY gentoo-dev 2015-09-28 04:51:10 UTC
both -e and -f dereference symlinks, so i doubt that's an issue

the keychain guys really want bugs report in the funtoo tracker though
Comment 2 Michael Hill 2015-09-28 06:09:10 UTC
I took a quick look at www.funtoo.org/Keychain for a bug tracker, but didn't see anything other than mention of a mailing list or IRC for reporting bugs.  Do you have a link where I can report it directly?  Thanks.
Comment 3 SpanKY gentoo-dev 2015-09-28 15:06:58 UTC
https://bugs.funtoo.org/
Comment 4 Michael Hill 2015-09-28 17:15:02 UTC
Thank you.  I see now that their homepage mentions the bug tracker.  I will see about getting a login and reporting a JIRA there as well.
Comment 5 Marco Scardovi (scardracs) 2021-06-11 08:41:42 UTC
Ping: is this bug still present?
Comment 6 Michael Hill 2021-06-12 02:41:00 UTC
It doesn't appear to be.  I just ran "keychain id_rsa" in my .bash_profile (where .ssh/id_rsa is a symlink), and it worked as expected.  Thanks.