Merge "Add sepolicy config for tethering_u_or_later_native namespace" into udc-dev am: 682b2421d1
Original change: https://googleplex-android-review.googlesource.com/c/platform/system/sepolicy/+/23214698 Change-Id: I65906f9aedc8d7f92455c206779792b260c9ad2e Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
de2f06a569
10 changed files with 14 additions and 0 deletions
|
@ -31,6 +31,7 @@ set_prop(flags_health_check, device_config_memory_safety_native_boot_prop)
|
|||
set_prop(flags_health_check, device_config_memory_safety_native_prop)
|
||||
set_prop(flags_health_check, device_config_remote_key_provisioning_native_prop)
|
||||
set_prop(flags_health_check, device_config_camera_native_prop)
|
||||
set_prop(flags_health_check, device_config_tethering_u_or_later_native_prop)
|
||||
|
||||
# system property device_config_boot_count_prop is used for deciding when to perform server
|
||||
# configurable flags related disaster recovery. Mistakenly set up by unrelated components can, at a
|
||||
|
|
|
@ -63,6 +63,8 @@ allow network_stack network_stack_service:service_manager find;
|
|||
allow network_stack { fs_bpf_net_private fs_bpf_net_shared fs_bpf_netd_readonly fs_bpf_netd_shared fs_bpf_tethering }:dir search;
|
||||
allow network_stack { fs_bpf_net_private fs_bpf_net_shared fs_bpf_netd_readonly fs_bpf_netd_shared fs_bpf_tethering }:file { getattr read write };
|
||||
allow network_stack bpfloader:bpf { map_read map_write prog_run };
|
||||
# allow Tethering(network_stack process) to read flag value in tethering_u_or_later_native namespace
|
||||
get_prop(network_stack, device_config_tethering_u_or_later_native_prop)
|
||||
|
||||
# Use XFRM (IPsec) netlink sockets
|
||||
allow network_stack self:netlink_xfrm_socket { create_socket_perms_no_ioctl nlmsg_write nlmsg_read };
|
||||
|
|
|
@ -14,6 +14,7 @@ system_internal_prop(device_config_window_manager_native_boot_prop)
|
|||
system_internal_prop(device_config_configuration_prop)
|
||||
system_internal_prop(device_config_connectivity_prop)
|
||||
system_internal_prop(device_config_swcodec_native_prop)
|
||||
system_internal_prop(device_config_tethering_u_or_later_native_prop)
|
||||
system_internal_prop(dmesgd_start_prop)
|
||||
system_internal_prop(fastbootd_protocol_prop)
|
||||
system_internal_prop(gsid_prop)
|
||||
|
|
|
@ -274,6 +274,7 @@ persist.device_config.virtualization_framework_native. u:object_r:device_config_
|
|||
persist.device_config.window_manager_native_boot. u:object_r:device_config_window_manager_native_boot_prop:s0
|
||||
persist.device_config.memory_safety_native_boot. u:object_r:device_config_memory_safety_native_boot_prop:s0
|
||||
persist.device_config.memory_safety_native. u:object_r:device_config_memory_safety_native_prop:s0
|
||||
persist.device_config.tethering_u_or_later_native. u:object_r:device_config_tethering_u_or_later_native_prop:s0
|
||||
|
||||
# F2FS smart idle maint prop
|
||||
persist.device_config.storage_native_boot.smart_idle_maint_enabled u:object_r:smart_idle_maint_enabled_prop:s0 exact bool
|
||||
|
|
|
@ -769,6 +769,7 @@ set_prop(system_server, device_config_virtualization_framework_native_prop)
|
|||
set_prop(system_server, device_config_memory_safety_native_boot_prop)
|
||||
set_prop(system_server, device_config_memory_safety_native_prop)
|
||||
set_prop(system_server, device_config_remote_key_provisioning_native_prop)
|
||||
set_prop(system_server, device_config_tethering_u_or_later_native_prop)
|
||||
set_prop(system_server, smart_idle_maint_enabled_prop)
|
||||
set_prop(system_server, arm64_memtag_prop)
|
||||
|
||||
|
@ -1323,6 +1324,7 @@ neverallow {
|
|||
device_config_sys_traced_prop
|
||||
device_config_swcodec_native_prop
|
||||
device_config_window_manager_native_boot_prop
|
||||
device_config_tethering_u_or_later_native_prop
|
||||
}:property_service set;
|
||||
|
||||
# Only allow system_server and init to set tuner_server_ctl_prop
|
||||
|
|
|
@ -31,6 +31,7 @@ set_prop(flags_health_check, device_config_memory_safety_native_boot_prop)
|
|||
set_prop(flags_health_check, device_config_memory_safety_native_prop)
|
||||
set_prop(flags_health_check, device_config_remote_key_provisioning_native_prop)
|
||||
set_prop(flags_health_check, device_config_camera_native_prop)
|
||||
set_prop(flags_health_check, device_config_tethering_u_or_later_native_prop)
|
||||
|
||||
# system property device_config_boot_count_prop is used for deciding when to perform server
|
||||
# configurable flags related disaster recovery. Mistakenly set up by unrelated components can, at a
|
||||
|
|
|
@ -63,6 +63,8 @@ allow network_stack network_stack_service:service_manager find;
|
|||
allow network_stack { fs_bpf_net_private fs_bpf_net_shared fs_bpf_netd_readonly fs_bpf_netd_shared fs_bpf_tethering }:dir search;
|
||||
allow network_stack { fs_bpf_net_private fs_bpf_net_shared fs_bpf_netd_readonly fs_bpf_netd_shared fs_bpf_tethering }:file { getattr read write };
|
||||
allow network_stack bpfloader:bpf { map_read map_write prog_run };
|
||||
# allow Tethering(network_stack process) to read flag value in tethering_u_or_later_native namespace
|
||||
get_prop(network_stack, device_config_tethering_u_or_later_native_prop)
|
||||
|
||||
# Use XFRM (IPsec) netlink sockets
|
||||
allow network_stack self:netlink_xfrm_socket { create_socket_perms_no_ioctl nlmsg_write nlmsg_read };
|
||||
|
|
|
@ -14,6 +14,7 @@ system_internal_prop(device_config_window_manager_native_boot_prop)
|
|||
system_internal_prop(device_config_configuration_prop)
|
||||
system_internal_prop(device_config_connectivity_prop)
|
||||
system_internal_prop(device_config_swcodec_native_prop)
|
||||
system_internal_prop(device_config_tethering_u_or_later_native_prop)
|
||||
system_internal_prop(dmesgd_start_prop)
|
||||
system_internal_prop(fastbootd_protocol_prop)
|
||||
system_internal_prop(gsid_prop)
|
||||
|
|
|
@ -274,6 +274,7 @@ persist.device_config.virtualization_framework_native. u:object_r:device_config_
|
|||
persist.device_config.window_manager_native_boot. u:object_r:device_config_window_manager_native_boot_prop:s0
|
||||
persist.device_config.memory_safety_native_boot. u:object_r:device_config_memory_safety_native_boot_prop:s0
|
||||
persist.device_config.memory_safety_native. u:object_r:device_config_memory_safety_native_prop:s0
|
||||
persist.device_config.tethering_u_or_later_native. u:object_r:device_config_tethering_u_or_later_native_prop:s0
|
||||
|
||||
# F2FS smart idle maint prop
|
||||
persist.device_config.storage_native_boot.smart_idle_maint_enabled u:object_r:smart_idle_maint_enabled_prop:s0 exact bool
|
||||
|
|
|
@ -769,6 +769,7 @@ set_prop(system_server, device_config_virtualization_framework_native_prop)
|
|||
set_prop(system_server, device_config_memory_safety_native_boot_prop)
|
||||
set_prop(system_server, device_config_memory_safety_native_prop)
|
||||
set_prop(system_server, device_config_remote_key_provisioning_native_prop)
|
||||
set_prop(system_server, device_config_tethering_u_or_later_native_prop)
|
||||
set_prop(system_server, smart_idle_maint_enabled_prop)
|
||||
set_prop(system_server, arm64_memtag_prop)
|
||||
|
||||
|
@ -1323,6 +1324,7 @@ neverallow {
|
|||
device_config_sys_traced_prop
|
||||
device_config_swcodec_native_prop
|
||||
device_config_window_manager_native_boot_prop
|
||||
device_config_tethering_u_or_later_native_prop
|
||||
}:property_service set;
|
||||
|
||||
# Only allow system_server and init to set tuner_server_ctl_prop
|
||||
|
|
Loading…
Reference in a new issue