system/core
Revision | 13ae4f2e509ca6cc3af02c15ab18f257f47c13ae (tree) |
---|---|
Zeit | 2010-02-27 16:12:49 |
Autor | Chia-I Wu <olvaffe@gmai...> |
Commiter | Chih-Wei Huang |
init: Create subdirectory for drm subsystem.
@@ -104,6 +104,8 @@ static struct perms_ devperms[] = { | ||
104 | 104 | { "/dev/alarm", 0664, AID_SYSTEM, AID_RADIO, 0 }, |
105 | 105 | { "/dev/tty0", 0660, AID_ROOT, AID_SYSTEM, 0 }, |
106 | 106 | { "/dev/graphics/", 0660, AID_ROOT, AID_GRAPHICS, 1 }, |
107 | + /* perm 0666 !? */ | |
108 | + { "/dev/dri/", 0666, AID_ROOT, AID_GRAPHICS, 1 }, | |
107 | 109 | { "/dev/hw3d", 0660, AID_SYSTEM, AID_GRAPHICS, 0 }, |
108 | 110 | { "/dev/input/", 0660, AID_ROOT, AID_INPUT, 1 }, |
109 | 111 | { "/dev/eac", 0660, AID_ROOT, AID_AUDIO, 0 }, |
@@ -380,6 +382,9 @@ static void handle_device_event(struct uevent *uevent) | ||
380 | 382 | if(!strncmp(uevent->subsystem, "graphics", 8)) { |
381 | 383 | base = "/dev/graphics/"; |
382 | 384 | mkdir(base, 0755); |
385 | + } else if (!strncmp(uevent->subsystem, "drm", 3)) { | |
386 | + base = "/dev/dri/"; | |
387 | + mkdir(base, 0755); | |
383 | 388 | } else if (!strncmp(uevent->subsystem, "oncrpc", 6)) { |
384 | 389 | base = "/dev/oncrpc/"; |
385 | 390 | mkdir(base, 0755); |