• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

system/corennnnn


Commit MetaInfo

Revisiond122853eb8eb9523b15f4883b97f3149ff5b3abe (tree)
Zeit2010-04-14 19:34:35
AutorChia-I Wu <olvaffe@gmai...>
CommiterChih-Wei Huang

Log Message

init: Create subdirectory for drm subsystem.

Ändern Zusammenfassung

Diff

--- a/init/devices.c
+++ b/init/devices.c
@@ -113,6 +113,8 @@ static struct perms_ devperms[] = {
113113 { "/dev/tty0", 0660, AID_ROOT, AID_SYSTEM, 0 },
114114 { "/dev/graphics/", 0660, AID_ROOT, AID_GRAPHICS, 1 },
115115 { "/dev/msm_hw3dm", 0660, AID_SYSTEM, AID_GRAPHICS, 0 },
116+ /* perm 0666 !? */
117+ { "/dev/dri/", 0666, AID_ROOT, AID_GRAPHICS, 1 },
116118 { "/dev/input/", 0660, AID_ROOT, AID_INPUT, 1 },
117119 { "/dev/eac", 0660, AID_ROOT, AID_AUDIO, 0 },
118120 { "/dev/cam", 0660, AID_ROOT, AID_CAMERA, 0 },
@@ -399,6 +401,9 @@ static void handle_device_event(struct uevent *uevent)
399401 if(!strncmp(uevent->subsystem, "graphics", 8)) {
400402 base = "/dev/graphics/";
401403 mkdir(base, 0755);
404+ } else if (!strncmp(uevent->subsystem, "drm", 3)) {
405+ base = "/dev/dri/";
406+ mkdir(base, 0755);
402407 } else if (!strncmp(uevent->subsystem, "oncrpc", 6)) {
403408 base = "/dev/oncrpc/";
404409 mkdir(base, 0755);