chiark / gitweb /
[PATCH] remove untrusted chars read from sysfs-values or returned by PROGRAM
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>
Sat, 26 Mar 2005 23:15:07 +0000 (00:15 +0100)
committerGreg KH <gregkh@suse.de>
Wed, 27 Apr 2005 06:54:59 +0000 (23:54 -0700)
commit18614ab25d4208749a3d85ced33acc6679c60fce
tree4c91a9edc1bb542e9028216046f665c8fde16c60
parent61b1b7069f7a640e1952dce3c6de97034ef7c4fe
[PATCH] remove untrusted chars read from sysfs-values or returned by PROGRAM

Better remove characters that are useless in a device node name.
It may be a security risk to pass any character read from e.g. a
sysfs attribute to a shell script we execute later.

Prevent the modification of the libsysfs attribute value
cache.

Clear PROGRAM result if the execution encountered an error.
test/udev-test.pl
udev_config.c
udev_rules.c
udev_utils.c
udev_utils.h