gpgme after setuid

Marcus Brinkmann marcus.brinkmann at ruhr-uni-bochum.de
Thu Aug 3 22:05:09 CEST 2006


At Thu, 3 Aug 2006 16:03:51 +0200,
Stephan Menzel <smenzel at gmx-gmbh.de> wrote:
> 
> [1  <multipart/signed (7bit)>]
> [1.1  <text/plain; iso-8859-1 (7bit)>]
> Am Donnerstag, 3. August 2006 15:39 schrieb Werner Koch:
> > > And gpgme used to work in the daemon too but not anymore. I don't know
> > > what happend but strace shows me gpgme is looking for gpgsm's config
> > > files etc in the homedir of the user who actually started the daemon.
> >
> > That is right.  The home directory is determined by the HOME
> > environment variable.  sudo for example does not change HOME.
> 
> That's it!
> Thank's a lot, you made my day happy despite the rain.

Note that you can also set the home directory to be used explicitely
with gpgme_ctx_set_engine_info.

Marcus





More information about the Gnupg-devel mailing list