diff options
author | kay.sievers@vrfy.org <kay.sievers@vrfy.org> | 2004-12-21 00:19:34 +0100 |
---|---|---|
committer | Greg KH <gregkh@suse.de> | 2005-04-26 23:19:09 -0700 |
commit | eb8700908c961d4a0197273f728bc3a3d6cd6c4a (patch) | |
tree | fe6149d2ea8f62dd9fa27fa2bde49c68dbc5da94 /test/udev-test.pl | |
parent | e93901468c668f3dda6f57ee7f4b953e287b1622 (diff) |
[PATCH] update Fedora config files and add some more tests
Diffstat (limited to 'test/udev-test.pl')
-rw-r--r-- | test/udev-test.pl | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/test/udev-test.pl b/test/udev-test.pl index 578adc4df1..b50554ceb9 100644 --- a/test/udev-test.pl +++ b/test/udev-test.pl @@ -634,6 +634,34 @@ KERNEL="ttyUSB[0-9]*", NAME="ttyUSB%n" EOF }, { + desc => "multiple permissions only rule", + subsys => "tty", + devpath => "/class/tty/ttyUSB0", + exp_name => "ttyUSB0", + exp_perms => "3000:4000:0777", + conf => <<EOF +SUBSYSTEM="tty", OWNER="3000" +SUBSYSTEM="tty", GROUP="4000" +SUBSYSTEM="tty", MODE="0777" +KERNEL="ttyUSX[0-9]*", OWNER="5001", GROUP="101", MODE="0444" +KERNEL="ttyUSB[0-9]*", NAME="ttyUSB%n" +EOF + }, + { + desc => "permissions only rule with override at NAME rule", + subsys => "tty", + devpath => "/class/tty/ttyUSB0", + exp_name => "ttyUSB0", + exp_perms => "3000:8000:0777", + conf => <<EOF +SUBSYSTEM="tty", OWNER="3000" +SUBSYSTEM="tty", GROUP="4000" +SUBSYSTEM="tty", MODE="0777" +KERNEL="ttyUSX[0-9]*", OWNER="5001", GROUP="101", MODE="0444" +KERNEL="ttyUSB[0-9]*", NAME="ttyUSB%n", GROUP="8000" +EOF + }, + { desc => "major/minor number test", subsys => "block", devpath => "/block/sda", |