Skip to content

Commit 88da915

Browse files
author
android-build-team Robot
committed
Snap for 6649874 from 9b70a2c to rvc-qpr1-release
Change-Id: I46b1abbab762e507c2597ff71fd9851935c93a55
2 parents 90c65f1 + 9b70a2c commit 88da915

File tree

10 files changed

+16
-0
lines changed

10 files changed

+16
-0
lines changed

prebuilts/api/30.0/private/compat/29.0/29.0.ignore.cil

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
platform_compat_service
3939
ctl_apexd_prop
4040
dataloader_manager_service
41+
debugfs_kprobes
4142
device_config_storage_native_boot_prop
4243
device_config_sys_traced_prop
4344
device_config_window_manager_native_boot_prop

prebuilts/api/30.0/private/domain.te

+3
Original file line numberDiff line numberDiff line change
@@ -369,3 +369,6 @@ neverallow {
369369
# This property is being removed. Remove remaining access.
370370
neverallow { domain -init -system_server -vendor_init } net_dns_prop:property_service set;
371371
neverallow { domain -dumpstate -init -system_server -vendor_init } net_dns_prop:file read;
372+
373+
# Kprobes should only be used by adb root
374+
neverallow { domain -init -vendor_init } debugfs_kprobes:file *;

prebuilts/api/30.0/private/file_contexts

+2
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,8 @@
453453
/(system_ext|system/system_ext)/bin/aidl_lazy_test_server u:object_r:aidl_lazy_test_server_exec:s0
454454
/(system_ext|system/system_ext)/bin/hidl_lazy_test_server u:object_r:hidl_lazy_test_server_exec:s0
455455

456+
/(system_ext|system/system_ext)/lib(64)?(/.*)? u:object_r:system_lib_file:s0
457+
456458
#############################
457459
# Vendor files from /(product|system/product)/vendor_overlay
458460
#

prebuilts/api/30.0/private/genfs_contexts

+1
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ genfscon sysfs /module/tcp_cubic/parameters u:object_r:sysfs_net:s0
153153
genfscon sysfs /module/wlan/parameters/fwpath u:object_r:sysfs_wlan_fwpath:s0
154154
genfscon sysfs /devices/virtual/timed_output/vibrator/enable u:object_r:sysfs_vibrator:s0
155155

156+
genfscon debugfs /kprobes u:object_r:debugfs_kprobes:s0
156157
genfscon debugfs /mmc0 u:object_r:debugfs_mmc:s0
157158
genfscon debugfs /tracing u:object_r:debugfs_tracing_debug:s0
158159
genfscon tracefs / u:object_r:debugfs_tracing_debug:s0

prebuilts/api/30.0/public/file.te

+1
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ type sdcardfs, sdcard_type, fs_type, mlstrustedobject;
131131
type vfat, sdcard_type, fs_type, mlstrustedobject;
132132
type exfat, sdcard_type, fs_type, mlstrustedobject;
133133
type debugfs, fs_type, debugfs_type;
134+
type debugfs_kprobes, fs_type, debugfs_type;
134135
type debugfs_mmc, fs_type, debugfs_type;
135136
type debugfs_trace_marker, fs_type, debugfs_type, mlstrustedobject;
136137
type debugfs_tracing, fs_type, debugfs_type, mlstrustedobject;

private/compat/29.0/29.0.ignore.cil

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
platform_compat_service
3939
ctl_apexd_prop
4040
dataloader_manager_service
41+
debugfs_kprobes
4142
device_config_storage_native_boot_prop
4243
device_config_sys_traced_prop
4344
device_config_window_manager_native_boot_prop

private/domain.te

+3
Original file line numberDiff line numberDiff line change
@@ -369,3 +369,6 @@ neverallow {
369369
# This property is being removed. Remove remaining access.
370370
neverallow { domain -init -system_server -vendor_init } net_dns_prop:property_service set;
371371
neverallow { domain -dumpstate -init -system_server -vendor_init } net_dns_prop:file read;
372+
373+
# Kprobes should only be used by adb root
374+
neverallow { domain -init -vendor_init } debugfs_kprobes:file *;

private/file_contexts

+2
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,8 @@
453453
/(system_ext|system/system_ext)/bin/aidl_lazy_test_server u:object_r:aidl_lazy_test_server_exec:s0
454454
/(system_ext|system/system_ext)/bin/hidl_lazy_test_server u:object_r:hidl_lazy_test_server_exec:s0
455455

456+
/(system_ext|system/system_ext)/lib(64)?(/.*)? u:object_r:system_lib_file:s0
457+
456458
#############################
457459
# Vendor files from /(product|system/product)/vendor_overlay
458460
#

private/genfs_contexts

+1
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ genfscon sysfs /module/tcp_cubic/parameters u:object_r:sysfs_net:s0
153153
genfscon sysfs /module/wlan/parameters/fwpath u:object_r:sysfs_wlan_fwpath:s0
154154
genfscon sysfs /devices/virtual/timed_output/vibrator/enable u:object_r:sysfs_vibrator:s0
155155

156+
genfscon debugfs /kprobes u:object_r:debugfs_kprobes:s0
156157
genfscon debugfs /mmc0 u:object_r:debugfs_mmc:s0
157158
genfscon debugfs /tracing u:object_r:debugfs_tracing_debug:s0
158159
genfscon tracefs / u:object_r:debugfs_tracing_debug:s0

public/file.te

+1
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ type sdcardfs, sdcard_type, fs_type, mlstrustedobject;
131131
type vfat, sdcard_type, fs_type, mlstrustedobject;
132132
type exfat, sdcard_type, fs_type, mlstrustedobject;
133133
type debugfs, fs_type, debugfs_type;
134+
type debugfs_kprobes, fs_type, debugfs_type;
134135
type debugfs_mmc, fs_type, debugfs_type;
135136
type debugfs_trace_marker, fs_type, debugfs_type, mlstrustedobject;
136137
type debugfs_tracing, fs_type, debugfs_type, mlstrustedobject;

0 commit comments

Comments
 (0)