Home GnuPG
Diffusion GnuPG f8adf1a32346

agent: Sanitize permissions of the private key directory.
f8adf1a32346Unpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

agent: Sanitize permissions of the private key directory.

* agent/gpg-agent.c (create_private_keys_directory): Set permissions.
* common/sysutils.c (modestr_to_mode): New function.
(gnupg_mkdir): Use new function.
(gnupg_chmod): New function.
* common/sysutils.h (gnupg_chmod): New prototype.
* tests/migrations/from-classic.test: Test migration with existing
directory.
  • GnuPG-bug-id: T2312
  • Signed-off-by: Justus Winter <justus@g10code.com>

Details

Provenance
justusAuthored on Apr 20 2016, 2:55 PM
Parents
rGdefbc70b4a16: tests: Test the migration from a classic GnuPG home directory.
Branches
Unknown
Tags
Unknown