From ff4b20ff3310a659f1de9ca70ab5d217059ba661 Mon Sep 17 00:00:00 2001 From: dianlujitao Date: Thu, 19 Jan 2017 11:14:57 +0800 Subject: z2_plus: Address sdcardfs SELinux denials Change-Id: Ibad7a8e1aa4a5ce458f61c7c155943b826817328 --- sepolicy/wcnss_service.te | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sepolicy/wcnss_service.te b/sepolicy/wcnss_service.te index 32252f5..9aeca15 100644 --- a/sepolicy/wcnss_service.te +++ b/sepolicy/wcnss_service.te @@ -4,6 +4,10 @@ allow wcnss_service self:capability { dac_override net_raw }; +r_dir_file(wcnss_service, sdcardfs); +r_dir_file(wcnss_service, media_rw_data_file); +allow wcnss_service sdcardfs:file append; +allow wcnss_service media_rw_data_file:file append; get_prop(wcnss_service, diag_prop); allow wcnss_service diag_device:chr_file { read write }; allow wcnss_service diag_device:chr_file open; -- cgit v1.2.3