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;
76 allow domain ashmem_device:chr_file { getattr read ioctl lock map append write };
78 allow domain ashmem_libcutils_device:chr_file rw_file_perms;
81 allow { domain -hwservicemanager -vndservicemanager } binder_device:chr_file rw_file_perms;
84 allow domain binderfs:dir { getattr search };
85 allow domain binderfs_logs_proc:dir search;
87 allow { domain -servicemanager -vndservicemanager -isolated_app } hwbinder_device:chr_file rw_file_…
88 allow domain ptmx_device:chr_file rw_file_perms;
89 allow domain random_device:chr_file rw_file_perms;
90 allow domain proc_random:dir r_dir_perms;
91 allow domain proc_random:file r_file_perms;
92 allow domain properties_device:dir { search getattr };
93 allow domain properties_serial:file r_file_perms;
94 allow domain property_info:file r_file_perms;
97 get_prop(domain, debug_prop)
98 get_prop(domain, exported_config_prop)
99 get_prop(domain, exported_default_prop)
100 get_prop(domain, exported_dumpstate_prop)
101 get_prop(domain, exported_fingerprint_prop)
102 get_prop(domain, exported_radio_prop)
103 get_prop(domain, exported_secure_prop)
104 get_prop(domain, exported_system_prop)
105 get_prop(domain, exported_vold_prop)
106 get_prop(domain, exported2_default_prop)
107 get_prop(domain, logd_prop)
108 get_prop(domain, socket_hook_prop)
109 get_prop(domain, vendor_socket_hook_prop)
110 get_prop(domain, vndk_prop)
113 get_prop(domain, binder_cache_bluetooth_server_prop)
114 get_prop(domain, binder_cache_system_server_prop)
115 get_prop(domain, binder_cache_telephony_server_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_group_file:file r_file_perms;
144 allow domain system_passwd_file:file r_file_perms;
145 allow domain system_linker_exec:file { execute read open getattr map };
146 allow domain system_linker_config_file:file r_file_perms;
147 allow domain system_lib_file:file { execute read open getattr map };
149 allow domain system_linker_exec:lnk_file { read open getattr };
150 allow domain system_lib_file:lnk_file { read open getattr };
152 allow domain system_event_log_tags_file:file r_file_perms;
159 allow domain system_file:file { execute read open getattr map };
160 allow domain vendor_file_type:dir { search getattr };
161 allow domain vendor_file_type:file { execute read open getattr map };
162 allow domain vendor_file_type:lnk_file { getattr read };
168 allow domain vendor_hal_file:dir r_dir_perms;
171 allow domain same_process_hal_file:dir r_dir_perms;
173 domain
179 allow domain vndk_sp_file:dir r_dir_perms;
180 allow domain vndk_sp_file:file { execute read open getattr map };
183 allow domain vendor_configs_file:dir r_dir_perms;
184 allow domain vendor_configs_file:file { read open getattr map };
189 allow domain vendor_file_type:lnk_file { getattr open read };
194 allow domain vendor_file:dir { getattr search };
197 allow { domain -coredomain } vendor_file_type:dir r_dir_perms;
198 allow { domain -coredomain } vendor_file_type:file { read open getattr execute map };
199 allow { domain -coredomain } vendor_file_type:lnk_file { getattr read };
203 allow domain sysfs:lnk_file { getattr read };
208 allow domain { system_zoneinfo_file zoneinfo_data_file }:file r_file_perms;
209 allow domain { system_zoneinfo_file zoneinfo_data_file }:dir r_dir_perms;
212 r_dir_file(domain, sysfs_devices_system_cpu)
214 r_dir_file(domain, sysfs_usb);
218 allow domain sysfs_transparent_hugepage:dir search;
219 allow domain sysfs_transparent_hugepage:file r_file_perms;
223 allow domain system_data_file:dir getattr;
228 allow domain system_data_root_file:dir { search getattr } ;
229 allow domain system_data_file:dir search;
231 allow domain vendor_data_file:dir { getattr search };
234 allow domain proc:lnk_file { getattr read };
237 allow domain proc_cpuinfo:file r_file_perms;
240 allow domain dev_cpu_variant: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 };
425 # triggered, it's probably due to a service with no SELinux domain.
431 neverallow { domain -kernel -init -recovery } block_device:blk_file { open read write };
440 neverallow domain device:chr_file { open read write };
443 neverallow domain { cache_file cache_backup_file cache_private_backup_file cache_recovery_file }:fi…
447 domain
456 # The test files and executables MUST not be accessible to any domain
457 neverallow { domain userdebug_or_eng(`-kernel') } nativetest_data_file:file_class_set no_w_file_per…
458 neverallow domain nativetest_data_file:dir no_w_dir_perms;
459 neverallow { domain userdebug_or_eng(`-shell') } nativetest_data_file:file no_x_file_perms;
462 neverallow { domain -init } property_data_file:dir no_w_dir_perms;
463 neverallow { domain -init } property_data_file:file { no_w_file_perms no_x_file_perms };
464 neverallow { domain -init } property_type:file { no_w_file_perms no_x_file_perms };
465 neverallow { domain -init } properties_device:file { no_w_file_perms no_x_file_perms };
466 neverallow { domain -init } properties_serial:file { no_w_file_perms no_x_file_perms };
473 domain
482 neverallow { domain -kernel with_asan(`-asan_extract') } { system_file_type vendor_file_type exec_t…
486 neverallow { domain -init } { system_file_type vendor_file_type }:dir_file_class_set mounton;
500 neverallow { domain recovery_only(`userdebug_or_eng(`-fastbootd')') } contextmount_type:dir_file_cl…
522 neverallow { domain -init -vendor_init } default_prop:property_service set;
523 neverallow { domain -init -vendor_init } mmc_prop:property_service set;
524 neverallow { domain -init -vendor_init } vndk_prop:property_service set;
527 neverallow { domain -init } default_prop:property_service set;
528 neverallow { domain -init } mmc_prop:property_service set;
529 neverallow { domain -init -vendor_init } exported_default_prop:property_service set;
530 neverallow { domain -init } exported_secure_prop:property_service set;
531 neverallow { domain -init } exported2_default_prop:property_service set;
532 neverallow { domain -init -vendor_init } exported3_default_prop:property_service set;
533 neverallow { domain -init -vendor_init } vendor_default_prop:property_service set;
534 neverallow { domain -init -vendor_init } storage_config_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
567 neverallow { domain -init -system_server -dumpstate } firstboot_prop:file r_file_perms;
570 domain
582 domain
591 # No domain other than recovery, update_engine and fastbootd can write to system partition(s).
593 domain
606 domain
607 userdebug_or_eng(`-domain') # exclude debuggable builds
621 neverallow { domain -servicemanager -hwservicemanager -vndservicemanager } *:binder set_context_mgr;
638 domain
706 # Core domains are not permitted to initiate communications to vendor domain sockets.
717 domain
722 # Vendor domains are not permitted to initiate communications to core domain sockets
725 domain
731 -logd # Logging by writing to logd Unix domain socket is public API
745 domain
829 domain
859 domain
891 domain
939 domain
1024 domain
1028 # vendor_init needs access to init_exec for domain transition. vendor_init
1054 neverallow { domain -zygote -system_server } zygote:unix_stream_socket connectto;
1055 neverallow { domain -system_server } zygote_socket:sock_file write;
1057 neverallow { domain -system_server -webview_zygote -app_zygote } webview_zygote:unix_stream_socket …
1058 neverallow { domain -system_server } webview_zygote:sock_file write;
1059 neverallow { domain -system_server } app_zygote:sock_file write;
1062 domain
1077 neverallow { domain -dumpstate -incidentd -system_server } tombstoned_intercept_socket:sock_file wr…
1078 neverallow { domain -dumpstate -incidentd -system_server } tombstoned_intercept_socket:unix_stream_…
1105 neverallow { domain userdebug_or_eng(`-dumpstate -shell -su') } su_exec:file no_x_file_perms;
1126 neverallow { domain -untrusted_app_25 -untrusted_app_27 } file_type:file execmod;
1128 neverallow { domain -init } proc:{ file dir } mounton;
1131 # in the domain attribute, so that all allow and neverallow rules
1132 # written on domain are applied to all processes.
1134 # from a domain to a non-domain type and vice versa.
1135 # TODO - rework this: neverallow domain ~domain:process { transition dyntransition };
1136 neverallow ~domain domain:process { transition dyntransition };
1147 domain
1162 domain
1179 # Only these domains should transition to shell domain. This domain is
1181 # script with differing privilege, define a domain and set up a transition.
1184 domain
1192 # the appdomain attribute. simpleperf is excluded as a domain transitioned to
1194 neverallow { domain -simpleperf_app_runner -runas -app_zygote -webview_zygote -zygote } {
1201 domain
1207 domain
1218 domain
1228 domain
1242 domain
1270 # executable file used to enter a domain should be labeled
1271 # with its own _exec type, not with the domain type.
1274 # type mydaemon, domain;
1279 neverallow * domain:file { execute execute_no_trans entrypoint };
1285 neverallow { domain -init -vendor_init -dumpstate } debugfs:{ file lnk_file } no_rw_file_perms;
1288 neverallow domain debugfs_type:file { execute execute_no_trans };
1291 neverallow { domain -vold -init -vendor_init } fusectlfs:file no_rw_file_perms;
1296 domain
1311 neverallow domain crash_dump:process noatsecure;
1346 neverallow domain {
1352 neverallow domain cgroup:file create;
1354 dontaudit domain proc_type:dir write;
1355 dontaudit domain sysfs_type:dir write;
1356 dontaudit domain cgroup:file create;
1361 dontaudit domain proc_type:dir add_name;
1362 dontaudit domain sysfs_type:dir add_name;
1363 dontaudit domain proc_type:file create;
1364 dontaudit domain sysfs_type:file create;
1386 domain
1408 domain
1416 domain