# udev_rules - The name and location of the udev rules file
udev_rules="@configdir@/rules.d"
-# default_mode - set the default mode for all nodes that have no
-# permissions specified
-default_mode="0660"
-
-# default_owner - set the default owner for all nodes that have no
- # permissions specified
-default_owner="root"
-
-# default_group - set the default group for all nodes that have no
- # permissions specified
-default_group="root"
-
# udev_log - set to "yes" if you want logging, else "no"
udev_log="yes"
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=\"0660\"\n";
-print CONF "default_owner=\"root\"\n";
-print CONF "default_group=\"root\"\n";
close CONF;
my $test_num = 1;
The switch to enable/disable logging of udev information
The default value is
.IR yes .
-.TP
-.B default_mode
-The default mode for all nodes where no explicit value is given by a rule.
-The default value is
-.IR 0660 .
-.TP
-.B default_owner
-The default owner for all nodes where no explicit value is given by a rule.
-The default value is
-.IR root .
-.TP
-.B default_group
-The default group for all nodes where no explicitly value is given by a rule.
-The default value is
-.IR root .
-.br
.P
.RI "A sample " udev.conf " file might look like this:
.sp
# udev_log - set to "yes" if you want logging, else "no"
udev_log="yes"
-
-# default_mode - set the default mode for all nodes that have no
-# permissions specified
-default_mode="0660"
-
-# default_owner - set the default owner for all nodes that have no
-# permissions specified
-default_owner="root"
-
-# default_group - set the default group for all nodes that have no
-# permissions specified
-default_group="root"
.fi
.P
The rules for device naming are read from the files located in the
extern char udev_db_path[PATH_MAX+NAME_MAX];
extern char udev_config_filename[PATH_MAX+NAME_MAX];
extern char udev_rules_filename[PATH_MAX+NAME_MAX];
-extern mode_t default_mode;
-extern char default_owner[USER_SIZE];
-extern char default_group[USER_SIZE];
extern int udev_log;
extern int udev_dev_d;
extern int udev_hotplug_d;
char udev_db_path[PATH_MAX+NAME_MAX];
char udev_rules_filename[PATH_MAX+NAME_MAX];
char udev_config_filename[PATH_MAX+NAME_MAX];
-mode_t default_mode;
-char default_owner[USER_SIZE];
-char default_group[USER_SIZE];
int udev_log;
int udev_dev_d;
int udev_hotplug_d;
strcpy(udev_config_filename, UDEV_CONFIG_FILE);
strcpy(udev_rules_filename, UDEV_RULES_FILE);
- strcpy(default_owner, "root");
- strcpy(default_group, "root");
- default_mode = 0660;
-
udev_log = string_is_true(UDEV_LOG_DEFAULT);
udev_dev_d = 1;
continue;
}
- if (strcasecmp(variable, "default_mode") == 0) {
- default_mode = strtol(value, NULL, 8);
- continue;
- }
-
- if (strcasecmp(variable, "default_owner") == 0) {
- strfieldcpy(default_owner, value);
- continue;
- }
-
- if (strcasecmp(variable, "default_group") == 0) {
- strfieldcpy(default_group, value);
- continue;
- }
-
if (strcasecmp(variable, "udev_log") == 0) {
udev_log = string_is_true(value);
continue;
else if (strncmp(udev->devpath, "/class/", 7) == 0)
udev->type = 'c';
- udev->mode = default_mode;
- strfieldcpy(udev->owner, default_owner);
- strfieldcpy(udev->group, default_group);
+ udev->mode = 0660;
+ strcpy(udev->owner, "root");
+ strcpy(udev->group, "root");
}
int kernel_release_satisfactory(int version, int patchlevel, int sublevel)