From 2ac0bca2e295d6799b018a7010ea86c11e256d71 Mon Sep 17 00:00:00 2001 From: Andreas Blaesius Date: Sun, 11 Sep 2016 18:04:24 +0200 Subject: sepolicy: MODEM block is defined in espressowifi repo - MODEM block is a radio_device, adjust cpboot-dameon rules for it Change-Id: I3d653318f23d4d3a62365aa4e5f6cd7af66688aa --- sepolicy/cpboot-daemon.te | 2 +- sepolicy/file_contexts | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/sepolicy/cpboot-daemon.te b/sepolicy/cpboot-daemon.te index c1bea9d..b06c8f5 100644 --- a/sepolicy/cpboot-daemon.te +++ b/sepolicy/cpboot-daemon.te @@ -2,7 +2,7 @@ allow cpboot-daemon cbd_device:chr_file create_file_perms; allow cpboot-daemon cgroup:dir { create add_name }; allow cpboot-daemon device:dir { write add_name }; allow cpboot-daemon efs_file:file { read write open }; -allow cpboot-daemon efs_block_device:blk_file r_file_perms; +allow cpboot-daemon radio_device:blk_file r_file_perms; allow cpboot-daemon radio_device:chr_file rw_file_perms; allow cpboot-daemon self:capability setuid; allow cpboot-daemon { block_device efs_file }:dir search; diff --git a/sepolicy/file_contexts b/sepolicy/file_contexts index 1606d79..4ad5625 100644 --- a/sepolicy/file_contexts +++ b/sepolicy/file_contexts @@ -12,6 +12,3 @@ # Radio Data /data/misc/radio(/.*)? u:object_r:radio_data:s0 - -# Block devices -/dev/block/platform/omap/omap_hsmmc.1/by-name/MODEM u:object_r:radio_device:s0 -- cgit v1.1