[arch-projects] [mkinitcpio] [RFC] Rewrite parse_cmdline (again)

Thomas Bächler thomas at archlinux.org
Thu Apr 14 18:38:54 EDT 2011

Am 15.04.2011 00:13, schrieb Rémy Oudompheng:
> And do we really have to filter out invalid variable names? Isn't there
> some documentation that says the kernel isn't supposed to have absurd
> command line parameters (like unescaped >, <, &, |)

The kernel allows all kind of crappy stuff. It even exports almost
everything with a = in it to the environment (but not everything, it
strips root= for example). If you put something like (/%$=abc on the
command line, it will export a variable (%$ into the environment.

The situation is pretty annoying, as I don't know for sure which
variables it exports and which it doesn't, so we still try to parse

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.archlinux.org/pipermail/arch-projects/attachments/20110415/6c22cc54/attachment.asc>

More information about the arch-projects mailing list