Skip to content

Commit

Permalink
fix permissions on file which contain encrypted password to be readab…
Browse files Browse the repository at this point in the history
…le only by root(BNC#864544)
  • Loading branch information
jreidinger committed Mar 3, 2014
1 parent feea116 commit b4bd9ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/bootloader/grub2pwd.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def enable(password)

Yast::SCR.Write(
Yast::Path.new(".target.string"),
[PWD_ENCRYPTION_FILE, 0755],
[PWD_ENCRYPTION_FILE, 0700],
file_content
)
end
Expand Down
2 changes: 1 addition & 1 deletion test/grub2pwd_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def mock_file_presence(exists)
)
expect(Yast::SCR).to receive(:Write).with(
kind_of(Yast::Path),
[GRUB2Pwd::PWD_ENCRYPTION_FILE, 0755],
[GRUB2Pwd::PWD_ENCRYPTION_FILE, 0700],
/#{passwd}/
)

Expand Down

0 comments on commit b4bd9ec

Please sign in to comment.