move aoc settings to gs-common
Bug: 248426917
Test: boot with aoc launched
Change-Id: I7f3e65f9b27510bff657ca46c9688932a0352437
diff --git a/aoc/sepolicy/aocdump.te b/aoc/sepolicy/aocdump.te
new file mode 100644
index 0000000..0801ec0
--- /dev/null
+++ b/aoc/sepolicy/aocdump.te
@@ -0,0 +1,18 @@
+type aocdump, domain;
+type aocdump_exec, vendor_file_type, exec_type, file_type;
+init_daemon_domain(aocdump)
+
+userdebug_or_eng(`
+ # Permit communication with AoC
+ allow aocdump aoc_device:chr_file rw_file_perms;
+
+ allow aocdump radio_vendor_data_file:dir rw_dir_perms;
+ allow aocdump radio_vendor_data_file:file create_file_perms;
+ allow aocdump wifi_logging_data_file:dir create_dir_perms;
+ allow aocdump wifi_logging_data_file:file create_file_perms;
+ set_prop(aocdump, vendor_audio_prop);
+ r_dir_file(aocdump, proc_asound)
+
+ allow aocdump self:unix_stream_socket create_stream_socket_perms;
+ allow aocdump audio_vendor_data_file:sock_file { create unlink };
+')