-
Notifications
You must be signed in to change notification settings - Fork 68
8000
|
Hello I've tried to rebase over main to get an up to date PR, but get some conflict. I'll clean at least this PR to be more accurate and reflect about to apply it or not |
Using a fixed string could allow for abuse by anyone who has access to /tmp. One could place a symbolic link to any file to cause it to be overwritten when alternc.install is run.
43f3e85 to
ad19402
Compare
* SED_SCRIPT is provided as second argument to all install.d/ scripts Follow exit status as explained at https://www.gnu.org/software/bash/manual/html_node/Exit-Status.html
Use mktemp to get the filename for storing the templating script
Using a fixed string could allow for abuse by anyone who has access to /tmp. One could place a symbolic link to any file to cause it to be overwritten when alternc.install is run.
The location of the sed script is passed as a second argument to scripts in /usr/lib/share/alternc/install.d when the template hook is called.