1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-11-01 00:51:08 +03:00
Commit Graph

1923 Commits

Author SHA1 Message Date
Marco d'Itri
b83b299141 run_program: close pipe fd's which are connected to child process
When udev_log="debug", the children of udev inherit the file
descriptors of the pipes used to capture output. If they are not
properly closed then udev will not exit until all programs started
in the background by the children are terminated or have closed the
fds themselves, and this may cause deadlocks with udevsettle.
2006-08-27 02:53:16 +02:00
Marco d'Itri
a1e6bd93d3 update Debian rules 2006-08-27 02:28:31 +02:00
Kay Sievers
5780be9eab rename major/minor variable to maj/min to avoid warning 2006-08-24 10:25:34 +02:00
Kay Sievers
cea61f5c03 use fnmatch() instead of our own pattern match code 2006-08-24 09:03:15 +02:00
Kay Sievers
34bb5d057c udev_db.c: include <sys/stat.h> 2006-08-24 00:13:07 +02:00
Kay Sievers
56f914e63b 098 release 2006-08-23 01:32:25 +02:00
Marco d'Itri
49e7f5a05f update Debian rules 2006-08-23 01:20:56 +02:00
Marco d'Itri
2f64aa4056 fix rc when using udev --daemon 2006-08-22 23:20:15 +02:00
Kay Sievers
02adc0cbd6 man: add ATTR{file}="value" assignment 2006-08-21 02:39:22 +02:00
Kay Sievers
e3e7358137 db: don't create a db file for only a node name to store 2006-08-21 02:38:48 +02:00
Kay Sievers
e3396a2d38 cleanup commandline argument handling
Print and log failure, but don't fail for tools which are
usually not used iteractively. Add '--help' to all tools.
2006-08-21 02:38:20 +02:00
Kay Sievers
c4edd0adb5 use new key names in test programs 2006-08-20 19:11:32 +02:00
Kay Sievers
8bb39322f0 always expect KEY{value} on ATTR, ATTRS, ENV keys 2006-08-20 19:08:37 +02:00
Kay Sievers
3a020a85da remove built-in /etc/passwd /etc/group parser 2006-08-20 18:25:57 +02:00
Kay Sievers
5c51e31e0e vol_id: use primary group of 'nobody' instead of 'nogroup'
This fixes a Fedora issue not having the group 'nogroup'.
2006-08-20 18:24:34 +02:00
Kay Sievers
708cb35941 volume_id: add suspend partition detection
Based on a patch from:
  Scott James Remnant <scott@ubuntu.com>
2006-08-20 18:23:48 +02:00
Kay Sievers
04cc3a81d0 udevtrigger: add --retry-failed 2006-08-20 18:22:44 +02:00
Marco d'Itri
3770f6093f fix 'unknow user' error from getpwnam/getgrnam 2006-08-20 18:21:50 +02:00
Kay Sievers
c472055c90 fix typo in SUBSYSTEMS key parsing 2006-08-20 18:20:55 +02:00
Kay Sievers
220dac4c5e export DRIVER for older kernels as a replacement for PHYSDEVDRIVER 2006-08-20 18:19:08 +02:00
Kay Sievers
775f5e3587 update default rules 2006-08-20 18:18:24 +02:00
Kay Sievers
a990821d93 update SUSE rules 2006-08-20 18:17:58 +02:00
Kay Sievers
d0c8cb7d9c introduce ATTR{file}="value" to set sysfs attributes 2006-08-20 18:16:27 +02:00
Kay Sievers
38895e573c skip rule, if too may keys of the same type are used 2006-08-20 18:15:29 +02:00
Kay Sievers
95776dc6ec consistent key naming to match only the event device or include all parent devices
This scheme is more consistent and makes it obvious if a match happens
against the event device only, or the full chain of parent devices.

The old key names are now:
  BUS -> SUBSYSTEMS
  ID -> KERNELS
  SYSFS -> ATTRS
  DRIVER -> DRIVERS

