summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-05-02 23:03:00 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-05-02 23:03:00 +0000
commit0187667efa363ee561d05b906b907ac3d8caaeaf (patch)
tree89c8c1b95f578a3095be827db295276a6026f1f4
parent79a9f1e20a841e3b7666af09d252621972f54bbf (diff)
parent63a5f124d0b6ff51fb96259c821d86b97cca3961 (diff)
Snap for 10052121 from 63a5f124d0b6ff51fb96259c821d86b97cca3961 to udc-release
Change-Id: I9c5c93b47bf3ea2a6edb9fb12ed4c903befaecf1
-rw-r--r--radio/sepolicy/dump_radio.te2
-rw-r--r--radio/sepolicy/file.te6
-rw-r--r--radio/sepolicy/file_contexts1
3 files changed, 9 insertions, 0 deletions
diff --git a/radio/sepolicy/dump_radio.te b/radio/sepolicy/dump_radio.te
index 146776c..7970f08 100644
--- a/radio/sepolicy/dump_radio.te
+++ b/radio/sepolicy/dump_radio.te
@@ -3,6 +3,8 @@ pixel_bugreport(dump_radio)
userdebug_or_eng(`
allow dump_radio radio_vendor_data_file:dir create_dir_perms;
allow dump_radio radio_vendor_data_file:file create_file_perms;
+ allow dump_radio tcpdump_vendor_data_file:dir r_dir_perms;
+ allow dump_radio tcpdump_vendor_data_file:file r_file_perms;
get_prop(dump_radio, vendor_rild_prop)
get_prop(dump_radio vendor_tcpdump_log_prop)
')
diff --git a/radio/sepolicy/file.te b/radio/sepolicy/file.te
new file mode 100644
index 0000000..02d0209
--- /dev/null
+++ b/radio/sepolicy/file.te
@@ -0,0 +1,6 @@
+# Data
+type tcpdump_vendor_data_file, file_type, data_file_type;
+
+userdebug_or_eng(`
+ typeattribute tcpdump_vendor_data_file mlstrustedobject;
+')
diff --git a/radio/sepolicy/file_contexts b/radio/sepolicy/file_contexts
index 558beb3..20d786c 100644
--- a/radio/sepolicy/file_contexts
+++ b/radio/sepolicy/file_contexts
@@ -1 +1,2 @@
/vendor/bin/dump/dump_radio u:object_r:dump_radio_exec:s0
+/data/vendor/tcpdump_logger(/.*)? u:object_r:tcpdump_vendor_data_file:s0