init: Add permissions for CEC nodes

Change-Id: I220fd52e33690ee6d4de39f121464571c7ce91e0
This commit is contained in:
Naseer Ahmed 2014-07-23 18:13:12 -04:00 committed by Gerrit - the friendly Code Review server
parent a637b108a0
commit f6dbade45d
1 changed files with 12 additions and 0 deletions

View File

@ -168,6 +168,18 @@ void set_display_node_perms()
snprintf(tmp, sizeof(tmp), "%sfb%d/hdcp/tp", sys_fb_path, num);
setPerms(tmp, 0664);
setOwners(tmp, AID_SYSTEM, AID_SYSTEM);
snprintf(tmp, sizeof(tmp), "%sfb%d/cec/enable", sys_fb_path, num);
setPerms(tmp, 0664);
setOwners(tmp, AID_SYSTEM, AID_SYSTEM);
snprintf(tmp, sizeof(tmp), "%sfb%d/cec/logical_addr", sys_fb_path, num);
setPerms(tmp, 0664);
setOwners(tmp, AID_SYSTEM, AID_SYSTEM);
snprintf(tmp, sizeof(tmp), "%sfb%d/cec/rd_msg", sys_fb_path, num);
setPerms(tmp, 0664);
setOwners(tmp, AID_SYSTEM, AID_SYSTEM);
snprintf(tmp, sizeof(tmp), "%sfb%d/cec/wr_msg", sys_fb_path, num);
setPerms(tmp, 0600);
setOwners(tmp, AID_SYSTEM, AID_SYSTEM);
snprintf(tmp, sizeof(tmp), "%sfb%d", dev_fb_path, num);
symlink(tmp, DEV_GFX_HDMI);
break;