sepolicy-legacy: Restore fm radio permissions for system_app

Commit I40a4f68eb8ded948d44653d3bc0209bbb3d9ef35 removed these
permissions because the QCOM FM2 app was relabelled as platform_app
which made these rules unnecessary, but there are also device which
use the AOSP FMRadio app which was not relabelled.

Restore the permissions to allow the FMRadio app to function properly
again.

Change-Id: Id646aaa3e980f2afa0bf3399902798866c3d5ae1
This commit is contained in:
Arian
2021-09-07 20:39:37 +02:00
parent 2e3d1639f8
commit a3e5797421

View File

@@ -22,10 +22,14 @@
# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# fm_radio app needes open read write on fm_radio_device
allow system_app fm_radio_device:chr_file r_file_perms;
r_dir_file(system_app, fm_data_file);
r_dir_file(system_app, bluetooth_data_file);
r_dir_file(system_app, bt_firmware_file);
set_prop(system_app, ctl_default_prop)
set_prop(system_app, fm_prop)
set_prop(system_app, usf_prop)
allow system_app {