Match keys for the event device:
  KERNEL
  SUBSYSTEM
  ATTR
  DRIVER (in a future release, for now the same as DRIVERS)

Match keys for all devices along the parent device chain:
  KERNELS
  SUBSYSTEMS
  ATTRS
  DRIVERS

ID, BUS, SYSFS are no longer mentioned in the man page but still work.
DRIVER must be converted to DRIVERS to match the new scheme. For now,
an error is logged, if DRIVER is used. In a future release, the DRIVER
key behaviour will change.
2006-08-19 16:06:25 +02:00
Harald Hoyer
eef7c9a385 selinux: init once in the daemon, not in every event process 2006-08-18 03:47:59 +02:00
Kay Sievers
36dddd1ca4 lookup_user, lookup_group: report "unknown user" and "lookup failed"
Patch from Marco, but both cases are reported as an error.
2006-08-18 03:15:26 +02:00
Kay Sievers
2362eea601 udevinfo, udevtest: simplify '/sys' stripping from devpath argument 2006-08-18 02:33:46 +02:00
Kay Sievers
1aa0c52b44 udevinfo: allow -a -n <node> 2006-08-18 02:31:37 +02:00
Kay Sievers
554dde8e9a db: store devpath - node relationship for all devices
If we don't have any interesting values to store, we just use
a symlink (doesn't occupy a whole page on tmpfs like a file)
to store the name of the node belonging to a devpath. This will
allow udevinfo to resolve all names, even when we don't have a
full database entry.
2006-08-18 02:27:16 +02:00
Alex Merry
878b47da74 udevtest: allow /sys in the devpath paramter 2006-08-17 21:14:45 +02:00
Michał Bartoszkiewicz
33a570f38b man pages: fix typos 2006-08-17 00:58:37 +02:00
Kay Sievers
dbd16d2684 rename udev_libc_wrapper -> udev_sysdeps 2006-08-16 02:04:04 +02:00
Lennart Poettering
aa9a49b4b3 volume_id: fix fat32 cluster chain traversal 2006-08-15 23:53:14 +02:00
Kay Sievers
226b969271 man page: fix typo 2006-08-15 19:38:13 +02:00
Kay Sievers
469aa1df95 udevd: remove huge socket buffer on the control socket 2006-08-15 00:00:16 +02:00
Kay Sievers
be31371fbb 097 release 2006-08-13 05:34:05 +02:00
Kay Sievers
254efc14a4 udevd: read DRIVER from the environment 2006-08-13 05:32:09 +02:00
Kay Sievers
258e77a555 update SUSE rules 2006-08-13 04:24:40 +02:00
Kay Sievers
d4ae9925ee don't report an error on overlong comment lines 2006-08-13 04:23:16 +02:00
Kay Sievers
9a8ad783a4 update Fedora rules 2006-08-13 04:22:21 +02:00
Kay Sievers
d146fa8f72 add late.rules to default rules 2006-08-11 16:41:52 +02:00
Kay Sievers
6afe0d7486 add 'crypto' devices to persistent storage rules 2006-08-11 16:41:15 +02:00
Anssi Hannula
e37938510a add joystick support to persistent input rules 2006-08-11 16:40:20 +02:00
Kay Sievers
eb1f908a2b move default rules to etc/udev/rules.d/ 2006-08-11 14:48:38 +02:00
Kay Sievers
4699afe1fd update SUSE rules 2006-08-11 14:39:13 +02:00
Kay Sievers
fef35cc846 update frugalware rules 2006-08-10 14:26:18 +02:00
Kay Sievers
f051e34069 udevd: autotune max_childs/max_childs_running 2006-08-10 12:50:53 +02:00
Piter PUNK
a77f74dd93 update slackware rules 2006-08-08 18:10:16 +02:00
Kay Sievers
15c02d46f5 update README 2006-08-07 03:13:27 +02:00