From 9158d03e4042876b7627947b3489fd4d49c7553a Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Sat, 20 Sep 2014 18:12:53 +0200 Subject: [PATCH] test: udev - restrict nemuric uid's to existing ones We now verify the existence of uid's before applying them to devicenodes, so change the test accordingly. We assume that both uid/gid 1 and 2 exist on the test system. --- test/udev-test.pl | 62 +++++++++++++++++++++++++++---------------------------- 1 file changed, 31 insertions(+), 31 deletions(-) diff --git a/test/udev-test.pl b/test/udev-test.pl index 23f1b726e0..14f11df8af 100755 --- a/test/udev-test.pl +++ b/test/udev-test.pl @@ -549,21 +549,21 @@ KERNEL=="tty33", OWNER="bad", GROUP="name" EOF }, { - desc => "permissions OWNER=5000", + desc => "permissions OWNER=1", devpath => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda", exp_name => "node", - exp_perms => "5000::0600", + exp_perms => "1::0600", rules => < "permissions GROUP=100", + desc => "permissions GROUP=1", devpath => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda", exp_name => "node", - exp_perms => ":100:0660", + exp_perms => ":1:0660", rules => < "permissions OWNER=5000 GROUP=100 MODE=0777", + desc => "permissions OWNER=1 GROUP=1 MODE=0777", devpath => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda", exp_name => "node", - exp_perms => "5000:100:0777", + exp_perms => "1:1:0777", rules => < "permissions OWNER to 5000", + desc => "permissions OWNER to 1", devpath => "/devices/pci0000:00/0000:00:1d.7/usb5/5-2/5-2:1.0/tty/ttyACM0", exp_name => "ttyACM0", - exp_perms => "5000::", + exp_perms => "1::", rules => < "permissions GROUP to 100", + desc => "permissions GROUP to 1", devpath => "/devices/pci0000:00/0000:00:1d.7/usb5/5-2/5-2:1.0/tty/ttyACM0", exp_name => "ttyACM0", - exp_perms => ":100:0660", + exp_perms => ":1:0660", rules => < "permissions OWNER, GROUP, MODE", devpath => "/devices/pci0000:00/0000:00:1d.7/usb5/5-2/5-2:1.0/tty/ttyACM0", exp_name => "ttyACM0", - exp_perms => "5000:100:0777", + exp_perms => "1:1:0777", rules => < "permissions only rule", devpath => "/devices/pci0000:00/0000:00:1d.7/usb5/5-2/5-2:1.0/tty/ttyACM0", exp_name => "ttyACM0", - exp_perms => "5000:100:0777", + exp_perms => "1:1:0777", rules => < "multiple permissions only rule", devpath => "/devices/pci0000:00/0000:00:1d.7/usb5/5-2/5-2:1.0/tty/ttyACM0", exp_name => "ttyACM0", - exp_perms => "3000:4000:0777", + exp_perms => "1:1:0777", rules => < "permissions only rule with override at SYMLINK+ rule", devpath => "/devices/pci0000:00/0000:00:1d.7/usb5/5-2/5-2:1.0/tty/ttyACM0", exp_name => "ttyACM0", - exp_perms => "3000:8000:0777", + exp_perms => "1:2:0777", rules => < "TEST PROGRAM feeds OWNER, GROUP, MODE", devpath => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda", exp_name => "sda", - exp_perms => "5000:100:0400", + exp_perms => "1:1:0400", exp_rem_error => "yes", rules => <