Skip to content

Commit

Permalink
Fixed: Permission policy hardening (iMSCP::Composer)
Browse files Browse the repository at this point in the history
  • Loading branch information
nuxwin committed Oct 23, 2017
1 parent 66ce2be commit 3dec2cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine/PerlLib/iMSCP/Composer.pm
Expand Up @@ -220,7 +220,7 @@ sub installPackages
$file->set( $self->getComposerJson());
my $rs = $file->save();
$rs ||= $file->owner( $self->{'_attrs'}->{'user'}, $self->{'_attrs'}->{'group'} );
$rs ||= $file->mode( 0644 );
$rs ||= $file->mode( 0640 );
$rs == 0 or die( getMessageByType( 'error', { amount => 1, remove => 1 } ));
$rs = executeNoWait(
$self->_getSuCmd(
Expand Down

0 comments on commit 3dec2cb

Please sign in to comment.