Kay Sievers
9569148736
ignore entire rules line if unknown keys are used
2011-10-22 20:50:23 +02:00
Kay Sievers
0bbe8838e7
libudev: export udev_util_encode_string()
2011-10-06 01:10:59 +02:00
Kay Sievers
289a1821a4
remove 'udevadm trigger --type=failed' and SYSFS, ID, BUS keys
2011-10-06 00:45:06 +02:00
Kay Sievers
79449642eb
do not remove static nodes on module unload
2011-08-11 20:37:49 +02:00
Kay Sievers
d7867b3183
implement path_id, usb_id, input_id as built-in command
2011-08-05 02:00:30 +02:00
Kay Sievers
869c903160
libudev: list - use binary search for list lookup
2011-08-04 22:59:58 +02:00
Kay Sievers
ace6bfa725
do not allow kernel properties to be set by udev rules
2011-07-18 21:19:00 +02:00
Kay Sievers
36acdbcc77
udevd: fix (recently) broken static node permission setting
...
Many thanks to Tom Gundersen for identifying the issue.
2011-07-11 22:56:37 +02:00
Kay Sievers
705a165d4d
enforce valid TAG+= names
2011-07-07 20:02:41 +02:00
Kay Sievers
c112873b5b
rules: static_node - use 0660 if group is given to get the cigar
...
>> On Tue, May 24, 2011 at 15:33, Tom Gundersen <teg@jklm.no> wrote:
>
> Close, but no cigar. Looks like the static nodes are not assigned
> permissions 0660 even if a gid is set (the nodes have perms 0600).
>
> Cheers,
>
> Tom
2011-05-30 02:12:02 +02:00
Kay Sievers
1eb037a7bf
rules: support substitutions in TAG=
2011-05-26 14:46:12 +02:00
Kay Sievers
7df0ed83c1
rules: implement TAGS== match
2011-05-25 21:08:52 +02:00
Kay Sievers
38932b9fba
rules: fix whitespace
2011-05-25 20:07:34 +02:00
Kay Sievers
3cf1a8e36e
libudev: device - use DEVMODE from kernel as the default mode
2011-05-16 22:04:02 +02:00
Kay Sievers
8958da13c7
libudev: list - use bit flags for 'sort' and 'unique'
2011-04-24 00:22:23 +02:00
Kay Sievers
c7c32e9c98
simplify rules file overwrite logic
...
The udev list already provides all we need, if we use the basename
as the key, and request sorting and uniqueness.
2011-04-23 23:33:11 +02:00
Kay Sievers
a178e7fe90
udevd: rules files - accept empty or /dev/null links
2011-04-20 17:58:58 +02:00
Kay Sievers
2181d30a34
timeout handling without alarm()
2011-04-20 01:54:38 +02:00
Kay Sievers
7f2d3a3fc8
require explicit "db_persist" to exclude device info from --db-cleanup
2011-04-14 14:44:56 +02:00
Kay Sievers
d3990a576a
"db_persist=" -> "db_persist"
2011-04-14 12:42:59 +02:00
Kay Sievers
02bf3e13e0
udevd: do not nice processes
2011-04-14 12:25:19 +02:00
Kay Sievers
9ead662791
udevadm: info --cleanup-db
...
Most of the udev database from initramfs should be deleted before
starting udev in the real root. udevadm: info --cleanup-db deletes
all database entries in /run/udev. Events that processed IMPORT{db},
or mark devices explicitely as persistent, will be excluded.
2011-04-13 22:33:01 +02:00
Kay Sievers
4ec9c3e797
use /run/udev/ if possible and fall back to /dev/.udev/
2011-03-23 02:31:09 +01:00
Kay Sievers
5f59fa0900
move /dev/.udev/ to /dev/.run/udev/ and convert old udev database at udevd startup
2011-03-15 17:26:08 +01:00
Kay Sievers
ff0e1f4e5d
check ifindex > 0 instead of subsystem == "net"
2010-12-14 11:27:02 +01:00
Harald Hoyer
851dd4ddc5
udev-rules.c: change import property buffer to 16384 bytes
...
import_program_into_properties() should have the same line length as
import_file_into_properties()
see also https://bugzilla.redhat.com/show_bug.cgi?id=652318
2010-11-12 14:42:35 +01:00
Yin Kangkai
27f4528b9a
malloc()+memset() -> calloc()
2010-08-03 08:10:26 +02:00
Yin Kangkai
1851332c08
udevd: fix some memory leaks in error path
...
Signed-off-by: Yin Kangkai <kangkai.yin@intel.com>
2010-08-02 12:37:55 +02:00
Kay Sievers
3b529da425
allow final assignment for OPTIONS:="nowatch"
...
A final assignemnt operator will disable any device watching by
inotify, and any possible later rules setting "watch" again will
be ignored.
2010-07-07 11:35:40 +02:00
Kay Sievers
7d2b68b734
IMPORT{cmdline}: start at first char after '='
2010-05-31 11:04:42 +02:00
Kay Sievers
c4f6dcc4a5
add IMPORT{cmdline}
2010-05-31 01:13:03 +02:00
Kay Sievers
88cbfb09ee
while (1) -> for (;;)
2010-05-27 15:11:00 +02:00
Kay Sievers
d80f8ffd1a
fix compilation with --enable-debug
2010-05-25 15:11:02 +02:00
Kay Sievers
761dfddcc0
create static nodes provided by kernel modules to allow module autoloading
2010-05-20 17:09:04 +02:00
Kay Sievers
e85f5ec15f
reset process priority before executing RUN+=
...
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=581235
2010-05-12 08:46:56 +02:00
Kay Sievers
d0d7b8d085
add info message when empty NAME is given
2010-05-07 22:57:20 +02:00
Kay Sievers
75cb1ac51e
warn when renaming kernel-provided nodes instead of adding symlinks
2010-05-05 11:39:25 +02:00
Kay Sievers
6d80a7e83f
remove debug output during rules parsing
2010-05-03 18:09:25 +02:00
Kay Sievers
1dbfbfbea6
use the usual TAG+=, TAG= logic
2010-04-22 19:03:11 +02:00
Kay Sievers
3f896a2abd
all to match against a given TAG==
2010-04-22 18:33:24 +02:00
Kay Sievers
28460195c2
add TAG= to improve event filtering and device enumeration
2010-04-22 18:12:36 +02:00
Kay Sievers
5d69a34caf
fix previous commit
2010-04-21 15:43:05 +02:00
Kay Sievers
e9906fec71
remove left-over from ignore_remove and all_partitions
2010-04-21 15:11:57 +02:00
Kay Sievers
a89d342dfb
remove "ignore_remove" option
2010-04-13 12:45:38 +02:00
Kay Sievers
1f084fe581
remove "all_partitions" option
...
We can not predict the major/minor of non-existing devices:
$ grep . /sys/class/block/sd*/dev
/sys/class/block/sda1/dev:259:524288
/sys/class/block/sda2/dev:259:262144
/sys/class/block/sda3/dev:259:786432
/sys/class/block/sda4/dev:259:131072
/sys/class/block/sda/dev:259:0
/sys/class/block/sdb/dev:259:655360
/sys/class/block/sdc/dev:259:393216
If this functionality is still needed for some broken hardware, it needs to be
solved with a tool not part of the udev package. Because such option is unreliable
and unsafe to use.
2010-04-13 08:52:48 +02:00
Kay Sievers
4b06c40935
replace "add|change" with "!remove"
2010-04-12 16:52:41 +02:00
Kay Sievers
5539f624e1
allow IMPORT{db}="KEY"
2010-04-12 15:58:05 +02:00
Kay Sievers
fbb31cd6e1
libbudev-private: rename udev_list_entry_get_flag()
2010-03-10 14:52:42 +01:00
Kay Sievers
6d87ee2e00
print warning for BUS=, SYSFS{}=, ID=
2009-11-16 23:39:33 +01:00
Kay Sievers
cdae488a3f
remove "ignore_device"
...
There is no way to ignore an event these days. Libudev events can
not be suppressed. It only prevents RUN keys from being executed,
which results in an inconsistent behavior in current setups.
2009-11-16 15:22:17 +01:00