mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-28 09:55:37 -04:00
[luksbootkeyfile] Fix lax permissions on file.
This commit is contained in:
parent
856a2eaa1d
commit
af2a900276
1 changed files with 2 additions and 0 deletions
|
@ -20,6 +20,7 @@
|
|||
|
||||
#include "utils/CalamaresUtilsSystem.h"
|
||||
#include "utils/Logger.h"
|
||||
#include "utils/UMask.h"
|
||||
#include "utils/Variant.h"
|
||||
|
||||
#include "GlobalStorage.h"
|
||||
|
@ -111,6 +112,7 @@ static const char keyfile[] = "/crypto_keyfile.bin";
|
|||
static bool
|
||||
generateTargetKeyfile()
|
||||
{
|
||||
CalamaresUtils::UMask m( CalamaresUtils::UMask::Safe );
|
||||
auto r = CalamaresUtils::System::instance()->targetEnvCommand(
|
||||
{ "dd", "bs=512", "count=4", "if=/dev/urandom", QString( "of=%1" ).arg( keyfile ) } );
|
||||
if ( r.getExitCode() != 0 )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue