diff --git a/private/file_contexts b/private/file_contexts index d5cf3f781372b536885de36cf2600e943ab2005f..bd111b808ae1efe3a2a63012a09d7aed0b46b94c 100644 --- a/private/file_contexts +++ b/private/file_contexts @@ -92,6 +92,7 @@ /dev/keychord u:object_r:keychord_device:s0 /dev/kmem u:object_r:kmem_device:s0 /dev/log(/.*)? u:object_r:log_device:s0 +/dev/loop-control u:object_r:loop_control_device:s0 /dev/mem u:object_r:kmem_device:s0 /dev/modem.* u:object_r:radio_device:s0 /dev/mtd(/.*)? u:object_r:mtd_device:s0 diff --git a/public/device.te b/public/device.te index 53414e2cf518915676d2665c10e95c707916eb19..4a3bec91f0bd14a6fd2bce9b5c2d05ca06d23833 100644 --- a/public/device.te +++ b/public/device.te @@ -12,6 +12,7 @@ type block_device, dev_type; type camera_device, dev_type; type dm_device, dev_type; type keychord_device, dev_type; +type loop_control_device, dev_type; type loop_device, dev_type; type pmsg_device, dev_type, mlstrustedobject; type radio_device, dev_type; diff --git a/public/vold.te b/public/vold.te index 7e8be29f6e4e9fb22f4402dc9a530d414bfb127e..88de4fda70ae777d9957bd1c9b95057c0f04e09b 100644 --- a/public/vold.te +++ b/public/vold.te @@ -64,6 +64,7 @@ allow vold self:capability { net_admin dac_override mknod sys_admin chown fowner allow vold self:netlink_kobject_uevent_socket create_socket_perms_no_ioctl; allow vold app_data_file:dir search; allow vold app_data_file:file rw_file_perms; +allow vold loop_control_device:chr_file rw_file_perms; allow vold loop_device:blk_file { create setattr unlink rw_file_perms }; allow vold vold_device:blk_file { create setattr unlink rw_file_perms }; allow vold dm_device:chr_file rw_file_perms;