*FIXED: Improved security by detecting GRUB paths at compile-time.
author Konstantinos Smanis
()
committer Konstantinos Smanis
()
commit f008456b4a7819d2f374d4f59cbd5ab155be478b
tree 786d92a45b4db19e88f86671b9c76f46048acbd7
parent 93ca506c5bbe1a61f5ce1ad93316e26523135313
*FIXED: Improved security by detecting GRUB paths at compile-time.

GRUB paths are no longer detected at run-time and passed around to the
helper. They remain fixed after compilation. This is a strict rule so
that the helper cannot read/write to an arbitrary file. It also allows
package maintainers to fine-tune the module according to each
distribution's naming conventions. If no user interaction is detected,
CMake will automatically try and resolve these paths.

Package maintainers are *highly* encouraged to manually specify these
paths.

For more information check the updated INSTALL file.
11 files changed:
CMakeLists.txt
INSTALL
cmake/modules/GRUBPaths.cmake [ new file with mode 0644 ]
config.h.cmake
src/helper/helper.cpp
src/helper/helper.h
src/installDlg.cpp
src/installDlg.h
src/kcm_grub2.cpp
src/kcm_grub2.h
ui/kcm_grub2.ui