1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-23 21:35:11 +03:00

test: check string substitutions in OWNER and GROUP

String substitutions in OWNER and GROUP keys were broken in udev 137-142.
Explicitly test for this, since such breakage will not manifest in typical
rulesets.
This commit is contained in:
Benjamin Gilbert 2009-05-22 20:54:46 +02:00 committed by Kay Sievers
parent 12a7c14b86
commit bec7e07acc

View File

@ -1654,14 +1654,14 @@ KERNEL=="sda", MODE="0000"
EOF
},
{
desc => "TEST PROGRAM feeds MODE",
desc => "TEST PROGRAM feeds OWNER, GROUP, MODE",
subsys => "block",
devpath => "/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda",
exp_name => "sda",
exp_perms => "0:0:0400",
exp_perms => "5000:100:0400",
rules => <<EOF
KERNEL=="sda", MODE="666"
KERNEL=="sda", PROGRAM=="/bin/echo 0 0 0400", OWNER="%c{1}", GROUP="%c{2}", MODE="%c{3}"
KERNEL=="sda", PROGRAM=="/bin/echo 5000 100 0400", OWNER="%c{1}", GROUP="%c{2}", MODE="%c{3}"
EOF
},
{