mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
Added SELInux hacks and did some cleanups.
This commit is contained in:
parent
d44906ad4d
commit
151ca81f1a
22 changed files with 396 additions and 62 deletions
|
@ -83,9 +83,15 @@ PKT_user_id *generate_photo_id(PKT_public_key *pk)
|
|||
goto scram;
|
||||
|
||||
file=iobuf_open(filename);
|
||||
if (file && is_secured_file (iobuf_get_fd (file)))
|
||||
{
|
||||
iobuf_close (file);
|
||||
file = NULL;
|
||||
errno = EPERM;
|
||||
}
|
||||
if(!file)
|
||||
{
|
||||
log_error(_("Unable to open JPEG file `%s': %s\n"),
|
||||
log_error(_("unable to open JPEG file `%s': %s\n"),
|
||||
filename,strerror(errno));
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue