Devuan bug report logs - #334
eudev service might be using an incomplete PATH

Package: eudev; Maintainer for eudev is Devuan Dev Team <devuan-dev@lists.dyne.org>; Source for eudev is src:eudev.

Reported by: Guenther Brunthaler <gb_about_gnu@gmx.net>

Date: Thu, 13 Jun 2019 22:03:02 UTC

Severity: normal

Done: Svante Signell <svante.signell@gmail.com>

Full log


Message #10 received at 334@bugs.devuan.org (full text, mbox, reply):

Received: (at 334) by bugs.devuan.org; 13 Jun 2019 22:40:06 +0000
Return-Path: <gb_about_gnu@gmx.net>
Delivered-To: devuanbugs@dyne.org
Received: from tupac3.dyne.org [195.169.149.119]
	by fulcanelli with IMAP (fetchmail-6.3.26)
	for <debbugs@localhost> (single-drop); Fri, 14 Jun 2019 00:40:06 +0200 (CEST)
Received: from mout.gmx.net (mout.gmx.net [212.227.15.18])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by vm6.ganeti.dyne.org (Postfix) with ESMTPS id 860DEF60BD2
	for <334@bugs.devuan.org>; Fri, 14 Jun 2019 00:39:47 +0200 (CEST)
Authentication-Results: vm6.ganeti.dyne.org;
	dkim=pass (1024-bit key; secure) header.d=gmx.net header.i=@gmx.net header.b="LTyLw/6p";
	dkim-atps=neutral
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net;
	s=badeba3b8450; t=1560465587;
	bh=TG1d88MQFWvsJmmdKrYQHlzs/kaxBI2q5bxvZJe+cp8=;
	h=X-UI-Sender-Class:Subject:To:References:From:Date:In-Reply-To;
	b=LTyLw/6pGBn1nKa5hvLYUuhLIp0ScySKzPTsmv+SMGYfsI14r+MW8l/FAgShMUF+A
	 Db3uUPN5rKy+BmOQJOsBQU4DF0SjAY870oTXljMkNV/x4auw7s9KqchoBBMfVM/MmP
	 D10BbeHwX6YgfcNXaTuwRz/Q75HEvPApUJQ3YbZ4=
X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c
Received: from [10.157.146.248] ([91.141.2.127]) by mail.gmx.com (mrgmx005
 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MgesQ-1iIJBe3Ssm-00h37y for
 <334@bugs.devuan.org>; Fri, 14 Jun 2019 00:39:47 +0200
Subject: This might actually be a compatibility issue in the eudev code
To: 334@bugs.devuan.org
References: <cc341dd2-d3bc-32a8-063b-ae6c9b410881@gmx.net>
 <handler.334.B.156046260630478.ack@bugs.devuan.org>
From: Guenther Brunthaler <gb_about_gnu@gmx.net>
Message-ID: <44046b0a-9ea5-98b3-b756-e2e4b3bd3cd3@gmx.net>
Date: Fri, 14 Jun 2019 00:39:44 +0200
User-Agent: Mozilla/5.0 (X11; Linux armv7l; rv:52.0) Gecko/20100101
 Thunderbird/52.9.1
MIME-Version: 1.0
In-Reply-To: <handler.334.B.156046260630478.ack@bugs.devuan.org>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: de-AT
Content-Transfer-Encoding: quoted-printable
X-Provags-ID: V03:K1:NJJ9EsK9uMdOa7U6ysolTHNtEN9QYJ14DE9A9jC/dLh0TXnVdrx
 VhHZtKgpDaKrYFrAafZcnAVRdxaY384mE5C3/yfr6rc9MeOzwGpy0jV/uxBwpASy22hqHNQ
 6vY9Af86Qv+MKRn0m78MFukvPlkk+Wd2CiGbaTMZtaekciAvD9wfdDQ47aK7LSmy1Mnjra1
 dSLq57POpzocjtWwOvdEQ==
X-UI-Out-Filterresults: notjunk:1;V03:K0:Y72sSXLJDWQ=:+VXKM/2lxwIiCYYPOwPfl+
 6/rBU28MZRzm9WxQvUHISiUW//vo04w+53BLrlryF2n+QORSSU/Lzs3DOcBmJmAk5CCAPbiqK
 SFHt34F2i3EsgBJFvE/A3pdi4b2XccEzL/QH4DwZcMhGtq4+EBXPxjc7einshKdvnepXOIMaD
 0R8fIT8i3iXhooq55tekH/7aEuQR2VOraIgSr8jyZm2EY6SsrrWtM2JduzgPbstRZWRB+oX3Y
 m030/xVLOYYGn3D3rM26sBU4OMAq9K06RNbFMAdKFn7j2NHmnalIPg336O8EVyScainFWBfWT
 rN1L06Sd9phxXXNN/Be9NcokR0KlZ2mA8n+nyhPq6i2sUCeQIf9nT98AsLB4RPrVhiVj1EOlk
 3F3AAH84MdqyedmcvLvqkl4crsNPxxWZaplgj4eYvdJ0AFUH/FhmmUJNCBwL2xUJ1P7c6AVKy
 9yWAR1LiTYRbu2VLG9Gw8Uo8VvmuXwRgCoesII+T22lnuUaGZs/uqYIUmH0/msk7tD/fY7FAO
 rawJ9dzRowFGAM+vgreltzVj5B0YosieWNnICdHHtQFSLqXTNyxCHVwXqQq9g2hda0W4Pk8mm
 qrGzbkvwLYig3x56EX9FELpzBVxe7f3otzOSpxmpH+f6U5Bo8uyCUxACc6xSVkPQjixuu04i8
 hqS/7YuchOE/AdxuRkUin3qPgfdCQQ9BLFpX53cyk6mFLwdla5bkRiZ+X7phP6RrgFj7TBT75
 8KuFklS7eiiHLNcJLRgQPuKDYOsM/Cuh4fnjI6GvgufoeWkculA4FszR/mJSRLkU0Puvaa2hN
 CcSIu3wiwAQEjSWOAwDYzuN0EO0+LFpo9v1ukaQQN5skS0ty9vFPFqkWsu9bl9uyxKWxNaz5A
 v8Ieo3MeD8HELZqbq5/Fpo34GPfixyrKZY4PIleSkQwmvT8tvR3dU7+gDuku0ZYGgF0v8uaqC
 kNOmiQiGXCTExEzNUN9JiLHfdnfV1g4/hYA/Zg5+kAy1awUcL412/
X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID,
	DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS
	autolearn=disabled version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tupac3.dyne.org
I have just compared the functionality of

/lib/systemd/systemd-udevd --daemon

on Raspbian with that of

/sbin/udevd --daemon

on Devuan.

The result is that both installations of the rule file from bug #333 are
identical:

$ cksum /lib/udev/rules.d/40-usb_modeswitch.rules
194757299 40499 /lib/udev/rules.d/40-usb_modeswitch.rules

and neither does Raspbian add /lib/udev to the front of PATH, which I
verified by temporarily modifying /lib/udev/usb_modeswitch so that it
logs its PATH setting, which showed:

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

You see, no /lib/udev.

Yet systemd-udevd correctly invokes /lib/udev/usb_modeswitch rather than
/usr/sbin/usb_modeswitch when the udev rule just says

$ grep symlink-name /lib/udev/rules.d/40-usb_modeswitch.rules
KERNEL=="ttyUSB*", ATTRS{bNumConfigurations}=="*",
PROGRAM="usb_modeswitch --symlink-name %p %s{idVendor} %s{idProduct}
%E{PRODUCT}", SYMLINK+="%c"

It follows, that systemd-udevd seems to use an augmented PATH for
exec'ing its PROGRAM, but does not "export" that augmented PATH to the
invoked program.

Therefore, to remain compatible with systemd-udevd, eudev should do the
same.

One might even suspect this was a subtle change deliberately introduced
by some people who wanted to make eudev look bad, but it does not really
matter and just needs to be fixed.

I suppose this is an upstream bug and not Devuan-specific, and should be
escalated to upstream.

Im I supposed to do that, or will you Devuan guys do it?


Send a report that this bug log contains spam.


Devuan BTS -- Powered by Debian bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.

Devuan Bugs Owner <owner@bugs.devuan.org>.
Last modified: Thu Apr 25 20:26:30 2024;