From 5a8cc2ab6074150b14c91ea604ff1a55908067da Mon Sep 17 00:00:00 2001 From: Saurabh Shah Date: Wed, 25 Feb 2015 17:09:29 -0800 Subject: [PATCH] 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 --- init/init_msm.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/init/init_msm.c b/init/init_msm.c index 248841d9..c49611c9 100644 --- a/init/init_msm.c +++ b/init/init_msm.c @@ -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()