device/qcom/common: Add permissions for mode and modes

Add permissions, owners for /sys/class/graphics/fb0/{mode, modes}
These are meant to be read/written to by hwc.

Change-Id: I43f38b8106ac066b37912a3ebd2af2375f3e7b09
This commit is contained in:
Saurabh Shah 2015-02-25 17:09:29 -08:00 committed by Jake Weinstein
parent 98f88d6286
commit 5a8cc2ab60
1 changed files with 8 additions and 0 deletions

View File

@ -234,6 +234,14 @@ void set_display_node_perms()
snprintf(tmp, sizeof(tmp), "%sfb0/dyn_pu", sys_fb_path);
setPerms(tmp, 0664);
setOwners(tmp, AID_SYSTEM, AID_GRAPHICS);
snprintf(tmp, sizeof(tmp), "%sfb0/modes", sys_fb_path);
setPerms(tmp, 0664);
setOwners(tmp, AID_SYSTEM, AID_GRAPHICS);
snprintf(tmp, sizeof(tmp), "%sfb0/mode", sys_fb_path);
setPerms(tmp, 0664);
setOwners(tmp, AID_SYSTEM, AID_GRAPHICS);
}
static int check_rlim_action()