Adding in ioctl access to address hal_graphics... denials.

denied { ioctl } for path="/dev/video3" dev="tmpfs" ino=20567
ioctlcmd=5613 scontext=u:r:hal_graphics_composer_default:s0
tcontext=u:object_r:video_device:s0 tclass=chr_file

Bug: 37671626
Test: The denial no longer appears during camera operation
Change-Id: I5bc3a513190169e7e20c912318bc085f83901833
This commit is contained in:
Max Bires
2017-05-02 14:18:39 -07:00
parent 0b02f792a4
commit 917cf47851

View File

@@ -12,7 +12,7 @@ allow hal_graphics_composer_default persist_file:dir search;
r_dir_file(hal_graphics_composer_default, sysfs_leds)
# TODO(b/37666508): Remove the following line upon resolution of the bug
allow hal_graphics_composer_default video_device:chr_file { open read write };
allow hal_graphics_composer_default video_device:chr_file rw_file_perms;
# HWC_UeventThread
allow hal_graphics_composer_default self:netlink_kobject_uevent_socket create_socket_perms_no_ioctl;