https://bugzilla.novell.com/show_bug.cgi?id=808319
https://bugzilla.novell.com/show_bug.cgi?id=808319#c83
--- Comment #83 from Daniel Dadap 2013-08-30 21:57:29 UTC ---
I don't think the devname MODULE_ALIASes will work:
static int output_devname(struct depmod *depmod, FILE *out)
{
size_t i;
fputs("# Device nodes to trigger on-demand module loading.\n", out);
for (i = 0; i < depmod->modules.count; i++) {
const struct mod *mod = depmod->modules.array[i];
struct kmod_list *l;
const char *devname = NULL;
char type = '\0';
unsigned int major = 0, minor = 0;
kmod_list_foreach(l, mod->info_list) {
const char *key = kmod_module_info_get_key(l);
const char *value = kmod_module_info_get_value(l);
unsigned int maj, min;
if (!streq(key, "alias"))
continue;
if (strstartswith(value, "devname:"))
devname = value + sizeof("devname:") - 1;
else if (sscanf(value, "char-major-%u-%u",
&maj, &min) == 2) {
type = 'c';
major = maj;
minor = min;
} else if (sscanf(value, "block-major-%u-%u",
&maj, &min) == 2) {
type = 'b';
major = maj;
minor = min;
}
if (type != '\0' && devname != NULL) {
fprintf(out, "%s %s %c%u:%u\n", mod->modname,
devname, type, major, minor);
break;
}
}
}
return 0;
}
It doesn't look like this supports more than one device file per kernel module.
Indeed, I tried adding MODULE_ALIAS lines, and only one devname line was
created after recompiling the kernel module and running depmod, despite having
several devname aliases in the kernel module.
As for the ACLs only being applied for users logged into the local active
console, that may be pretty inconvenient for CUDA users. Stefan/Ludwig, can I
bring you into a discussion with our CUDA group about this?
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.