Explicitly restrict socket permissions.
authorWerner Koch <wk@gnupg.org>
Wed, 8 Jun 2016 14:18:02 +0000 (16:18 +0200)
committerWerner Koch <wk@gnupg.org>
Wed, 8 Jun 2016 14:18:02 +0000 (16:18 +0200)
commit8127043d549a5843ea1ba2dc6da4906fc2258d53
treec6b126885f2d3b1ee15b9e53009ec75f5cf86cf8
parent6790115fd9059e066b4e6feb6b1e3876a1c1d522
Explicitly restrict socket permissions.

* agent/gpg-agent.c (create_server_socket): Call chmod before listen.
* scd/scdaemon.c (create_server_socket): Ditto.
* dirmngr/dirmngr.c (main): Ditto.
--

This is just in case of a improperly set umask.  Note that a connect
requires a write permissions.
agent/gpg-agent.c
common/sysutils.c
dirmngr/dirmngr.c
scd/scdaemon.c