|
|||||||||||
|
[RFC] Alternative solution (was: r50470 - trunk/packages/kbd-chooser/debian)
From: Frans Pop <elendil(at)planet.nl>
Date: Tue Dec 18 2007 - 06:15:09 EST
On Monday 17 December 2007, Joey Hess wrote:
Having d-i write an /etc/whatever_file for this still seems very ugly to me. > The only reason there is no serious attack vector is because Does not change the fact that the probability of anyone abusing that "hole" is about 0 and the effects if they do so is about null. On a scale from 1 to 100 I would personally rate this security issue at about -0. That said, I totally agree that this is not something that should be implemented as a general mechanism and after some reflection I've come to the conclusion that your suggestion to set the "seen" flag is probably the best solution. The (tested) patch below for kbd-chooser's post-base-installer hook script implements this by first "preseeding" the template in the D-I environment and then using debconf-copydb to propagate it to the target system. If there is a clean way to set the flag directly in the target environment, please propose an alternative patch. If this patch is acked, I will implement it in kbd-chooser and Christian can then revert the changes in console-common and console-data at his convenience. I don't think there's any need to rush new uploads for those packages.
It would have been ever so nice if this discussion could have been taken
place _before_ the other solution had been implemented.
Lessons for the future:
Cheers,
+# Avoid displaying console-data's keymap policy question +cd_template=console-data/keymap/policy +cd_policy="Don't touch keymap" +if ! db_set $cd_template "$cd_policy"; then + db_register debian-installer/dummy $cd_template + db_set $cd_template "$cd_policy" + db_subst $cd_template ID $cd_template +fi +db_fset $cd_template seen true +debconf-copydb -p $cd_template configdb target_configdb apt-install console-tools console-data console-common || true -- To UNSUBSCRIBE, email to debian-boot-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.orgReceived on Tue Dec 18 06:16:28 2007 This archive was generated by hypermail 2.1.8 : Wed Mar 19 2008 - 03:48:01 EDT |
||||||||||
|
|||||||||||