system/corennnnn
Revision | d122853eb8eb9523b15f4883b97f3149ff5b3abe (tree) |
---|---|
Zeit | 2010-04-14 19:34:35 |
Autor | Chia-I Wu <olvaffe@gmai...> |
Commiter | Chih-Wei Huang |
init: Create subdirectory for drm subsystem.
@@ -113,6 +113,8 @@ static struct perms_ devperms[] = { | ||
113 | 113 | { "/dev/tty0", 0660, AID_ROOT, AID_SYSTEM, 0 }, |
114 | 114 | { "/dev/graphics/", 0660, AID_ROOT, AID_GRAPHICS, 1 }, |
115 | 115 | { "/dev/msm_hw3dm", 0660, AID_SYSTEM, AID_GRAPHICS, 0 }, |
116 | + /* perm 0666 !? */ | |
117 | + { "/dev/dri/", 0666, AID_ROOT, AID_GRAPHICS, 1 }, | |
116 | 118 | { "/dev/input/", 0660, AID_ROOT, AID_INPUT, 1 }, |
117 | 119 | { "/dev/eac", 0660, AID_ROOT, AID_AUDIO, 0 }, |
118 | 120 | { "/dev/cam", 0660, AID_ROOT, AID_CAMERA, 0 }, |
@@ -399,6 +401,9 @@ static void handle_device_event(struct uevent *uevent) | ||
399 | 401 | if(!strncmp(uevent->subsystem, "graphics", 8)) { |
400 | 402 | base = "/dev/graphics/"; |
401 | 403 | mkdir(base, 0755); |
404 | + } else if (!strncmp(uevent->subsystem, "drm", 3)) { | |
405 | + base = "/dev/dri/"; | |
406 | + mkdir(base, 0755); | |
402 | 407 | } else if (!strncmp(uevent->subsystem, "oncrpc", 6)) { |
403 | 408 | base = "/dev/oncrpc/"; |
404 | 409 | mkdir(base, 0755); |