Chad Brubaker | 46e5a06 | 2017-01-27 15:53:38 -0800 | [diff] [blame] | 1 | ### |
| 2 | ### neverallow rules for untrusted app domains |
| 3 | ### |
| 4 | |
Nick Kralevich | db5962c | 2017-04-26 16:14:40 -0700 | [diff] [blame] | 5 | define(`all_untrusted_apps',`{ |
| 6 | ephemeral_app |
| 7 | isolated_app |
| 8 | mediaprovider |
Martijn Coenen | e3f1d5a | 2020-01-30 16:52:45 +0100 | [diff] [blame] | 9 | mediaprovider_app |
Nick Kralevich | db5962c | 2017-04-26 16:14:40 -0700 | [diff] [blame] | 10 | untrusted_app |
| 11 | untrusted_app_25 |
Jeff Vander Stoep | 3aa7ca5 | 2018-04-03 11:22:38 -0700 | [diff] [blame] | 12 | untrusted_app_27 |
Jeff Vander Stoep | 1f7ae8e | 2020-01-20 10:14:48 +0100 | [diff] [blame] | 13 | untrusted_app_29 |
Nick Kralevich | db5962c | 2017-04-26 16:14:40 -0700 | [diff] [blame] | 14 | untrusted_app_all |
Nick Kralevich | db5962c | 2017-04-26 16:14:40 -0700 | [diff] [blame] | 15 | }') |
Chad Brubaker | 46e5a06 | 2017-01-27 15:53:38 -0800 | [diff] [blame] | 16 | # Receive or send uevent messages. |
Chad Brubaker | a782a81 | 2017-02-06 10:31:45 -0800 | [diff] [blame] | 17 | neverallow all_untrusted_apps domain:netlink_kobject_uevent_socket *; |
Chad Brubaker | 46e5a06 | 2017-01-27 15:53:38 -0800 | [diff] [blame] | 18 | |
| 19 | # Receive or send generic netlink messages |
Chad Brubaker | a782a81 | 2017-02-06 10:31:45 -0800 | [diff] [blame] | 20 | neverallow all_untrusted_apps domain:netlink_socket *; |
Chad Brubaker | 46e5a06 | 2017-01-27 15:53:38 -0800 | [diff] [blame] | 21 | |
| 22 | # Too much leaky information in debugfs. It's a security |
| 23 | # best practice to ensure these files aren't readable. |
Dan Austin | 55d9096 | 2018-11-29 10:37:18 -0800 | [diff] [blame] | 24 | neverallow all_untrusted_apps { debugfs_type -debugfs_kcov }:file read; |
Jeff Vander Stoep | 0ac2eec | 2019-02-04 10:07:15 -0800 | [diff] [blame] | 25 | neverallow {all_untrusted_apps userdebug_or_eng(`-domain')} debugfs_type:{ file lnk_file } read; |
Chad Brubaker | 46e5a06 | 2017-01-27 15:53:38 -0800 | [diff] [blame] | 26 | |
| 27 | # Do not allow untrusted apps to register services. |
| 28 | # Only trusted components of Android should be registering |
| 29 | # services. |
Chad Brubaker | a782a81 | 2017-02-06 10:31:45 -0800 | [diff] [blame] | 30 | neverallow all_untrusted_apps service_manager_type:service_manager add; |
Chad Brubaker | 46e5a06 | 2017-01-27 15:53:38 -0800 | [diff] [blame] | 31 | |
Alex Klyubin | 0065783 | 2017-04-25 09:27:54 -0700 | [diff] [blame] | 32 | # Do not allow untrusted apps to use VendorBinder |
| 33 | neverallow all_untrusted_apps vndbinder_device:chr_file *; |
| 34 | neverallow all_untrusted_apps vndservice_manager_type:service_manager *; |
| 35 | |
Chad Brubaker | 46e5a06 | 2017-01-27 15:53:38 -0800 | [diff] [blame] | 36 | # Do not allow untrusted apps to connect to the property service |
| 37 | # or set properties. b/10243159 |
Jerry Zhang | 9f152d9 | 2017-04-10 16:57:48 -0700 | [diff] [blame] | 38 | neverallow { all_untrusted_apps -mediaprovider } property_socket:sock_file write; |
| 39 | neverallow { all_untrusted_apps -mediaprovider } init:unix_stream_socket connectto; |
| 40 | neverallow { all_untrusted_apps -mediaprovider } property_type:property_service set; |
Chad Brubaker | 46e5a06 | 2017-01-27 15:53:38 -0800 | [diff] [blame] | 41 | |
Jeff Vander Stoep | 28903d9 | 2019-10-15 21:00:22 +0200 | [diff] [blame] | 42 | # net.dns properties are not a public API. Disallow untrusted apps from reading this property. |
| 43 | neverallow { all_untrusted_apps } net_dns_prop:file read; |
Jeff Vander Stoep | 886aa54 | 2018-03-28 15:34:37 -0700 | [diff] [blame] | 44 | |
Nick Kralevich | fb66c6f | 2019-01-11 09:37:46 -0800 | [diff] [blame] | 45 | # Shared libraries created by trusted components within an app home |
| 46 | # directory can be dlopen()ed. To maintain the W^X property, these files |
Nick Kralevich | 0eb0a16 | 2018-12-12 09:06:05 -0800 | [diff] [blame] | 47 | # must never be writable to the app. |
Nick Kralevich | fb66c6f | 2019-01-11 09:37:46 -0800 | [diff] [blame] | 48 | neverallow all_untrusted_apps app_exec_data_file:file |
Nick Kralevich | 0eb0a16 | 2018-12-12 09:06:05 -0800 | [diff] [blame] | 49 | { append create link relabelfrom relabelto rename setattr write }; |
| 50 | |
Nick Kralevich | 65a89c1 | 2018-12-21 10:03:50 -0800 | [diff] [blame] | 51 | # Block calling execve() on files in an apps home directory. |
Yabin Cui | 5dc2c8c | 2018-11-02 11:12:43 -0700 | [diff] [blame] | 52 | # This is a W^X violation (loading executable code from a writable |
| 53 | # home directory). For compatibility, allow for targetApi <= 28. |
| 54 | # b/112357170 |
| 55 | neverallow { |
| 56 | all_untrusted_apps |
| 57 | -untrusted_app_25 |
| 58 | -untrusted_app_27 |
Yabin Cui | ffa2b61 | 2018-11-02 14:34:06 -0700 | [diff] [blame] | 59 | -runas_app |
Yabin Cui | 5dc2c8c | 2018-11-02 11:12:43 -0700 | [diff] [blame] | 60 | } { app_data_file privapp_data_file }:file execute_no_trans; |
| 61 | |
David Brazdil | 535c5d2 | 2018-11-19 23:02:49 +0000 | [diff] [blame] | 62 | # Do not allow untrusted apps to invoke dex2oat. This was historically required |
| 63 | # by ART for compiling secondary dex files but has been removed in Q. |
| 64 | # Exempt legacy apps (targetApi<=28) for compatibility. |
| 65 | neverallow { |
| 66 | all_untrusted_apps |
| 67 | -untrusted_app_25 |
| 68 | -untrusted_app_27 |
| 69 | } dex2oat_exec:file no_x_file_perms; |
| 70 | |
Chad Brubaker | 46e5a06 | 2017-01-27 15:53:38 -0800 | [diff] [blame] | 71 | # Do not allow untrusted apps to be assigned mlstrustedsubject. |
| 72 | # This would undermine the per-user isolation model being |
| 73 | # enforced via levelFrom=user in seapp_contexts and the mls |
| 74 | # constraints. As there is no direct way to specify a neverallow |
| 75 | # on attribute assignment, this relies on the fact that fork |
| 76 | # permission only makes sense within a domain (hence should |
| 77 | # never be granted to any other domain within mlstrustedsubject) |
| 78 | # and an untrusted app is allowed fork permission to itself. |
Chad Brubaker | a782a81 | 2017-02-06 10:31:45 -0800 | [diff] [blame] | 79 | neverallow all_untrusted_apps mlstrustedsubject:process fork; |
Chad Brubaker | 46e5a06 | 2017-01-27 15:53:38 -0800 | [diff] [blame] | 80 | |
| 81 | # Do not allow untrusted apps to hard link to any files. |
| 82 | # In particular, if an untrusted app links to other app data |
| 83 | # files, installd will not be able to guarantee the deletion |
| 84 | # of the linked to file. Hard links also contribute to security |
| 85 | # bugs, so we want to ensure untrusted apps never have this |
| 86 | # capability. |
Chad Brubaker | a782a81 | 2017-02-06 10:31:45 -0800 | [diff] [blame] | 87 | neverallow all_untrusted_apps file_type:file link; |
Chad Brubaker | 46e5a06 | 2017-01-27 15:53:38 -0800 | [diff] [blame] | 88 | |
| 89 | # Do not allow untrusted apps to access network MAC address file |
Maciej Żenczykowski | 804d99a | 2019-07-18 00:04:54 -0700 | [diff] [blame] | 90 | neverallow all_untrusted_apps sysfs_net:file no_rw_file_perms; |
Chad Brubaker | 46e5a06 | 2017-01-27 15:53:38 -0800 | [diff] [blame] | 91 | |
Jeff Vander Stoep | 06cef4f | 2017-10-04 13:12:25 -0700 | [diff] [blame] | 92 | # Do not allow any write access to files in /sys |
Jeff Vander Stoep | 886aa54 | 2018-03-28 15:34:37 -0700 | [diff] [blame] | 93 | neverallow all_untrusted_apps sysfs_type:file { no_w_file_perms no_x_file_perms }; |
| 94 | |
| 95 | # Apps may never access the default sysfs label. |
| 96 | neverallow all_untrusted_apps sysfs:file no_rw_file_perms; |
Jeff Vander Stoep | 06cef4f | 2017-10-04 13:12:25 -0700 | [diff] [blame] | 97 | |
Chad Brubaker | 46e5a06 | 2017-01-27 15:53:38 -0800 | [diff] [blame] | 98 | # Restrict socket ioctls. Either 1. disallow privileged ioctls, 2. disallow the |
| 99 | # ioctl permission, or 3. disallow the socket class. |
Jeff Vander Stoep | 0597ade | 2018-06-21 16:57:58 -0700 | [diff] [blame] | 100 | neverallowxperm all_untrusted_apps domain:{ icmp_socket rawip_socket tcp_socket udp_socket } ioctl priv_sock_ioctls; |
Chad Brubaker | a782a81 | 2017-02-06 10:31:45 -0800 | [diff] [blame] | 101 | neverallow all_untrusted_apps *:{ netlink_route_socket netlink_selinux_socket } ioctl; |
| 102 | neverallow all_untrusted_apps *:{ |
Chad Brubaker | 46e5a06 | 2017-01-27 15:53:38 -0800 | [diff] [blame] | 103 | socket netlink_socket packet_socket key_socket appletalk_socket |
Stephen Smalley | 4921085 | 2017-02-06 14:14:58 -0500 | [diff] [blame] | 104 | netlink_tcpdiag_socket netlink_nflog_socket |
| 105 | netlink_xfrm_socket netlink_audit_socket |
Chad Brubaker | 46e5a06 | 2017-01-27 15:53:38 -0800 | [diff] [blame] | 106 | netlink_dnrt_socket netlink_kobject_uevent_socket tun_socket |
| 107 | netlink_iscsi_socket netlink_fib_lookup_socket netlink_connector_socket |
| 108 | netlink_netfilter_socket netlink_generic_socket netlink_scsitransport_socket |
Jeff Vander Stoep | 0597ade | 2018-06-21 16:57:58 -0700 | [diff] [blame] | 109 | netlink_rdma_socket netlink_crypto_socket sctp_socket |
| 110 | ax25_socket ipx_socket netrom_socket atmpvc_socket x25_socket rose_socket decnet_socket |
| 111 | atmsvc_socket rds_socket irda_socket pppox_socket llc_socket can_socket tipc_socket |
| 112 | bluetooth_socket iucv_socket rxrpc_socket isdn_socket phonet_socket ieee802154_socket caif_socket |
Nick Kralevich | a194d37 | 2018-11-16 02:48:03 -0800 | [diff] [blame] | 113 | alg_socket nfc_socket vsock_socket kcm_socket qipcrtr_socket smc_socket xdp_socket |
Chad Brubaker | 46e5a06 | 2017-01-27 15:53:38 -0800 | [diff] [blame] | 114 | } *; |
| 115 | |
Jeff Vander Stoep | 1f7ae8e | 2020-01-20 10:14:48 +0100 | [diff] [blame] | 116 | # Disallow sending RTM_GETLINK messages on netlink sockets. |
| 117 | neverallow { |
| 118 | all_untrusted_apps |
| 119 | -untrusted_app_25 |
| 120 | -untrusted_app_27 |
| 121 | -untrusted_app_29 |
Jeff Vander Stoep | b38a1d8 | 2020-01-28 10:42:41 +0100 | [diff] [blame] | 122 | } domain:netlink_route_socket { bind nlmsg_readpriv }; |
Jeff Vander Stoep | 1f7ae8e | 2020-01-20 10:14:48 +0100 | [diff] [blame] | 123 | |
Chad Brubaker | 46e5a06 | 2017-01-27 15:53:38 -0800 | [diff] [blame] | 124 | # Do not allow untrusted apps access to /cache |
Jerry Zhang | 9f152d9 | 2017-04-10 16:57:48 -0700 | [diff] [blame] | 125 | neverallow { all_untrusted_apps -mediaprovider } { cache_file cache_recovery_file }:dir ~{ r_dir_perms }; |
| 126 | neverallow { all_untrusted_apps -mediaprovider } { cache_file cache_recovery_file }:file ~{ read getattr }; |
Chad Brubaker | 46e5a06 | 2017-01-27 15:53:38 -0800 | [diff] [blame] | 127 | |
| 128 | # Do not allow untrusted apps to create/unlink files outside of its sandbox, |
| 129 | # internal storage or sdcard. |
| 130 | # World accessible data locations allow application to fill the device |
| 131 | # with unaccounted for data. This data will not get removed during |
| 132 | # application un-installation. |
Jerry Zhang | 9f152d9 | 2017-04-10 16:57:48 -0700 | [diff] [blame] | 133 | neverallow { all_untrusted_apps -mediaprovider } { |
Chad Brubaker | 46e5a06 | 2017-01-27 15:53:38 -0800 | [diff] [blame] | 134 | fs_type |
Jeff Sharkey | 000cafc | 2018-03-30 12:22:54 -0600 | [diff] [blame] | 135 | -sdcard_type |
Chad Brubaker | 46e5a06 | 2017-01-27 15:53:38 -0800 | [diff] [blame] | 136 | file_type |
| 137 | -app_data_file # The apps sandbox itself |
Nick Kralevich | 23c9d91 | 2018-08-02 15:54:23 -0700 | [diff] [blame] | 138 | -privapp_data_file |
Nick Kralevich | fb66c6f | 2019-01-11 09:37:46 -0800 | [diff] [blame] | 139 | -app_exec_data_file # stored within the app sandbox directory |
Chad Brubaker | 46e5a06 | 2017-01-27 15:53:38 -0800 | [diff] [blame] | 140 | -media_rw_data_file # Internal storage. Known that apps can |
| 141 | # leave artfacts here after uninstall. |
| 142 | -user_profile_data_file # Access to profile files |
Chad Brubaker | 46e5a06 | 2017-01-27 15:53:38 -0800 | [diff] [blame] | 143 | userdebug_or_eng(` |
| 144 | -method_trace_data_file # only on ro.debuggable=1 |
| 145 | -coredump_file # userdebug/eng only |
| 146 | ') |
| 147 | }:dir_file_class_set { create unlink }; |
| 148 | |
Martijn Coenen | e3f1d5a | 2020-01-30 16:52:45 +0100 | [diff] [blame] | 149 | # No untrusted component except mediaprovider_app should be touching /dev/fuse |
| 150 | neverallow { all_untrusted_apps -mediaprovider_app } fuse_device:chr_file *; |
Nick Kralevich | 45766d4 | 2017-04-26 11:40:48 -0700 | [diff] [blame] | 151 | |
Nick Kralevich | 3b2df19 | 2018-11-15 06:14:07 -0800 | [diff] [blame] | 152 | # Do not allow untrusted apps to directly open the tun_device |
| 153 | neverallow all_untrusted_apps tun_device:chr_file open; |
| 154 | # The tun_device ioctls below are not allowed, to prove equivalence |
| 155 | # to the kernel patch at |
Nick Kralevich | 619c1ef | 2018-10-30 20:12:41 -0700 | [diff] [blame] | 156 | # https://android.googlesource.com/kernel/common/+/11cee2be0c2062ba88f04eb51196506f870a3b5d%5E%21 |
| 157 | neverallowxperm all_untrusted_apps tun_device:chr_file ioctl { |
| 158 | SIOCGIFHWADDR |
| 159 | SIOCSIFHWADDR |
| 160 | TUNATTACHFILTER |
| 161 | TUNDETACHFILTER |
| 162 | TUNGETFEATURES |
| 163 | TUNGETFILTER |
| 164 | TUNGETSNDBUF |
| 165 | TUNGETVNETHDRSZ |
| 166 | TUNSETDEBUG |
| 167 | TUNSETGROUP |
| 168 | TUNSETIFF |
| 169 | TUNSETLINK |
| 170 | TUNSETNOCSUM |
| 171 | TUNSETOFFLOAD |
| 172 | TUNSETOWNER |
| 173 | TUNSETPERSIST |
| 174 | TUNSETQUEUE |
| 175 | TUNSETSNDBUF |
| 176 | TUNSETTXFILTER |
| 177 | TUNSETVNETHDRSZ |
| 178 | }; |
Chad Brubaker | 46e5a06 | 2017-01-27 15:53:38 -0800 | [diff] [blame] | 179 | |
| 180 | # Only allow appending to /data/anr/traces.txt (b/27853304, b/18340553) |
Chad Brubaker | a782a81 | 2017-02-06 10:31:45 -0800 | [diff] [blame] | 181 | neverallow all_untrusted_apps anr_data_file:file ~{ open append }; |
| 182 | neverallow all_untrusted_apps anr_data_file:dir ~search; |
Chad Brubaker | 46e5a06 | 2017-01-27 15:53:38 -0800 | [diff] [blame] | 183 | |
| 184 | # Avoid reads from generically labeled /proc files |
| 185 | # Create a more specific label if needed |
Dan Cashman | 91d398d | 2017-09-26 12:58:29 -0700 | [diff] [blame] | 186 | neverallow all_untrusted_apps { |
| 187 | proc |
Tri Vo | 464f59a | 2017-10-06 10:20:53 -0700 | [diff] [blame] | 188 | proc_asound |
Dan Cashman | 91d398d | 2017-09-26 12:58:29 -0700 | [diff] [blame] | 189 | proc_kmsg |
| 190 | proc_loadavg |
| 191 | proc_mounts |
| 192 | proc_pagetypeinfo |
Mark Salyzyn | d6eaed8 | 2018-06-14 07:34:19 -0700 | [diff] [blame] | 193 | proc_slabinfo |
Jeff Vander Stoep | 886aa54 | 2018-03-28 15:34:37 -0700 | [diff] [blame] | 194 | proc_stat |
Dan Cashman | 91d398d | 2017-09-26 12:58:29 -0700 | [diff] [blame] | 195 | proc_swaps |
Jeff Vander Stoep | 886aa54 | 2018-03-28 15:34:37 -0700 | [diff] [blame] | 196 | proc_uptime |
Dan Cashman | 91d398d | 2017-09-26 12:58:29 -0700 | [diff] [blame] | 197 | proc_version |
| 198 | proc_vmallocinfo |
Jeff Vander Stoep | 886aa54 | 2018-03-28 15:34:37 -0700 | [diff] [blame] | 199 | proc_vmstat |
Dan Cashman | 91d398d | 2017-09-26 12:58:29 -0700 | [diff] [blame] | 200 | }:file { no_rw_file_perms no_x_file_perms }; |
Fyodor Kupolov | b238fe6 | 2017-03-14 11:42:03 -0700 | [diff] [blame] | 201 | |
Martijn Coenen | fd54803 | 2020-02-19 17:10:43 +0100 | [diff] [blame] | 202 | # /proc/filesystems is accessible to mediaprovider_app only since it handles |
| 203 | # external storage |
| 204 | neverallow { all_untrusted_apps - mediaprovider_app } proc_filesystems:file { no_rw_file_perms no_x_file_perms }; |
| 205 | |
Sandeep Patil | 2da9cfd | 2017-04-21 11:25:29 -0700 | [diff] [blame] | 206 | # Avoid all access to kernel configuration |
| 207 | neverallow all_untrusted_apps config_gz:file { no_rw_file_perms no_x_file_perms }; |
| 208 | |
Fyodor Kupolov | b238fe6 | 2017-03-14 11:42:03 -0700 | [diff] [blame] | 209 | # Do not allow untrusted apps access to preloads data files |
| 210 | neverallow all_untrusted_apps preloads_data_file:file no_rw_file_perms; |
Nick Kralevich | 92c44a5 | 2017-03-22 10:35:24 -0700 | [diff] [blame] | 211 | |
| 212 | # Locking of files on /system could lead to denial of service attacks |
| 213 | # against privileged system components |
| 214 | neverallow all_untrusted_apps system_file:file lock; |
Alex Klyubin | 2a7f4fb | 2017-04-21 17:06:43 -0700 | [diff] [blame] | 215 | |
Alex Klyubin | 5c5b626 | 2017-04-24 15:09:19 -0700 | [diff] [blame] | 216 | # Do not permit untrusted apps to perform actions on HwBinder service_manager |
| 217 | # other than find actions for services listed below |
| 218 | neverallow all_untrusted_apps *:hwservice_manager ~find; |
| 219 | |
Jiyong Park | e95c704 | 2019-08-22 00:04:50 +0900 | [diff] [blame] | 220 | # Do not permit access from apps which host arbitrary code to the protected HwBinder |
| 221 | # services. |
Alex Klyubin | 2a7f4fb | 2017-04-21 17:06:43 -0700 | [diff] [blame] | 222 | # The two main reasons for this are: |
Jiyong Park | e95c704 | 2019-08-22 00:04:50 +0900 | [diff] [blame] | 223 | # 1. Protected HwBinder servers do not perform client authentication because HIDL |
| 224 | # currently does not expose caller UID information and, even if it did, those |
Alex Klyubin | 2a7f4fb | 2017-04-21 17:06:43 -0700 | [diff] [blame] | 225 | # HwBinder services either operate at a level below that of apps (e.g., HALs) |
| 226 | # or must not rely on app identity for authorization. Thus, to be safe, the |
| 227 | # default assumption is that every HwBinder service treats all its clients as |
| 228 | # equally authorized to perform operations offered by the service. |
| 229 | # 2. HAL servers (a subset of HwBinder services) contain code with higher |
| 230 | # incidence rate of security issues than system/core components and have |
| 231 | # access to lower layes of the stack (all the way down to hardware) thus |
| 232 | # increasing opportunities for bypassing the Android security model. |
Jiyong Park | e95c704 | 2019-08-22 00:04:50 +0900 | [diff] [blame] | 233 | neverallow all_untrusted_apps protected_hwservice:hwservice_manager find; |
Dan Cashman | 91d398d | 2017-09-26 12:58:29 -0700 | [diff] [blame] | 234 | |
Steven Moreland | b75b047 | 2019-08-20 22:42:58 +0000 | [diff] [blame] | 235 | neverallow all_untrusted_apps { |
| 236 | vendor_service |
Steven Moreland | b75b047 | 2019-08-20 22:42:58 +0000 | [diff] [blame] | 237 | }:service_manager find; |
| 238 | |
Dan Cashman | 91d398d | 2017-09-26 12:58:29 -0700 | [diff] [blame] | 239 | # SELinux is not an API for untrusted apps to use |
| 240 | neverallow all_untrusted_apps selinuxfs:file no_rw_file_perms; |
| 241 | |
Jeff Vander Stoep | ff511cb | 2018-09-07 07:39:28 -0700 | [diff] [blame] | 242 | # Access to /proc/tty/drivers, to allow apps to determine if they |
| 243 | # are running in an emulated environment. |
| 244 | # b/33214085 b/33814662 b/33791054 b/33211769 |
| 245 | # https://github.com/strazzere/anti-emulator/blob/master/AntiEmulator/src/diff/strazzere/anti/emulator/FindEmulator.java |
| 246 | # This will go away in a future Android release |
| 247 | neverallow { all_untrusted_apps -untrusted_app_25 } proc_tty_drivers:file r_file_perms; |
| 248 | neverallow all_untrusted_apps proc_tty_drivers:file ~r_file_perms; |
Tri Vo | f55c989 | 2018-10-10 22:48:15 +0000 | [diff] [blame] | 249 | |
| 250 | # Untrusted apps are not allowed to use cgroups. |
| 251 | neverallow all_untrusted_apps cgroup:file *; |
Tri Vo | 73d0a67 | 2019-01-27 13:39:19 -0800 | [diff] [blame] | 252 | |
Tri Vo | 8eff3e2 | 2019-04-11 15:23:24 -0700 | [diff] [blame] | 253 | # /mnt/sdcard symlink was supposed to have been removed in Gingerbread. Apps |
| 254 | # must not use it. |
| 255 | neverallow { |
| 256 | all_untrusted_apps |
| 257 | -untrusted_app_25 |
| 258 | -untrusted_app_27 |
| 259 | } mnt_sdcard_file:lnk_file *; |