• 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/core


Commit MetaInfo

Revision13ae4f2e509ca6cc3af02c15ab18f257f47c13ae (tree)
Zeit2010-02-27 16:12:49
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
@@ -104,6 +104,8 @@ static struct perms_ devperms[] = {
104104 { "/dev/alarm", 0664, AID_SYSTEM, AID_RADIO, 0 },
105105 { "/dev/tty0", 0660, AID_ROOT, AID_SYSTEM, 0 },
106106 { "/dev/graphics/", 0660, AID_ROOT, AID_GRAPHICS, 1 },
107+ /* perm 0666 !? */
108+ { "/dev/dri/", 0666, AID_ROOT, AID_GRAPHICS, 1 },
107109 { "/dev/hw3d", 0660, AID_SYSTEM, AID_GRAPHICS, 0 },
108110 { "/dev/input/", 0660, AID_ROOT, AID_INPUT, 1 },
109111 { "/dev/eac", 0660, AID_ROOT, AID_AUDIO, 0 },
@@ -380,6 +382,9 @@ static void handle_device_event(struct uevent *uevent)
380382 if(!strncmp(uevent->subsystem, "graphics", 8)) {
381383 base = "/dev/graphics/";
382384 mkdir(base, 0755);
385+ } else if (!strncmp(uevent->subsystem, "drm", 3)) {
386+ base = "/dev/dri/";
387+ mkdir(base, 0755);
383388 } else if (!strncmp(uevent->subsystem, "oncrpc", 6)) {
384389 base = "/dev/oncrpc/";
385390 mkdir(base, 0755);