[PATCH 1/2] [V2] Add support for GPG signature enforcement on booted
Timothy Pearson
tpearson at raptorengineering.com
Thu Aug 4 03:11:32 AEST 2016
On 08/02/2016 11:09 PM, Stewart Smith wrote:
> Timothy Pearson <tpearson at raptorengineering.com> writes:
>
>> --- a/discover/boot.c
>> +++ b/discover/boot.c
>> @@ -20,17 +20,29 @@
>> #include <util/util.h>
>> #include <i18n/i18n.h>
>>
>> +#if defined(HAVE_LIBGPGME)
>> +#include <gpgme.h>
>> +#endif
>> +
>> #include "device-handler.h"
>> #include "boot.h"
>> #include "paths.h"
>> #include "resource.h"
>>
>> +#define MAX_FILENAME_SIZE 8192
>
> PATH_MAX?
I had considered that, but PATH_MAX only lists a recommended maximum for
the path itself, and does not include length for filename(s).
Would (PATH_MAX * 2) be acceptable here?
--
Timothy Pearson
Raptor Engineering
+1 (415) 727-8645 (direct line)
+1 (512) 690-0200 (switchboard)
https://www.raptorengineering.com
More information about the Petitboot
mailing list