Merge "Fixed boot issue selinux policy."

This commit is contained in:
TreeHugger Robot
2017-05-01 21:09:50 +00:00
committed by Android (Google) Code Review
2 changed files with 8 additions and 3 deletions

View File

@@ -9,6 +9,7 @@ allow rmt_storage self:capability { net_bind_service setgid setpcap setuid };
allow rmt_storage modem_block_device:blk_file rw_file_perms;
allow rmt_storage uio_device:chr_file rw_file_perms;
allow rmt_storage block_device:dir search;
allow rmt_storage sysfs_uio:dir r_dir_perms;
allow rmt_storage sysfs_uio:lnk_file r_file_perms;

View File

@@ -4,7 +4,11 @@ type sensors_exec, exec_type, vendor_file_type, file_type;
init_daemon_domain(sensors)
allow sensors self:capability { setgid setuid };
allow sensors self:capability {
setuid
setgid
net_bind_service
};
allow sensors self:socket create_socket_perms;
allowxperm sensors self:socket ioctl msm_sock_ipc_ioctls;
@@ -12,10 +16,10 @@ allowxperm sensors self:socket ioctl msm_sock_ipc_ioctls;
allow sensors persist_sensors_file:dir r_dir_perms;
allow sensors persist_sensors_file:file rw_file_perms;
allow sensors persist_sensors_file:dir r_dir_perms;
allow sensors persist_file:dir getattr;
allow sensors persist_file:dir { getattr search };
allow sensors system_file:dir r_dir_perms;
allow sensors sensors_device:chr_file r_file_perms;
allow sensors sensors_device:chr_file rw_file_perms;
r_dir_file(sensors, sysfs_msm_subsys)