Bug#934589: udev: net.ifnames is wrongly imported as a property for any/all devices

quidame quidame at poivron.org
Tue Aug 13 17:07:16 BST 2019



On 13/08/2019 17:44, Michael Biebl wrote:
> 
> --export says
> 
>       -x, --export
>            Print output as key/value pairs. Values are enclosed in
> single quotes. This takes effects only when --query=property or
> --device-id-of-file=FILE is
>            specified.
> 
> It doesn't claim that this is a shell parseable format which can be run
> through eval, so I don't think you can rely on that.

The --export option has been implemented to be shell parseable. The
bugfix https://bugzilla.redhat.com/show_bug.cgi?id=644330 claims:

---------->8----------
Previously, the output of the command "udevadm info --query=property"
could not be used as input to shell interpreters. This update adds
"--query=property --export", which changes the output to be shell parseable.
----------8<----------

So the IMPORT{cmdline}="net.ifnames" is a kind of regression. If it is
absolutely necessary, at least should it be mitigated and restricted to
the relevant devices, and only them. No ?

Thanks,
quidame


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20190813/8780f493/attachment.sig>


More information about the Pkg-systemd-maintainers mailing list