[opensuse-packaging] rpmlint and /usr/bin/env
Hi, Why rpmlint prints a warning about /usr/bin/env as a script interpreter? I could not find any related documentation. Vladimir --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Am Donnerstag 31 Mai 2007 schrieb Vladimir Nadvornik:
Hi,
Why rpmlint prints a warning about /usr/bin/env as a script interpreter? I could not find any related documentation.
I asked the same and the answer I got was: Because /usr/bin/env takes the user's path into account and as such makes the script unpredictable - and less secure. I suggest we create a rpm macro to replace /usr/bin/env <ARG> with the correct path to ARG though as this might be a common task in quite some packages. Greetings, Stephan -- SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On Thursday, 31. May 2007, Stephan Kulow wrote:
Because /usr/bin/env takes the user's path into account and as such makes the script unpredictable - and less secure.
Actually, the answer is twofold: a) it was for testing purposes and is currently still in the rpmlint package b) the main reason is that correct file-requires are not added to the package. e.g if your script starts with "#!/usr/bin/env python", then /usr/bin/env will be required while actually /usr/bin/python should have been required. Debian for example goes down the long and ugly road of patching each and every script that contains /usr/bin/env - for the reason that coolo gave you.
I suggest we create a rpm macro to replace /usr/bin/env <ARG> with the correct path to ARG though as this might be a common task in quite some packages.
I agree, many packages are affected, and I was trying to look into fixing the rpm magic. But not enough time yet. Greetings, Dirk --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
participants (3)
-
Dirk Mueller
-
Stephan Kulow
-
Vladimir Nadvornik