Skip to content

Commit 60061f8

Browse files
committed
[macOS] Update message filters in the WebContent sandbox
https://bugs.webkit.org/show_bug.cgi?id=218520 Reviewed by Brent Fulgham. Based on telemetry, update the message filters with allowed messages in the WebContent sandbox. No new tests, covered by existing tests. * WebProcess/com.apple.WebProcess.sb.in: Canonical link: https://commits.webkit.org/231286@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@269474 268f45cc-cd09-0410-ab3c-d52691b4dbfc
1 parent 76d7620 commit 60061f8

2 files changed

Lines changed: 108 additions & 1 deletion

File tree

Source/WebKit/ChangeLog

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
2020-11-05 Per Arne Vollan <pvollan@apple.com>
2+
3+
[macOS] Update message filters in the WebContent sandbox
4+
https://bugs.webkit.org/show_bug.cgi?id=218520
5+
6+
Reviewed by Brent Fulgham.
7+
8+
Based on telemetry, update the message filters with allowed messages in the WebContent sandbox.
9+
10+
No new tests, covered by existing tests.
11+
12+
* WebProcess/com.apple.WebProcess.sb.in:
13+
114
2020-11-05 Ryan Haddad <ryanhaddad@apple.com>
215

316
Unreviewed, fix the build with recent SDKs.

Source/WebKit/WebProcess/com.apple.WebProcess.sb.in

Lines changed: 95 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1221,7 +1221,14 @@
12211221
(allow mach-bootstrap
12221222
(apply-message-filter
12231223
(allow xpc-message-send (with telemetry))
1224-
(allow xpc-message-send (with telemetry) (message-number 206))
1224+
(allow xpc-message-send (message-number
1225+
204
1226+
207
1227+
301
1228+
800
1229+
804
1230+
)
1231+
)
12251232
)
12261233
)
12271234
)
@@ -1230,10 +1237,97 @@
12301237
(allow mach-kernel-endpoint
12311238
(apply-message-filter
12321239
(allow mach-message-send (with telemetry))
1240+
(allow mach-message-send (kernel-mig-routine
1241+
_mach_make_memory_entry
1242+
host_get_io_master
1243+
host_info
1244+
host_request_notification
1245+
io_connect_add_client
1246+
io_connect_async_method
1247+
io_connect_map_memory_into_task
1248+
io_connect_method
1249+
io_connect_method_var_output
1250+
io_connect_set_notification_port_64
1251+
io_iterator_is_valid
1252+
io_iterator_next
1253+
io_object_conforms_to
1254+
io_registry_create_iterator
1255+
io_registry_entry_create_iterator
1256+
io_registry_entry_from_path
1257+
io_registry_entry_get_child_iterator
1258+
io_registry_entry_get_name
1259+
io_registry_entry_get_name_in_plane
1260+
io_registry_entry_get_parent_iterator
1261+
io_registry_entry_get_properties_bin_buf
1262+
io_registry_entry_get_property_bin_buf
1263+
io_registry_entry_get_registry_entry_id
1264+
io_registry_get_root_entry
1265+
io_server_version
1266+
io_service_add_interest_notification_64
1267+
io_service_add_notification_bin_64
1268+
io_service_close
1269+
io_service_get_matching_service_bin
1270+
io_service_get_matching_services_bin
1271+
io_service_open_extended
1272+
mach_port_get_refs
1273+
mach_port_set_attributes
1274+
mach_vm_copy
1275+
mach_vm_map_external
1276+
mach_vm_region
1277+
mach_vm_remap_external
1278+
semaphore_create
1279+
semaphore_destroy
1280+
task_get_special_port_from_user
1281+
task_info_from_user
1282+
task_policy_set
1283+
task_restartable_ranges_synchronize
1284+
thread_get_state_to_user
1285+
thread_info
1286+
thread_policy
1287+
thread_policy_set
1288+
thread_resume
1289+
thread_set_exception_ports
1290+
thread_suspend
1291+
)
1292+
)
12331293
)
12341294
)
12351295
)
12361296

12371297
(when (defined? 'syscall-mach)
12381298
(allow syscall-mach (with telemetry))
1299+
(allow syscall-mach (machtrap-number
1300+
MSC__kernelrpc_mach_port_construct_trap
1301+
MSC__kernelrpc_mach_port_deallocate_trap
1302+
MSC__kernelrpc_mach_port_destruct_trap
1303+
MSC__kernelrpc_mach_port_extract_member_trap
1304+
MSC__kernelrpc_mach_port_guard_trap
1305+
MSC__kernelrpc_mach_port_insert_member_trap
1306+
MSC__kernelrpc_mach_port_insert_right_trap
1307+
MSC__kernelrpc_mach_port_mod_refs_trap
1308+
MSC__kernelrpc_mach_port_request_notification_trap
1309+
MSC__kernelrpc_mach_port_type_trap
1310+
MSC__kernelrpc_mach_vm_allocate_trap
1311+
MSC__kernelrpc_mach_vm_deallocate_trap
1312+
MSC__kernelrpc_mach_vm_map_trap
1313+
MSC__kernelrpc_mach_vm_protect_trap
1314+
MSC__kernelrpc_mach_vm_purgable_control_trap
1315+
MSC_host_create_mach_voucher_trap
1316+
MSC_host_self_trap
1317+
MSC_mach_generate_activity_id
1318+
MSC_mach_msg_trap
1319+
MSC_mach_reply_port
1320+
MSC_mach_voucher_extract_attr_recipe_trap
1321+
MSC_mk_timer_arm
1322+
MSC_mk_timer_cancel
1323+
MSC_mk_timer_create
1324+
MSC_pid_for_task
1325+
MSC_semaphore_signal_trap
1326+
MSC_semaphore_timedwait_trap
1327+
MSC_semaphore_wait_trap
1328+
MSC_syscall_thread_switch
1329+
MSC_task_name_for_pid
1330+
MSC_thread_get_special_reply_port
1331+
)
1332+
)
12391333
)

0 commit comments

Comments
 (0)