Bug 5360 - Xfce4 - gpg-agent does not work properly
Summary: Xfce4 - gpg-agent does not work properly
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 2
Hardware: All Linux
Priority: Low normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: MGA2-32-OK MGA2-64-OK
Keywords: PATCH, validated_update
: 6098 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-04-11 21:49 CEST by mnaud mnaud
Modified: 2014-05-08 18:06 CEST (History)
5 users (show)

See Also:
Source RPM: gnupg2
CVE:
Status comment:


Attachments
gpg-agent trouble under Xfce with kmymoney (13.80 KB, image/jpeg)
2012-04-11 21:53 CEST, mnaud mnaud
Details
Patch to remove failing check for non-empty /etc/mtab (1.06 KB, patch)
2012-06-15 02:28 CEST, Dave Hodgins
Details | Diff
Patch to correct gpg-agent.sh (440 bytes, patch)
2012-06-15 09:03 CEST, Dave Hodgins
Details | Diff

Description mnaud mnaud 2012-04-11 21:49:38 CEST
Description of problem:
under Xcfe4 applications can't connect to gpg-agent.
process is running and GPG_AGENT_INFO is set nevertheless application does not seem to communicate with gpg-agent

Version-Release number of selected component (if applicable):
- mageia 2b_2
- gnupg2-2.0.18-1.mga2
- gnupg-1.4.12-1.mga2
- task-xfce-plugins-2-5.mga2
- task-xfce-minimal-2-5.mga2
- mageia-xfce-config-common-1-9.mga1
- xfce-utils-4.8.3-4.mga2
- xfce4-taskmanager-1.0.0-4.mga1
- task-xfce-2-5.mga2


How reproducible:


Steps to Reproduce:
1.install task-xfce
2.install gnupg2
3.open a session under XCFE
4.configure GPG to run at startup (mageia/parameters/startup session)
5.logout Xfce 
6.login Xfce
7.open terminal
8.echo $GPG_AGENT_INFO (variable is set)
9.try to use gpg-agent :


[user@localhost ~]$ echo $GPG_AGENT_INFO
/run/user/user/keyring-RgG6fJ/gpg:0:1
[user@localhost ~]$ export GPG_AGENT_INFO
[user@localhost ~]$ gpg --decrypt toto.txt.clear.gpg

Vous avez besoin d'une phrase de passe pour déverrouiller la
clé secrète pour l'utilisateur: « XXXX <XXXX@YYY.com> »
clé de 2048 bits RSA, ID 12345678XX, créée le 2011-08-26 (ID clé principale XXXYYYZZZ)

gpg: problème avec l'agent - arrêt d'utilisation de l'agent
Entrez la phrase de passe: 
^C
gpg: Interrupt caught ... exiting

10. you can also try to use kmymoney with an encrypt file you will have same behaviour (screenshot in attachment).
Comment 1 mnaud mnaud 2012-04-11 21:53:58 CEST
Created attachment 1971 [details]
gpg-agent trouble under Xfce with kmymoney
Comment 2 mnaud mnaud 2012-04-11 21:55:46 CEST
Comment on attachment 1971 [details]
gpg-agent trouble under Xfce with kmymoney

there is no popup to enter password, only this error message.
Comment 3 Jani Välimaa 2012-04-13 15:55:06 CEST
Can't reproduce this.

CC: (none) => jani.valimaa

Comment 4 mnaud mnaud 2012-04-16 22:47:21 CEST
umh ... strange
i don't have any specific configuration apart using personal keys.

am waiting for 2b_3 and i will try again.
i will give you back my experience.
Comment 5 mnaud mnaud 2012-04-20 18:43:06 CEST
i have done a new test on fresh system installed with 2_b3 and all seem to work properly.
i suppose i have done too many test on my previous installation.

maybe we can wait for RC release to validate this behaviour is only a wrong report before closing this bug report ?
Comment 6 mnaud mnaud 2012-04-20 18:44:39 CEST
set priority to low and status to unconfirmed

Priority: Normal => Low
Status: NEW => UNCONFIRMED
Ever confirmed: 1 => 0

