gpgme does not find key for user after setuid()

kaustubh.gadkari at gmail.com kaustubh.gadkari at gmail.com
Wed May 20 17:13:50 CEST 2009


Hi,

I have a signer, that I run as root, but which drops privileges to a user 'A', using setuid(). I run the signer with the command below:
./simple-signer 'name of key' 'data to sign' A

When run like this, the signer does not find the key for user A. 

If I run the signer as user A:
./simple-signer 'name of key' 'data to sign'
gpgme finds the key.

Any pointers as to why this happens would be appreciated.

Thanks,
Kaustubh
-- 
Kaustubh Gadkari
kaustubh [dot] gadkari [at] gmail [dot] com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 270 bytes
Desc: OpenPGP digital signature
URL: </pipermail/attachments/20090520/2c493758/attachment.pgp>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: simple-signer.cc
Type: text/x-c++src
Size: 5419 bytes
Desc: not available
URL: </pipermail/attachments/20090520/2c493758/attachment.cc>


More information about the Gnupg-users mailing list