Lines Matching refs:domain

4 allow domain init:process sigchld;
6 # Intra-domain accesses.
7 allow domain self:process {
24 allow domain self:fd use;
25 allow domain proc:dir r_dir_perms;
26 allow domain proc_net_type:dir search;
27 r_dir_file(domain, self)
28 allow domain self:{ fifo_file file } rw_file_perms;
29 allow domain self:unix_dgram_socket { create_socket_perms sendto };
30 allow domain self:unix_stream_socket { create_stream_socket_perms connectto };
33 allow domain init:fd use;
36 allow domain su:fd use;
37 allow domain su:unix_stream_socket { connectto getattr getopt read write shutdown };
38 allow domain su:unix_dgram_socket sendto;
40 allow { domain -init } su:binder { call transfer };
44 allow domain su:fifo_file { write getattr };
47 allow domain su:process sigchld;
50 allow domain coredump_file:file create_file_perms;
51 allow domain coredump_file:dir ra_dir_perms;
56 allow domain method_trace_data_file:dir create_dir_perms;
57 allow domain method_trace_data_file:file create_file_perms;
61 allow domain tmpfs:dir { getattr search };
62 allow domain rootfs:dir search;
63 allow domain rootfs:lnk_file { read getattr };
66 allow domain device:dir search;
67 allow domain dev_type:lnk_file r_file_perms;
68 allow domain devpts:dir search;
69 allow domain socket_device:dir r_dir_perms;
70 allow domain owntty_device:chr_file rw_file_perms;
71 allow domain null_device:chr_file rw_file_perms;
72 allow domain zero_device:chr_file rw_file_perms;
74 domain
84 allow domain ashmemd:fd use;
94 not_full_treble(`allow { domain -hwservicemanager -vndservicemanager } binder_device:chr_file rw_fi…
95 allow { domain -servicemanager -vndservicemanager -isolated_app } hwbinder_device:chr_file rw_file_…
96 allow domain ptmx_device:chr_file rw_file_perms;
97 allow domain random_device:chr_file rw_file_perms;
98 allow domain proc_random:dir r_dir_perms;
99 allow domain proc_random:file r_file_perms;
100 allow domain properties_device:dir { search getattr };
101 allow domain properties_serial:file r_file_perms;
102 allow domain property_info:file r_file_perms;
105 get_prop(domain, debug_prop)
106 get_prop(domain, exported_config_prop)
107 get_prop(domain, exported_default_prop)
108 get_prop(domain, exported_dumpstate_prop)
109 get_prop(domain, exported_fingerprint_prop)
110 get_prop(domain, exported_radio_prop)
111 get_prop(domain, exported_secure_prop)
112 get_prop(domain, exported_system_prop)
113 get_prop(domain, exported_vold_prop)
114 get_prop(domain, exported2_default_prop)
115 get_prop(domain, logd_prop)
119 get_prop(domain, log_property_type)
120 dontaudit domain property_type:file audit_access;
121 allow domain property_contexts_file:file r_file_perms;
123 allow domain init:key search;
124 allow domain vold:key search;
127 write_logd(domain)
130 allow domain {
136 allow domain system_file:lnk_file { getattr read };
140 allow domain system_seccomp_policy_file:file r_file_perms;
142 allow domain system_security_cacerts_file:file r_file_perms;
143 allow domain system_linker_exec:file { execute read open getattr map };
144 allow domain system_linker_config_file:file r_file_perms;
145 allow domain system_lib_file:file { execute read open getattr map };
147 allow domain system_linker_exec:lnk_file { read open getattr };
148 allow domain system_lib_file:lnk_file { read open getattr };
150 allow domain system_event_log_tags_file:file r_file_perms;
157 allow domain system_file:file { execute read open getattr map };
158 allow domain vendor_file_type:dir { search getattr };
159 allow domain vendor_file_type:file { execute read open getattr map };
160 allow domain vendor_file_type:lnk_file { getattr read };
166 allow domain vendor_hal_file:dir r_dir_perms;
169 allow domain same_process_hal_file:dir r_dir_perms;
171 domain
177 allow domain vndk_sp_file:dir r_dir_perms;
178 allow domain vndk_sp_file:file { execute read open getattr map };
181 allow domain vendor_configs_file:dir r_dir_perms;
182 allow domain vendor_configs_file:file { read open getattr map };
187 allow domain vendor_file_type:lnk_file { getattr open read };
192 allow domain vendor_file:dir { getattr search };
195 allow { domain -coredomain } vendor_file_type:dir r_dir_perms;
196 allow { domain -coredomain } vendor_file_type:file { read open getattr execute map };
197 allow { domain -coredomain } vendor_file_type:lnk_file { getattr read };
201 allow domain sysfs:lnk_file { getattr read };
206 allow domain { system_zoneinfo_file zoneinfo_data_file }:file r_file_perms;
207 allow domain { system_zoneinfo_file zoneinfo_data_file }:dir r_dir_perms;
210 r_dir_file(domain, sysfs_devices_system_cpu)
212 r_dir_file(domain, sysfs_usb);
216 allow domain sysfs_transparent_hugepage:dir search;
217 allow domain sysfs_transparent_hugepage:file r_file_perms;
221 allow domain system_data_file:dir getattr;
226 allow domain system_data_file:dir search;
228 allow domain vendor_data_file:dir { getattr search };
231 allow domain proc:lnk_file { getattr read };
234 allow domain proc_cpuinfo:file r_file_perms;
237 allow domain dev_cpu_variant:file r_file_perms;
240 allow domain proc_overcommit_memory:file r_file_perms;
243 allow domain proc_perf:file r_file_perms;
246 allow domain selinuxfs:dir search;
247 allow domain selinuxfs:file getattr;
248 allow domain sysfs:dir search;
249 allow domain selinuxfs:filesystem getattr;
254 allow domain debugfs:dir search;
255 allow domain debugfs_tracing:dir search;
256 allow domain debugfs_tracing_debug:dir search;
257 allow domain debugfs_trace_marker:file w_file_perms;
260 allow domain fs_type:filesystem getattr;
261 allow domain fs_type:dir getattr;
265 # defaults for all processes. Note that granting this allowlist to domain does
268 allowxperm domain domain:{ icmp_socket rawip_socket tcp_socket udp_socket }
271 allowxperm domain { domain pdx_channel_socket_type }:{ unix_dgram_socket unix_stream_socket }
275 # Note that granting this allowlist to domain does
278 allowxperm domain devpts:chr_file ioctl unpriv_tty_ioctls;
283 allowxperm domain { file_type fs_type domain dev_type }:{ dir notdevfile_class_set blk_file } ioctl…
285 # If a domain has ioctl access to tun_device, it must clearly enumerate the
287 allowxperm domain tun_device:chr_file ioctl { FIOCLEX FIONCLEX };
291 # this allowlist to domain does not grant the ioctl permission to
293 allowxperm domain { file_type fs_type }:file ioctl { TCGETS };
294 allowxperm domain domain:fifo_file ioctl { TCGETS };
296 # If a domain has access to perform an ioctl on a block device, allow these
298 allowxperm domain dev_type:blk_file ioctl { BLKGETSIZE64 BLKSSZGET };
304 allowxperm domain { file_type sdcard_type }:file ioctl {
315 allow { domain -domain } hwservice_manager_type:hwservice_manager { add find };
318 allow { domain -domain } vndservice_manager_type:service_manager { add find };
321 with_asan(`allow domain system_data_file:dir getattr;')
323 with_asan(`allow domain system_asan_options_file:file r_file_perms;')
326 allow domain apex_mnt_dir:dir { getattr search };
327 allow domain apex_mnt_dir:lnk_file r_file_perms;
339 neverallowxperm domain domain:socket_class_set ioctl { SIOCATMARK };
346 # Do not allow any domain other than init to create unlabeled files.
347 neverallow { domain -init -recovery } unlabeled:dir_file_class_set create;
351 domain
361 # No domain needs mac_override as it is unused by SELinux.
374 # init starts in kernel domain and switches to init domain via setcon in
378 neverallow { domain -kernel } kernel:security setcheckreqprot;
386 neverallow { domain -init } kernel:security setsecparam;
390 domain
398 domain
409 dontaudit domain postinstall_mnt_dir:dir audit_access;
413 domain
420 neverallow { domain -init } usermodehelper:file { append write };
421 neverallow { domain -init -ueventd } sysfs_usermodehelper:file { append write };
422 neverallow { domain -init -vendor_init } proc_security:file { append open read write };
428 neverallow { domain -servicemanager } init:binder { transfer };
433 neverallow { domain -kernel -init -recovery } block_device:blk_file { open read write };
442 neverallow domain device:chr_file { open read write };
445 neverallow domain { cache_file cache_backup_file cache_private_backup_file cache_recovery_file }:fi…
449 domain
458 # The test files and executables MUST not be accessible to any domain
459 neverallow { domain userdebug_or_eng(`-kernel') } nativetest_data_file:file_class_set no_w_file_per…
460 neverallow domain nativetest_data_file:dir no_w_dir_perms;
461 neverallow { domain userdebug_or_eng(`-shell') } nativetest_data_file:file no_x_file_perms;
464 neverallow { domain -init } property_data_file:dir no_w_dir_perms;
465 neverallow { domain -init } property_data_file:file { no_w_file_perms no_x_file_perms };
466 neverallow { domain -init } property_type:file { no_w_file_perms no_x_file_perms };
467 neverallow { domain -init } properties_device:file { no_w_file_perms no_x_file_perms };
468 neverallow { domain -init } properties_serial:file { no_w_file_perms no_x_file_perms };
475 domain
484 neverallow { domain -kernel with_asan(`-asan_extract') } { system_file_type vendor_file_type exec_t…
488 neverallow { domain -init } { system_file_type vendor_file_type }:dir_file_class_set mounton;
502 neverallow { domain recovery_only(`userdebug_or_eng(`-fastbootd')') } contextmount_type:dir_file_cl…
524 neverallow { domain -init -vendor_init } default_prop:property_service set;
525 neverallow { domain -init -vendor_init } mmc_prop:property_service set;
528 neverallow { domain -init } default_prop:property_service set;
529 neverallow { domain -init } mmc_prop:property_service set;
530 neverallow { domain -init -vendor_init } exported_default_prop:property_service set;
531 neverallow { domain -init } exported_secure_prop:property_service set;
532 neverallow { domain -init } exported2_default_prop:property_service set;
533 neverallow { domain -init -vendor_init } exported3_default_prop:property_service set;
534 neverallow { domain -init -vendor_init } vendor_default_prop:property_service set;
538 neverallow { domain -init -system_server } pm_prop:property_service set;
539 neverallow { domain -coredomain } pm_prop:file no_rw_file_perms;
542 neverallow { domain -init -system_server -vendor_init } exported_pm_prop:property_service set;
543 neverallow { domain -coredomain -vendor_init } exported_pm_prop:file no_rw_file_perms;
549 domain
565 neverallow { domain -init -system_server -dumpstate } firstboot_prop:file r_file_perms;
568 domain
580 domain
589 # No domain other than recovery, update_engine and fastbootd can write to system partition(s).
591 domain
604 domain
605 userdebug_or_eng(`-domain') # exclude debuggable builds
619 neverallow { domain -servicemanager -hwservicemanager -vndservicemanager } *:binder set_context_mgr;
629 # domain apps need this because Android framework offers many of its services to apps as Binder
633 domain
642 dontaudit domain binder_device:chr_file audit_access;
646 domain
679 domain
717 # Core domains are not permitted to initiate communications to vendor domain sockets.
728 domain
733 # Vendor domains are not permitted to initiate communications to core domain sockets
736 domain
742 -logd # Logging by writing to logd Unix domain socket is public API
755 domain
765 domain
849 domain
879 domain
909 domain
956 domain
1033 domain
1037 # vendor_init needs access to init_exec for domain transition. vendor_init
1060 neverallow { domain -zygote -system_server } zygote:unix_stream_socket connectto;
1061 neverallow { domain -system_server } zygote_socket:sock_file write;
1063 neverallow { domain -system_server -webview_zygote -app_zygote } webview_zygote:unix_stream_socket …
1064 neverallow { domain -system_server } webview_zygote:sock_file write;
1065 neverallow { domain -system_server } app_zygote:sock_file write;
1068 domain
1083 neverallow { domain -dumpstate -incidentd -system_server } tombstoned_intercept_socket:sock_file wr…
1084 neverallow { domain -dumpstate -incidentd -system_server } tombstoned_intercept_socket:unix_stream_…
1111 neverallow { domain userdebug_or_eng(`-dumpstate -shell -su') } su_exec:file no_x_file_perms;
1132 neverallow { domain -untrusted_app_25 -untrusted_app_27 } file_type:file execmod;
1134 neverallow { domain -init } proc:{ file dir } mounton;
1137 # in the domain attribute, so that all allow and neverallow rules
1138 # written on domain are applied to all processes.
1140 # from a domain to a non-domain type and vice versa.
1141 # TODO - rework this: neverallow domain ~domain:process { transition dyntransition };
1142 neverallow ~domain domain:process { transition dyntransition };
1153 domain
1167 domain
1183 # Only these domains should transition to shell domain. This domain is
1185 # script with differing privilege, define a domain and set up a transition.
1188 domain
1197 neverallow { domain -simpleperf_app_runner -runas -app_zygote -webview_zygote -zygote } {
1204 domain
1210 domain
1221 domain
1231 domain
1245 domain
1273 # executable file used to enter a domain should be labeled
1274 # with its own _exec type, not with the domain type.
1277 # type mydaemon, domain;
1282 neverallow * domain:file { execute execute_no_trans entrypoint };
1288 neverallow { domain -init -vendor_init -dumpstate } debugfs:{ file lnk_file } no_rw_file_perms;
1291 neverallow domain debugfs_type:file { execute execute_no_trans };
1296 domain
1311 neverallow domain crash_dump:process noatsecure;
1344 neverallow domain {
1350 neverallow domain cgroup:file create;
1352 dontaudit domain proc_type:dir write;
1353 dontaudit domain sysfs_type:dir write;
1354 dontaudit domain cgroup:file create;
1359 dontaudit domain proc_type:dir add_name;
1360 dontaudit domain sysfs_type:dir add_name;
1361 dontaudit domain proc_type:file create;
1362 dontaudit domain sysfs_type:file create;
1384 domain
1406 domain