Comment 7 Marja Van Waes 2012-05-26 13:08:38 CEST
Hi,

This bug was filed against cauldron, but we do not have cauldron at the moment.

Please report whether this bug is still valid for Mageia 2.

Thanks :)

Cheers,
marja

Keywords: (none) => NEEDINFO

Comment 8 Dave Hodgins 2012-06-15 02:26:30 CEST
Bug confirmed on current Mageia 2 system.  The problem is the startup script
checking that /etc/mtab is not empty. Since it's now a symlink, the test
is failing.

Status: UNCONFIRMED => NEW
CC: (none) => davidwhodgins
Ever confirmed: 0 => 1

Comment 9 Dave Hodgins 2012-06-15 02:28:24 CEST
Created attachment 2460 [details]
Patch to remove failing check for non-empty /etc/mtab

I have no idea why the check is there.  Removing it fixes the
problem.
Comment 10 Dave Hodgins 2012-06-15 02:30:13 CEST
*** Bug 6098 has been marked as a duplicate of this bug. ***

CC: (none) => jeffrobinsSAE

Dave Hodgins 2012-06-15 02:31:38 CEST

Keywords: NEEDINFO => (none)
Whiteboard: (none) => MGA2TOO

Comment 11 Dave Hodgins 2012-06-15 09:03:13 CEST
Created attachment 2463 [details]
Patch to correct gpg-agent.sh

Sorry, attached the wrong file.

Attachment 2460 is obsolete: 0 => 1

Comment 12 Jeff Robins 2012-06-22 08:19:35 CEST
Fixes my problem in KDE as well.
Manuel Hiebel 2012-06-22 13:31:58 CEST

Keywords: (none) => PATCH
Assignee: bugsquad => boklm
Source RPM: (none) => gnupg2

Comment 13 Nicolas Vigier 2012-06-22 16:00:58 CEST
Thanks for the fix. Updated packages have been submitted to Cauldron, and to Mageia 2 updates_testing.

CC: (none) => boklm
Assignee: boklm => qa-bugs

Comment 14 claire robinson 2012-06-30 14:19:53 CEST
Jeff were you testing using x86_64 or i586 please?

mnaud mnaud can you confirm this fixes the problem for you please and say whether you use x86_64 or i586.

Thanks.

Hardware: i586 => All
Version: Cauldron => 2
Whiteboard: MGA2TOO => (none)

Comment 15 Dave Hodgins 2012-07-01 22:02:04 CEST
Testing complete on Mageia 2 i586 for the srpm
gnupg2-2.0.18-1.1.mga2.src.rpm

Testing using thunderbird-enigmail to view an encrypted message.
Dave Hodgins 2012-07-26 05:33:28 CEST

Whiteboard: (none) => MGA2-32-OK

Comment 16 Dave Hodgins 2012-07-31 00:14:11 CEST
Testing complete on Mageia 2 x86-64.

Could someone from the sysadmin team push the srpm
gnupg2-2.0.18-1.1.mga2.src.rpm
from Mageia 2 Core Updates Testing to Core Updates.

Advisory:  This bugfix for gnupg2 removes the check in
/etc/profile.d/gpg-agent.sh for a non-empty /etc/mtab,
which was failing due to the change of /etc/mtab to
being a symlink to /proc/mounts.

After installing the update, users should logout/in to
start the gpg-agent for the session.  Then applications
such as thunderbird-enigmail will be able to use gpg-agent
to prompt for the encryption pass-phrase.

https://bugs.mageia.org/show_bug.cgi?id=5360

Keywords: (none) => validated_update
CC: (none) => sysadmin-bugs
Whiteboard: MGA2-32-OK => MGA2-32-OK MGA2-64-OK

Comment 17 Thomas Backlund 2012-08-02 22:51:56 CEST
Update pushed:
https://wiki.mageia.org/en/Support/Advisories/MGAA-2012-0145

Status: NEW => RESOLVED
CC: (none) => tmb
Resolution: (none) => FIXED

Nicolas Vigier 2014-05-08 18:06:01 CEST

CC: boklm => (none)


Note You need to log in before you can comment on or make changes to this bug.