xref: /aosp_15_r20/system/sepolicy/prebuilts/api/202404/private/app.te (revision e4a36f4174b17bbab9dc043f4a65dc8d87377290)
1# /proc/net access.
2# TODO(b/9496886) Audit access for removal.
3# proc_net access for the negated domains below is granted (or not) in their
4# individual .te files.
5r_dir_file({
6  appdomain
7  -ephemeral_app
8  -isolated_app_all
9  -platform_app
10  -priv_app
11  -shell
12  -sdk_sandbox_all
13  -system_app
14  -untrusted_app_all
15}, proc_net_type)
16# audit access for all these non-core app domains.
17userdebug_or_eng(`
18  auditallow {
19    appdomain
20    -ephemeral_app
21    -isolated_app_all
22    -platform_app
23    -priv_app
24    -shell
25    -su
26    -sdk_sandbox_all
27    -system_app
28    -untrusted_app_all
29  } proc_net_type:{ dir file lnk_file } { getattr open read };
30')
31
32# Allow apps to read the Test Harness Mode property. This property is used in
33# the implementation of ActivityManager.isDeviceInTestHarnessMode()
34get_prop(appdomain, test_harness_prop)
35
36get_prop(appdomain, boot_status_prop)
37get_prop(appdomain, dalvik_config_prop_type)
38get_prop(appdomain, media_config_prop)
39get_prop(appdomain, packagemanager_config_prop)
40get_prop(appdomain, radio_control_prop)
41get_prop(appdomain, surfaceflinger_color_prop)
42get_prop(appdomain, systemsound_config_prop)
43get_prop(appdomain, telephony_config_prop)
44get_prop(appdomain, userspace_reboot_config_prop)
45get_prop(appdomain, vold_config_prop)
46get_prop(appdomain, adbd_config_prop)
47get_prop(appdomain, dck_prop)
48get_prop(appdomain, persist_wm_debug_prop)
49get_prop(appdomain, persist_sysui_builder_extras_prop)
50get_prop(appdomain, persist_sysui_ranking_update_prop)
51
52# Allow the heap dump ART plugin to the count of sessions waiting for OOME
53get_prop(appdomain, traced_oome_heap_session_count_prop)
54
55# Allow to read ro.vendor.camera.extensions.enabled
56get_prop(appdomain, camera2_extensions_prop)
57
58# Allow to ro.camerax.extensions.enabled
59get_prop(appdomain, camerax_extensions_prop)
60
61# Prevent apps from causing presubmit failures.
62# Apps can cause selinux denials by accessing CE storage
63# and/or external storage. In either case, the selinux denial is
64# not the cause of the failure, but just a symptom that
65# storage isn't ready. Many apps handle the failure appropriately.
66#
67# Apps cannot access external storage before it becomes available.
68dontaudit appdomain storage_stub_file:dir getattr;
69# Attempts to write to system_data_file is generally a sign
70# that apps are attempting to access encrypted storage before
71# the ACTION_USER_UNLOCKED intent is delivered. Apps are not
72# allowed to write to CE storage before it's available.
73# Attempting to do so will be blocked by both selinux and unix
74# permissions.
75dontaudit appdomain system_data_file:dir write;
76# Apps should not be reading vendor-defined properties.
77dontaudit appdomain vendor_default_prop:file read;
78
79# Access to /mnt/media_rw/<vol> (limited by DAC to apps with external_storage gid)
80allow { appdomain -sdk_sandbox_all } mnt_media_rw_file:dir search;
81
82# allow apps to use UDP sockets provided by the system server but not
83# modify them other than to connect
84allow appdomain system_server:udp_socket {
85        connect getattr read recvfrom sendto write getopt setopt };
86
87neverallow appdomain system_server:udp_socket {
88        accept append bind create ioctl listen lock name_bind
89        relabelfrom relabelto setattr shutdown };
90
91# Transition to a non-app domain.
92# Exception for the shell and su domains, can transition to runas, etc.
93# Exception for crash_dump to allow for app crash reporting.
94# Exception for renderscript binaries (/system/bin/bcc, /system/bin/ld.mc)
95# to allow renderscript to create privileged executable files.
96# Exception for virtualizationmanager to allow running VMs as child processes.
97neverallow { appdomain -shell userdebug_or_eng(`-su') }
98    { domain -appdomain -crash_dump -rs -virtualizationmanager }:process { transition };
99neverallow { appdomain -shell userdebug_or_eng(`-su') }
100    { domain -appdomain }:process { dyntransition };
101
102# Don't allow regular apps access to storage configuration properties.
103neverallow { appdomain -mediaprovider_app } storage_config_prop:file no_rw_file_perms;
104
105# Don't allow apps reading /system/etc/font_fallback.xml
106dontaudit appdomain system_font_fallback_file:file no_rw_file_perms;
107neverallow appdomain system_font_fallback_file:file no_rw_file_perms;
108
109# Allow to read sendbug.preferred.domain
110get_prop(appdomain, sendbug_config_prop)
111
112# Allow to read graphics related properties.
113get_prop(appdomain, graphics_config_prop)
114
115# Allow to read persist.config.calibration_fac
116get_prop(appdomain, camera_calibration_prop)
117
118# Allow to read db.log.detailed, db.log.slow_query_threshold*
119get_prop(appdomain, sqlite_log_prop)
120
121# Allow to read system_user_mode_emulation_prop, which is used by UserManager.java
122userdebug_or_eng(`get_prop(appdomain, system_user_mode_emulation_prop)')
123
124# Allow font file read by apps.
125allow appdomain font_data_file:file r_file_perms;
126allow appdomain font_data_file:dir r_dir_perms;
127
128# Enter /data/misc/apexdata/
129allow appdomain apex_module_data_file:dir search;
130# Read /data/misc/apexdata/com.android.art, execute signed AOT artifacts.
131allow appdomain apex_art_data_file:dir r_dir_perms;
132allow appdomain apex_art_data_file:file rx_file_perms;
133
134# Allow access to tombstones if an fd to one is given to you.
135# An app cannot open the tombstone itself because it lacks `open`.
136allow appdomain tombstone_data_file:file { getattr read };
137neverallow { appdomain -shell } tombstone_data_file:file ~{ getattr read };
138
139# Execute the shell or other system executables.
140allow { appdomain -ephemeral_app -sdk_sandbox_all } shell_exec:file rx_file_perms;
141allow { appdomain -ephemeral_app -sdk_sandbox_all } toolbox_exec:file rx_file_perms;
142not_full_treble(`allow { appdomain -ephemeral_app -sdk_sandbox_all } vendor_file:file x_file_perms;')
143
144# Allow apps access to /vendor/app except for privileged
145# apps which cannot be in /vendor.
146r_dir_file({ appdomain -ephemeral_app -sdk_sandbox_all }, vendor_app_file)
147allow { appdomain -ephemeral_app -sdk_sandbox_all } vendor_app_file:file execute;
148
149# Allow apps to read microdroid related files in vendor partition for CTS purpose.
150r_dir_file({ appdomain -isolated_app_all -ephemeral_app -sdk_sandbox_all }, vendor_microdroid_file)
151
152# Perform binder IPC to sdk sandbox.
153binder_call(appdomain, sdk_sandbox_all)
154
155# Allow apps to communicate via binder with virtual camera service.
156binder_call(appdomain, virtual_camera)
157
158# Allow access to external storage; we have several visible mount points under /storage
159# and symlinks to primary storage at places like /storage/sdcard0 and /mnt/user/0/primary
160allow { appdomain -isolated_app_all -ephemeral_app -sdk_sandbox_all } storage_file:dir r_dir_perms;
161allow { appdomain -isolated_app_all -ephemeral_app -sdk_sandbox_all } storage_file:lnk_file r_file_perms;
162allow { appdomain -isolated_app_all -ephemeral_app -sdk_sandbox_all } mnt_user_file:dir r_dir_perms;
163allow { appdomain -isolated_app_all -ephemeral_app -sdk_sandbox_all } mnt_user_file:lnk_file r_file_perms;
164
165# Read/write visible storage
166allow { appdomain -isolated_app_all -ephemeral_app -sdk_sandbox_all } { sdcard_type fuse }:dir create_dir_perms;
167allow { appdomain -isolated_app_all -ephemeral_app -sdk_sandbox_all } { sdcard_type fuse }:file create_file_perms;
168# This should be removed if sdcardfs is modified to alter the secontext for its
169# accesses to the underlying FS.
170allow { appdomain -isolated_app_all -ephemeral_app -sdk_sandbox_all } media_rw_data_file:dir create_dir_perms;
171allow { appdomain -isolated_app_all -ephemeral_app -sdk_sandbox_all } media_rw_data_file:file create_file_perms;
172
173# Allow apps to use the USB Accessory interface.
174# http://developer.android.com/guide/topics/connectivity/usb/accessory.html
175#
176# USB devices are first opened by the system server (USBDeviceManagerService)
177# and the file descriptor is passed to the right Activity via binder.
178allow { appdomain -isolated_app_all -ephemeral_app -sdk_sandbox_all } usb_device:chr_file { read write getattr ioctl };
179allow { appdomain -isolated_app_all -ephemeral_app -sdk_sandbox_all } usbaccessory_device:chr_file { read write getattr };
180
181#logd access
182control_logd({ appdomain -ephemeral_app -sdk_sandbox_all })
183
184# application inherit logd write socket (urge is to deprecate this long term)
185allow { appdomain -isolated_app_all -ephemeral_app -sdk_sandbox_all } keystore:keystore2_key { delete use get_info rebind update };
186
187allow { appdomain -isolated_app_all -ephemeral_app -sdk_sandbox_all } keystore_maintenance_service:service_manager find;
188
189use_keystore({ appdomain -isolated_app_all -ephemeral_app -sdk_sandbox_all })
190
191use_credstore({ appdomain -isolated_app_all -ephemeral_app -sdk_sandbox_all })
192
193# For app fuse.
194pdx_client({ appdomain -isolated_app_all -ephemeral_app -sdk_sandbox_all }, display_client)
195pdx_client({ appdomain -isolated_app_all -ephemeral_app -sdk_sandbox_all }, display_manager)
196pdx_client({ appdomain -isolated_app_all -ephemeral_app -sdk_sandbox_all }, display_vsync)
197pdx_client({ appdomain -isolated_app_all -ephemeral_app -sdk_sandbox_all }, performance_client)
198# Apps do not directly open the IPC socket for bufferhubd.
199pdx_use({ appdomain -isolated_app_all -ephemeral_app -sdk_sandbox_all }, bufferhub_client)
200
201# Apps receive an open tun fd from the framework for
202# device traffic. Do not allow untrusted app to directly open tun_device
203allow { appdomain -isolated_app_all -ephemeral_app -sdk_sandbox_all } tun_device:chr_file { read write getattr append ioctl };
204allowxperm { appdomain -isolated_app_all -ephemeral_app -sdk_sandbox_all } tun_device:chr_file ioctl TUNGETIFF;
205
206
207# WebView and other application-specific JIT compilers
208allow appdomain self:process execmem;
209
210allow appdomain { ashmem_device ashmem_libcutils_device }:chr_file execute;
211
212# Receive and use open file descriptors inherited from zygote.
213allow appdomain zygote:fd use;
214
215# Receive and use open file descriptors inherited from app zygote.
216allow appdomain app_zygote:fd use;
217
218# gdbserver for ndk-gdb reads the zygote.
219# valgrind needs mmap exec for zygote
220allow appdomain zygote_exec:file rx_file_perms;
221
222# Notify zygote of death;
223allow appdomain zygote:process sigchld;
224
225# Read /data/dalvik-cache.
226allow appdomain dalvikcache_data_file:dir { search getattr };
227allow appdomain dalvikcache_data_file:file r_file_perms;
228
229# Read the /sdcard and /mnt/sdcard symlinks
230allow { appdomain -isolated_app_all -sdk_sandbox_all } rootfs:lnk_file r_file_perms;
231allow { appdomain -isolated_app_all -sdk_sandbox_all } tmpfs:lnk_file r_file_perms;
232
233# Search /storage/emulated tmpfs mount.
234allow { appdomain -sdk_sandbox_all } tmpfs:dir r_dir_perms;
235
236# Notify zygote of the wrapped process PID when using --invoke-with.
237allow appdomain zygote:fifo_file write;
238
239userdebug_or_eng(`
240  # Allow apps to create and write method traces in /data/misc/trace.
241  allow appdomain method_trace_data_file:dir w_dir_perms;
242  allow appdomain method_trace_data_file:file { create w_file_perms };
243')
244
245# Notify shell and adbd of death when spawned via runas for ndk-gdb.
246allow appdomain shell:process sigchld;
247allow appdomain adbd:process sigchld;
248
249# child shell or gdbserver pty access for runas.
250allow appdomain devpts:chr_file { getattr read write ioctl };
251
252# Use pipes and sockets provided by system_server via binder or local socket.
253allow appdomain system_server:fd use;
254allow appdomain system_server:fifo_file rw_file_perms;
255allow appdomain system_server:unix_stream_socket { read write setopt getattr getopt shutdown };
256allow appdomain system_server:tcp_socket { read write getattr getopt shutdown };
257
258# For AppFuse.
259allow appdomain vold:fd use;
260
261# Communication with other apps via fifos
262allow appdomain appdomain:fifo_file rw_file_perms;
263
264# Communicate with surfaceflinger.
265allow appdomain surfaceflinger:unix_stream_socket { read write setopt getattr getopt shutdown };
266
267# App sandbox file accesses.
268allow { appdomain -isolated_app_all -mlstrustedsubject -sdk_sandbox_all } { app_data_file privapp_data_file }:dir create_dir_perms;
269allow { appdomain -isolated_app_all -mlstrustedsubject -sdk_sandbox_all } { app_data_file privapp_data_file }:file create_file_perms;
270allowxperm { appdomain -isolated_app_all -mlstrustedsubject -sdk_sandbox_all } { app_data_file privapp_data_file }:file ioctl FS_IOC_MEASURE_VERITY;
271
272# Access via already open fds is ok even for mlstrustedsubject.
273allow { appdomain -isolated_app_all -sdk_sandbox_all } { app_data_file privapp_data_file system_app_data_file }:file { getattr map read write };
274
275# Access open fds from SDK sandbox
276allow appdomain sdk_sandbox_data_file:file { getattr read };
277
278# Traverse into expanded storage
279allow appdomain mnt_expand_file:dir r_dir_perms;
280
281# Keychain and user-trusted credentials
282r_dir_file(appdomain, keychain_data_file)
283allow appdomain misc_user_data_file:dir r_dir_perms;
284allow appdomain misc_user_data_file:file r_file_perms;
285
286# TextClassifier
287r_dir_file({ appdomain -isolated_app_all }, textclassifier_data_file)
288
289# Access to OEM provided data and apps
290allow appdomain oemfs:dir r_dir_perms;
291allow appdomain oemfs:file rx_file_perms;
292
293allow appdomain system_file:file x_file_perms;
294
295# Renderscript needs the ability to read directories on /system
296allow appdomain system_file:dir r_dir_perms;
297allow appdomain system_file:lnk_file { getattr open read };
298# Renderscript specific permissions to open /system/vendor/lib64.
299not_full_treble(`
300    allow appdomain vendor_file_type:dir r_dir_perms;
301    allow appdomain vendor_file_type:lnk_file { getattr open read };
302')
303
304full_treble_only(`
305    # For looking up Renderscript vendor drivers
306    allow { appdomain -isolated_app_all } vendor_file:dir { open read };
307')
308
309# Allow apps access to /vendor/overlay
310r_dir_file(appdomain, vendor_overlay_file)
311
312# Allow apps access to /vendor/framework
313# for vendor provided libraries.
314r_dir_file(appdomain, vendor_framework_file)
315
316# Allow apps read / execute access to vendor public libraries.
317allow appdomain {vendor_public_framework_file vendor_public_lib_file}:dir r_dir_perms;
318allow appdomain {vendor_public_framework_file vendor_public_lib_file}:file { execute read open getattr map };
319
320# Read/write wallpaper file (opened by system).
321allow appdomain wallpaper_file:file { getattr read write map };
322
323# Read/write cached ringtones (opened by system).
324allow appdomain ringtone_file:file { getattr read write map };
325
326# Read ShortcutManager icon files (opened by system).
327allow appdomain shortcut_manager_icons:file { getattr read map };
328
329# Read icon file (opened by system).
330allow appdomain icon_file:file { getattr read map };
331
332# Old stack dumping scheme : append to a global trace file (/data/anr/traces.txt).
333#
334# TODO: All of these permissions except for anr_data_file:file append can be
335# withdrawn once we've switched to the new stack dumping mechanism, see b/32064548
336# and the rules below.
337allow appdomain anr_data_file:dir search;
338allow appdomain anr_data_file:file { open append };
339
340# New stack dumping scheme : request an output FD from tombstoned via a unix
341# domain socket.
342#
343# Allow apps to connect and write to the tombstoned java trace socket in
344# order to dump their traces. Also allow them to append traces to pipes
345# created by dumptrace. (Also see the rules below where they are given
346# additional permissions to dumpstate pipes for other aspects of bug report
347# creation).
348unix_socket_connect(appdomain, tombstoned_java_trace, tombstoned)
349allow appdomain tombstoned:fd use;
350allow appdomain dumpstate:fifo_file append;
351allow appdomain incidentd:fifo_file append;
352
353# Allow apps to send dump information to dumpstate
354allow appdomain dumpstate:fd use;
355allow appdomain dumpstate:unix_stream_socket { read write getopt getattr shutdown };
356allow appdomain dumpstate:fifo_file { write getattr };
357allow appdomain shell_data_file:file { write getattr };
358
359# Allow apps to send dump information to incidentd
360allow appdomain incidentd:fd use;
361allow appdomain incidentd:fifo_file { write getattr };
362
363# Allow apps to send information to statsd socket.
364unix_socket_send(appdomain, statsdw, statsd)
365
366# Write profiles /data/misc/profiles
367allow appdomain user_profile_root_file:dir search;
368allow appdomain user_profile_data_file:dir w_dir_perms;
369allow appdomain user_profile_data_file:file create_file_perms;
370
371# Allow writing performance tracing data into the perfetto traced daemon.
372# Needed for java heap graph ART plugin (perfetto_hprof).
373# The perfetto profiling daemon will check for the specific application's
374# opt-in/opt-out.
375perfetto_producer(appdomain)
376
377# Send heap dumps to system_server via an already open file descriptor
378# % adb shell am set-watch-heap com.android.systemui 1048576
379# % adb shell dumpsys procstats --start-testing
380# debuggable builds only.
381userdebug_or_eng(`
382  allow appdomain heapdump_data_file:file append;
383')
384
385# Grant GPU access to all processes started by Zygote.
386# They need that to render the standard UI.
387allow { appdomain -isolated_app_all } gpu_device:chr_file rw_file_perms;
388allow { appdomain -isolated_app_all } gpu_device:dir r_dir_perms;
389allow { appdomain -isolated_app_all } sysfs_gpu:file r_file_perms;
390
391
392# Use the Binder.
393binder_use(appdomain)
394# Perform binder IPC to binder services.
395binder_call(appdomain, binderservicedomain)
396# Perform binder IPC to other apps.
397binder_call(appdomain, appdomain)
398# Perform binder IPC to ephemeral apps.
399binder_call(appdomain, ephemeral_app)
400# Perform binder IPC to gpuservice.
401binder_call({ appdomain -isolated_app_all }, gpuservice)
402
403# Talk with graphics composer fences
404allow appdomain hal_graphics_composer:fd use;
405
406# Already connected, unnamed sockets being passed over some other IPC
407# hence no sock_file or connectto permission. This appears to be how
408# Chrome works, may need to be updated as more apps using isolated services
409# are examined.
410allow appdomain appdomain:unix_stream_socket { getopt getattr read write shutdown };
411
412# Backup ability for every app. BMS opens and passes the fd
413# to any app that has backup ability. Hence, no open permissions here.
414allow appdomain backup_data_file:file { read write getattr map };
415allow appdomain cache_backup_file:file { read write getattr map };
416allow appdomain cache_backup_file:dir getattr;
417# Backup ability using 'adb backup'
418allow appdomain system_data_file:lnk_file r_file_perms;
419allow appdomain system_data_file:file { getattr read map };
420
421# Allow read/stat of /data/media files passed by Binder or local socket IPC.
422allow { appdomain -isolated_app_all -sdk_sandbox_all } media_rw_data_file:file { read getattr };
423
424# Read and write /data/data/com.android.providers.telephony files passed over Binder.
425allow { appdomain -isolated_app_all } radio_data_file:file { read write getattr };
426
427# For art.
428allow appdomain dalvikcache_data_file:file execute;
429allow appdomain dalvikcache_data_file:lnk_file r_file_perms;
430
431# Allow any app to read shared RELRO files.
432allow appdomain shared_relro_file:dir search;
433allow appdomain shared_relro_file:file r_file_perms;
434
435# Allow apps to read/execute installed binaries
436allow appdomain apk_data_file:dir { open getattr read search ioctl lock };
437allow appdomain apk_data_file:file { getattr open read ioctl lock map x_file_perms };
438
439# /data/resource-cache
440allow appdomain resourcecache_data_file:file r_file_perms;
441allow appdomain resourcecache_data_file:dir r_dir_perms;
442
443# logd access
444read_logd(appdomain)
445
446allow appdomain zygote:unix_dgram_socket write;
447
448allow appdomain console_device:chr_file { read write };
449
450# only allow unprivileged socket ioctl commands
451allowxperm { appdomain -bluetooth } self:{ rawip_socket tcp_socket udp_socket }
452  ioctl { unpriv_sock_ioctls unpriv_tty_ioctls };
453
454allow { appdomain -isolated_app_all } ion_device:chr_file r_file_perms;
455allow { appdomain -isolated_app_all } dmabuf_system_heap_device:chr_file r_file_perms;
456allow { appdomain -isolated_app_all } dmabuf_system_secure_heap_device:chr_file r_file_perms;
457
458# Allow AAudio apps to use shared memory file descriptors from the HAL
459allow { appdomain -isolated_app_all } hal_audio:fd use;
460
461# Allow app to access shared memory created by camera HAL1
462allow { appdomain -isolated_app_all } hal_camera:fd use;
463
464# Allow apps to access shared memory file descriptor from the tuner HAL
465allow {appdomain -isolated_app_all} hal_tv_tuner_server:fd use;
466
467# RenderScript always-passthrough HAL
468allow { appdomain -isolated_app_all } hal_renderscript_hwservice:hwservice_manager find;
469allow appdomain same_process_hal_file:file { execute read open getattr map };
470
471# TODO: switch to meminfo service
472allow appdomain proc_meminfo:file r_file_perms;
473
474# For app fuse.
475allow appdomain app_fuse_file:file { getattr read append write map };
476
477###
478### CTS-specific rules
479###
480
481# For cts/tests/tests/permission/src/android/permission/cts/FileSystemPermissionTest.java.
482# testRunAsHasCorrectCapabilities
483allow appdomain runas_exec:file getattr;
484# Others are either allowed elsewhere or not desired.
485
486# Connect to adbd and use a socket transferred from it.
487# This is used for e.g. adb backup/restore.
488allow appdomain adbd:unix_stream_socket connectto;
489allow appdomain adbd:fd use;
490allow appdomain adbd:unix_stream_socket { getattr getopt ioctl read write shutdown };
491
492allow appdomain cache_file:dir getattr;
493
494# Allow apps to run with asanwrapper.
495with_asan(`allow appdomain asanwrapper_exec:file rx_file_perms;')
496
497# Read access to FDs from the DropboxManagerService.
498allow appdomain dropbox_data_file:file { getattr read };
499
500# Read tmpfs types from these processes.
501allow appdomain audioserver_tmpfs:file { getattr map read write };
502allow appdomain system_server_tmpfs:file { getattr map read write };
503allow appdomain zygote_tmpfs:file { map read };
504
505# Sensitive app domains are not allowed to execute from /data
506# to prevent persistence attacks and ensure all code is executed
507# from read-only locations.
508neverallow {
509  bluetooth
510  isolated_app_all
511  nfc
512  radio
513  shared_relro
514  sdk_sandbox_all
515  system_app
516} {
517  data_file_type
518  -apex_art_data_file
519  -dalvikcache_data_file
520  -system_data_file # shared libs in apks
521  -apk_data_file
522}:file no_x_file_perms;
523
524# Don't allow apps access to any of the following character devices.
525neverallow appdomain {
526    audio_device
527    camera_device
528    dm_device
529    radio_device
530    rpmsg_device
531}:chr_file { read write };
532
533# Block video device access for all apps except the DeviceAsWebcam Service which
534# needs access to /dev/video* for interfacing with the host
535neverallow {
536    appdomain
537    -device_as_webcam
538} video_device:chr_file { read write };
539
540# Prevent calling inotify on APKs. This can be used as a side channel
541# to observer app launches, so it must be disallowed. b/231587164
542# Gate by targetSdkVersion to avoid breaking existing apps.
543neverallow {
544  appdomain
545  -untrusted_app_25
546  -untrusted_app_27
547  -untrusted_app_29
548  -untrusted_app_30
549  -untrusted_app_32
550} apk_data_file:dir { watch watch_reads };
551neverallow {
552  appdomain
553  -untrusted_app_25
554  -untrusted_app_27
555  -untrusted_app_29
556  -untrusted_app_30
557  -untrusted_app_32
558} apk_data_file:file { watch watch_reads };
559