aboutsummaryrefslogtreecommitdiffstats
path: root/scd/app-openpgp.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2020-02-25 11:11:57 +0000
committerWerner Koch <[email protected]>2020-02-25 13:09:46 +0000
commit7e8f28653c1b4305758a61c064d793e32ba633d5 (patch)
tree63f0d91741dbcc97cec7c0605f8b28fcf8558525 /scd/app-openpgp.c
parentUse gpgrt's new option parser for the new keyboxd. (diff)
downloadgnupg-7e8f28653c1b4305758a61c064d793e32ba633d5.tar.gz
gnupg-7e8f28653c1b4305758a61c064d793e32ba633d5.zip
gpg: Re-add checking of config file permissions.
* g10/gpg.c (main): Re-add permission checking of the user config file. Re-add code to check against the SE-Linux secured file list. (get_default_configname): Remove unused func. * configure.ac (SAFE_VERSION, SAFE_VERSION_DOT) (SAFE_VERSION_DASH): Remove. -- Die to the switch to the new option parser, the permissions were not anymore checked. This patch fixes this. Note that there there is no checking for the global config file because that file is not expected to be user modifiable. This patch also adds checking against the list of SE-linux secured files. However, like in the old code the checking does not work in practise because the to be checked files are added to the the list only after option parsing. Tested using temporary debug code. The SAFE_VERSION macros were used for RISC OS, which is not anymore supported, and only in the now removed get_default_configname. There purpose was that a RISC OS could use a modified config.h here. Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'scd/app-openpgp.c')
0 files changed, 0 insertions, 0 deletions