Skip to content

Commit

Permalink
Address comments from previous review
Browse files Browse the repository at this point in the history
Let's list out the individual files, instead of allowing bulk
access to all of /sys/devices/virtual/graphics/fb1

Change-Id: I0b1014dcdfd2284f7bdf759e896782e1b083f386
  • Loading branch information
nickkral committed Jan 3, 2014
1 parent 408a3e2 commit 6263f4f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 3 additions & 1 deletion sepolicy/file_contexts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@
/sys/module/pm_8x60/modes(/.*)? u:object_r:sysfs_mpdecision:s0

# Sysfs files used by surfaceflinger
/sys/devices/virtual/graphics/fb1(/.*)? -- u:object_r:sysfs_surfaceflinger:s0
/sys/devices/virtual/graphics/fb1/hpd -- u:object_r:sysfs_surfaceflinger:s0
/sys/devices/virtual/graphics/fb1/vendor_name -- u:object_r:sysfs_surfaceflinger:s0
/sys/devices/virtual/graphics/fb1/product_description -- u:object_r:sysfs_surfaceflinger:s0

# Sysfs files used by qmuxd
/sys/devices/virtual/smdpkt/smdcntl([0-9])+/open_timeout u:object_r:sysfs_smdcntl_open_timeout:s0
Expand Down
3 changes: 0 additions & 3 deletions sepolicy/ueventd.te
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
allow ueventd { firmware_file wifi_data_file }:dir r_dir_perms;
allow ueventd { firmware_file wifi_data_file }:file r_file_perms;
allow ueventd sysfs_smdcntl_open_timeout:file setattr;

# For /sys/devices/virtual/graphics/fb1/uevent
allow ueventd sysfs_surfaceflinger:file rw_file_perms;

0 comments on commit 6263f4f

Please sign in to comment.