diff --git a/public/app.te b/public/app.te index 370f5394ba9fc9fd8da8a1ee69e5b82eece081c2..57b76f172008ce0253e9b9c23b3665e6c088180b 100644 --- a/public/app.te +++ b/public/app.te @@ -252,8 +252,7 @@ allow { appdomain -isolated_app } hal_graphics_allocator:fd use; allow appdomain proc_meminfo:file r_file_perms; # For app fuse. -allow appdomain app_fuse_file:dir rw_dir_perms; -allow appdomain app_fuse_file:file rw_file_perms; +allow appdomain app_fuse_file:file { getattr read append write }; ### ### CTS-specific rules diff --git a/public/system_server.te b/public/system_server.te index ded053dd69a1d46257b95e5ae90930efc7007e47..aa77a7e750a68c11954468e2b0c0deba2f1df611 100644 --- a/public/system_server.te +++ b/public/system_server.te @@ -560,6 +560,8 @@ userdebug_or_eng(` # For AppFuse. allow system_server vold:fd use; allow system_server fuse_device:chr_file { read write ioctl getattr }; +allow system_server app_fuse_file:dir rw_dir_perms; +allow system_server app_fuse_file:file { read write open getattr append }; # For configuring sdcardfs allow system_server configfs:dir { create_dir_perms };