Gentoo Archives: gentoo-dev

From: "M. J. Everitt" <m.j.everitt@×××.org>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] gpg: signing failed: Inappropriate ioctl for device
Date: Wed, 14 Dec 2016 14:09:25
Message-Id: 6b657d8f-166d-1069-6ce5-928507016f88@iee.org
In Reply to: Re: [gentoo-dev] gpg: signing failed: Inappropriate ioctl for device by Mike Gilbert
1 On 14/12/16 13:53, Mike Gilbert wrote:
2 > On Wed, Dec 14, 2016 at 7:56 AM, Mart Raudsepp <leio@g.o> wrote:
3 >> Ühel kenal päeval, K, 14.12.2016 kell 15:35, kirjutas Andrew Savchenko:
4 >>> This is not a workaround, but officially recommended practice, from
5 >>> man gpg-agent:
6 >>>
7 >>> You should always add the following lines to your .bashrc or
8 >>> whatever initialization file is used for all shell invocations:
9 >>>
10 >>> GPG_TTY=$(tty)
11 >>> export GPG_TTY
12 >> Then the packages or eselect pinentry or whatever should be taking care
13 >> of it, not have users have to mess with .bashrc to have stuff work.
14 > This is not practical.
15 >
16 > Adding it to the global /etc/bashrc is a bad idea. It would slow down
17 > every shell startup (fork/exec), even for users who do not actively
18 > use gpg (like root).
19 >
20 > Also, there is no way to know what shell each gpg user will be using.
21 >
22 Sounds to me like a perfect candidate for an elog/einfo, no??

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies