diff options
author | Victor Lowther <victor.lowther@gmail.com> | 2008-10-04 21:21:29 -0500 |
---|---|---|
committer | Victor Lowther <victor.lowther@gmail.com> | 2008-10-04 21:21:29 -0500 |
commit | f7d7d72439101083925fccd7825fd711e790c4e0 (patch) | |
tree | eb0a88ec384644c63fad1f7e7b17456960a352da | |
parent | fe5fc86b7e4f03cb11f291433fd9479951eedfb7 (diff) |
Do not save generated .fdi in /tmp
Instead, save them in /etc/hal/fdi/information.
Closes an airline-plot potential DoS attack.
-rwxr-xr-x | pm/sleep.d/00auto-quirk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pm/sleep.d/00auto-quirk b/pm/sleep.d/00auto-quirk index 0781411..0f9bcce 100755 --- a/pm/sleep.d/00auto-quirk +++ b/pm/sleep.d/00auto-quirk @@ -20,7 +20,7 @@ do_save_quirks() video_vendor=$($hgp system.hardware.primary_video.vendor --hex) video_card=$($hgp system.hardware.primary_video.product --hex) ( - exec >"/tmp/pm-utils-created.fdi" + exec >"/etc/hal/fdi/information/99local-pm-utils-quirks.fdi" echo '<?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- -->' echo '<!-- Created by pm-utils -->' echo '<deviceinfo version="0.2">' @@ -43,7 +43,7 @@ do_save_quirks() echo " </device>" echo "</deviceinfo>" ) - echo "FDI file created as /tmp/pm-utils-created.fdi" + echo "FDI file created as /etc/hal/fdi/information/99local-pm-utils-quirks.fdi" } maybe_add_quirks() |