xref: /aosp_15_r20/system/sepolicy/private/untrusted_app_29.te (revision e4a36f4174b17bbab9dc043f4a65dc8d87377290)
1*e4a36f41SAndroid Build Coastguard Worker###
2*e4a36f41SAndroid Build Coastguard Worker### Untrusted_29.
3*e4a36f41SAndroid Build Coastguard Worker###
4*e4a36f41SAndroid Build Coastguard Worker### This file defines the rules for untrusted apps running with
5*e4a36f41SAndroid Build Coastguard Worker### targetSdkVersion = 29.
6*e4a36f41SAndroid Build Coastguard Worker###
7*e4a36f41SAndroid Build Coastguard Worker### See public/untrusted_app.te for more information about which apps are
8*e4a36f41SAndroid Build Coastguard Worker### placed in this selinux domain.
9*e4a36f41SAndroid Build Coastguard Worker###
10*e4a36f41SAndroid Build Coastguard Worker
11*e4a36f41SAndroid Build Coastguard Workertypeattribute untrusted_app_29 coredomain;
12*e4a36f41SAndroid Build Coastguard Worker
13*e4a36f41SAndroid Build Coastguard Workerapp_domain(untrusted_app_29)
14*e4a36f41SAndroid Build Coastguard Workeruntrusted_app_domain(untrusted_app_29)
15*e4a36f41SAndroid Build Coastguard Workernet_domain(untrusted_app_29)
16*e4a36f41SAndroid Build Coastguard Workerbluetooth_domain(untrusted_app_29)
17*e4a36f41SAndroid Build Coastguard Worker
18*e4a36f41SAndroid Build Coastguard Worker# allow sending RTM_GETNEIGH{TBL} messages.
19*e4a36f41SAndroid Build Coastguard Workerallow untrusted_app_29 self:netlink_route_socket nlmsg_getneigh;
20*e4a36f41SAndroid Build Coastguard Workerauditallow untrusted_app_29 self:netlink_route_socket nlmsg_getneigh;
21*e4a36f41SAndroid Build Coastguard Worker
22*e4a36f41SAndroid Build Coastguard Worker# Connect to mdnsd via mdnsd socket.
23*e4a36f41SAndroid Build Coastguard Workerunix_socket_connect(untrusted_app_29, mdnsd, mdnsd)
24*e4a36f41SAndroid Build Coastguard Workeruserdebug_or_eng(`
25*e4a36f41SAndroid Build Coastguard Worker  auditallow untrusted_app_29 mdnsd_socket:sock_file write;
26*e4a36f41SAndroid Build Coastguard Worker  auditallow untrusted_app_29 mdnsd:unix_stream_socket connectto;
27*e4a36f41SAndroid Build Coastguard Worker')
28*e4a36f41SAndroid Build Coastguard Worker
29*e4a36f41SAndroid Build Coastguard Worker# Allow calling inotify on APKs for backwards compatibility. This is disallowed
30*e4a36f41SAndroid Build Coastguard Worker# for targetSdkVersion>=34 to remove a sidechannel.
31*e4a36f41SAndroid Build Coastguard Workerallow untrusted_app_29 apk_data_file:dir { watch watch_reads };
32*e4a36f41SAndroid Build Coastguard Workerallow untrusted_app_29 apk_data_file:file { watch watch_reads };
33*e4a36f41SAndroid Build Coastguard Workeruserdebug_or_eng(`
34*e4a36f41SAndroid Build Coastguard Worker  auditallow untrusted_app_29 apk_data_file:dir { watch watch_reads };
35*e4a36f41SAndroid Build Coastguard Worker  auditallow untrusted_app_29 apk_data_file:file { watch watch_reads };
36*e4a36f41SAndroid Build Coastguard Worker')
37