summaryrefslogtreecommitdiff
path: root/test/udev-test.pl
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2004-12-20 03:04:11 +0100
committerGreg KH <gregkh@suse.de>2005-04-26 23:19:09 -0700
commit4ae6d03f394684722e7d5710fb2585e7c388f119 (patch)
treeb462a52a6f7acd159e3fa8f52193adf53cded0d9 /test/udev-test.pl
parent65ab1334122b6ed427ce39f48fb40757d44f8d71 (diff)
[PATCH] simplify rules file by setting default mode to 0660
On Sun, 2004-12-19 at 18:31 +0100, Marco d'Itri wrote: > It may be better to use default_mode="0660", I do not think that there > are any mode 600 devices. This would allow setting only the group for > most of them.
Diffstat (limited to 'test/udev-test.pl')
-rw-r--r--test/udev-test.pl10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/udev-test.pl b/test/udev-test.pl
index 8ee8ba5414..9a581ce527 100644
--- a/test/udev-test.pl
+++ b/test/udev-test.pl
@@ -506,7 +506,7 @@ EOF
subsys => "tty",
devpath => "/class/tty/tty33",
exp_name => "tty33",
- exp_perms => "0:0:0600",
+ exp_perms => "0:0:0660",
conf => <<EOF
KERNEL="tty33", NAME="tty33", OWNER="bad", GROUP="name"
EOF
@@ -516,7 +516,7 @@ EOF
subsys => "block",
devpath => "/block/sda",
exp_name => "node",
- exp_perms => "5000::0600",
+ exp_perms => "5000::0660",
conf => <<EOF
BUS="scsi", KERNEL="sda", NAME="node", OWNER="5000"
EOF
@@ -526,7 +526,7 @@ EOF
subsys => "block",
devpath => "/block/sda",
exp_name => "node",
- exp_perms => ":100:0600",
+ exp_perms => ":100:0660",
conf => <<EOF
BUS="scsi", KERNEL="sda", NAME="node", GROUP="100"
EOF
@@ -566,7 +566,7 @@ EOF
subsys => "tty",
devpath => "/class/tty/ttyUSB0",
exp_name => "ttyUSB0",
- exp_perms => ":100:0600",
+ exp_perms => ":100:0660",
conf => <<EOF
KERNEL="ttyUSB[0-9]*", NAME="ttyUSB%n", GROUP="100"
EOF
@@ -1185,7 +1185,7 @@ open CONF, ">$main_conf" || die "unable to create config file: $main_conf";
print CONF "udev_root=\"$udev_root\"\n";
print CONF "udev_db=\"$udev_db\"\n";
print CONF "udev_rules=\"$conf_tmp\"\n";
-print CONF "default_mode=\"0600\"\n";
+print CONF "default_mode=\"0660\"\n";
print CONF "default_owner=\"root\"\n";
print CONF "default_group=\"root\"\n";
close CONF;