sepolicy: qcc: move QCC to system-ext partition

qdmastatsd renamed to qcc_trd and qdma renamed to qcc
vendor_ prefixed

CRs-fixed: 2605804
Change-Id: I55b699228bcf46de57c2dc019fac80bcc55424a1
diff --git a/generic/vendor/common/device.te b/generic/vendor/common/device.te
index 624c2c0..757a6c8 100644
--- a/generic/vendor/common/device.te
+++ b/generic/vendor/common/device.te
@@ -48,6 +48,7 @@
 type vendor_qsee_ipc_irq_spss_device, dev_type;
 type vendor_qdsp_device, dev_type, mlstrustedobject;
 type vendor_ramdump_device, dev_type;
+type vendor_ramdump_microdump_modem_device, dev_type;
 type vendor_rmnet_device, dev_type;
 type vendor_gpt_block_device, dev_type;
 type vendor_ramdump_block_device, dev_type;
diff --git a/generic/vendor/common/file_contexts b/generic/vendor/common/file_contexts
index 781ed52..578769c 100644
--- a/generic/vendor/common/file_contexts
+++ b/generic/vendor/common/file_contexts
@@ -59,6 +59,7 @@
 /dev/avtimer                                    u:object_r:vendor_avtimer_device:s0
 /dev/subsys_.*                                  u:object_r:vendor_ssr_device:s0
 /dev/ramdump_.*                                 u:object_r:vendor_ramdump_device:s0
+/dev/ramdump_microdump_modem                    u:object_r:vendor_ramdump_microdump_modem_device:s0
 /dev/hbtp_input                                 u:object_r:vendor_hbtp_device:s0
 /dev/hbtp_vm                                    u:object_r:vendor_hbtp_device:s0
 /dev/sg[0-9]+                                   u:object_r:vendor_sg_device:s0
diff --git a/generic/vendor/common/location.te b/generic/vendor/common/location.te
index 8e143bc..9ffe420 100644
--- a/generic/vendor/common/location.te
+++ b/generic/vendor/common/location.te
@@ -1,4 +1,4 @@
-# Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
+# Copyright (c) 2018-2020, The Linux Foundation. All rights reserved.
 #
 # Redistribution and use in source and binary forms, with or without
 # modification, are permitted provided that the following conditions are
@@ -40,8 +40,8 @@
 
 get_prop(vendor_location, hwservicemanager_prop)
 get_prop(vendor_location, vendor_cnd_prop)
-#xtra-daemon access to qdma properties
-get_prop(vendor_location, vendor_qdma_prop)
+#xtra-daemon access to qcc properties
+get_prop(vendor_location, vendor_qcc_prop)
 
 allow vendor_location fwk_sensor_hwservice:hwservice_manager find;
 binder_call(vendor_location, system_server)
diff --git a/generic/vendor/common/te_macros b/generic/vendor/common/te_macros
index 4d3453b..62e8dc8 100644
--- a/generic/vendor/common/te_macros
+++ b/generic/vendor/common/te_macros
@@ -125,16 +125,6 @@
 ')
 
 #####################################
-# qdma_file_socket(clientdomain)
-# Allow client domain to connecto and send
-# via a local socket to the qdma domain.
-define(`qdma_file_socket', `
-allow $1 vendor_qdma_socket:dir r_dir_perms;
-allow $1 vendor_qdma_socket:sock_file { read getattr write };
-allow $1 vendor_qdma_app:unix_stream_socket { connectto };
-')
-
-#####################################
 # coredata_datavendor_migration(domain, old_data_label, data_vendor_label)
 # Allow a base set of permissions required for a sh  to copy data from /data to /data/vendor
 #