summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHimanshu Agrawal <hagraw@codeaurora.org>2021-11-10 15:22:45 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2021-11-11 06:34:38 -0800
commitc61c806e027117cd9cd3b6406b980ee8afcb5154 (patch)
tree17f6baf312864f780eca359669d18d313837ba23
parent9021b7aa45dbcc735a2b0f1f07663462c9e64ad4 (diff)
sepolicy_vndr: Compilation fix for S upgrade
Change-Id: Ie41b7cc0bb91d5d92480fafa9d44bcbe8b855343
-rw-r--r--legacy/vendor/common/location_app.te3
-rw-r--r--legacy/vendor/common/property.te154
-rw-r--r--legacy/vendor/common/qti_logkit_app.te4
-rw-r--r--legacy/vendor/common/system_app.te4
-rw-r--r--legacy/vendor/test/property.te6
-rw-r--r--qva/vendor/test/property.te6
6 files changed, 88 insertions, 89 deletions
diff --git a/legacy/vendor/common/location_app.te b/legacy/vendor/common/location_app.te
index 104c78fe..116ca31b 100644
--- a/legacy/vendor/common/location_app.te
+++ b/legacy/vendor/common/location_app.te
@@ -26,7 +26,6 @@
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
hal_client_domain(vendor_location_app, hal_perf)
-qmux_socket(vendor_location_app)
#Permissions for JDWP
userdebug_or_eng(`
@@ -54,4 +53,4 @@ allow vendor_location_app radio_service:service_manager find;
allowxperm vendor_location_app self:socket ioctl msm_sock_ipc_ioctls;
allow vendor_location_app self:qipcrtr_socket create_socket_perms_no_ioctl;
allow vendor_location_app sysfs_data:file r_file_perms;
-unix_socket_connect(vendor_location_app, vendor_dpmtcm, vendor_dpmd) \ No newline at end of file
+unix_socket_connect(vendor_location_app, vendor_dpmtcm, vendor_dpmd)
diff --git a/legacy/vendor/common/property.te b/legacy/vendor/common/property.te
index bd556973..49a50027 100644
--- a/legacy/vendor/common/property.te
+++ b/legacy/vendor/common/property.te
@@ -26,160 +26,160 @@
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# property for uicc_daemon
-type qcom_ims_prop, property_type;
-type ctl_vendor_qmuxd_prop, property_type;
-type ctl_vendor_netmgrd_prop, property_type;
-type ctl_vendor_port-bridge_prop, property_type;
-type ctl_qcrild_prop, property_type;
-type vendor_tee_listener_prop, property_type;
-type ctl_vendor_rild_prop, property_type;
+vendor_restricted_prop(qcom_ims_prop)
+vendor_internal_prop(ctl_vendor_qmuxd_prop)
+vendor_internal_prop(ctl_vendor_netmgrd_prop)
+vendor_internal_prop(ctl_vendor_port-bridge_prop)
+vendor_internal_prop(ctl_qcrild_prop)
+vendor_restricted_prop(vendor_tee_listener_prop)
+vendor_internal_prop(ctl_vendor_rild_prop)
# property for LKCore ctl start
-type ctl_LKCore_prop, property_type;
-
-type freq_prop, property_type;
-type vendor_vm_bms_prop, property_type; #To start vm_bms
-type vendor_dataqti_prop, property_type;
-type vendor_dataadpl_prop, property_type;
-type vendor_dataqdp_prop, property_type;
-type vendor_ipacm_prop, property_type;
-type vendor_ipacm-diag_prop, property_type;
-type cnd_vendor_prop, property_type;
-type sensors_prop, property_type;
-type slpi_prop, property_type;
-type vendor_msm_irqbalance_prop, property_type;
-type vendor_msm_irqbl_sdm630_prop, property_type;
-type camera_prop, property_type;
-type spcomlib_prop, property_type;
-type vendor_display_prop, property_type;
-type scr_enabled_prop, property_type;
-type bg_daemon_prop, property_type;
-type bg_boot_complete_prop, property_type;
-type vendor_opengles_prop, property_type;
-type vendor_mdm_helper_prop, property_type;
-type vendor_mpctl_prop, property_type;
-type vendor_iop_prop, property_type;
-type public_vendor_default_prop, property_type;
+vendor_restricted_prop(ctl_LKCore_prop)
+
+vendor_internal_prop(freq_prop)
+vendor_internal_prop(vendor_vm_bms_prop) #To start vm_bms
+vendor_internal_prop(vendor_dataqti_prop)
+vendor_internal_prop(vendor_dataadpl_prop)
+vendor_internal_prop(vendor_dataqdp_prop)
+vendor_internal_prop(vendor_ipacm_prop)
+vendor_internal_prop(vendor_ipacm-diag_prop)
+vendor_restricted_prop(cnd_vendor_prop)
+vendor_internal_prop(sensors_prop)
+vendor_restricted_prop(slpi_prop)
+vendor_internal_prop(vendor_msm_irqbalance_prop)
+vendor_internal_prop(vendor_msm_irqbl_sdm630_prop)
+vendor_restricted_prop(camera_prop)
+vendor_internal_prop(spcomlib_prop)
+vendor_restricted_prop(vendor_display_prop)
+vendor_restricted_prop(scr_enabled_prop)
+vendor_restricted_prop(bg_daemon_prop)
+vendor_restricted_prop(bg_boot_complete_prop)
+vendor_restricted_prop(vendor_opengles_prop)
+vendor_internal_prop(vendor_mdm_helper_prop)
+vendor_restricted_prop(vendor_mpctl_prop)
+vendor_restricted_prop(vendor_iop_prop)
+vendor_restricted_prop(public_vendor_default_prop)
#Scroll Pre-obtain
-type vendor_scroll_prop, property_type;
+vendor_restricted_prop(vendor_scroll_prop)
# properties for ActivityManager tuning
-type vendor_am_prop, property_type;
+vendor_restricted_prop(vendor_am_prop)
#Needed for ubwc support
-type vendor_gralloc_prop, property_type;
+vendor_restricted_prop(vendor_gralloc_prop)
-type fm_prop, property_type;
-type chgdiabled_prop, property_type;
+vendor_restricted_prop(fm_prop)
+vendor_restricted_prop(chgdiabled_prop)
vendor_restricted_prop(vendor_xlat_prop);
# property for location
-type location_prop, property_type;
+vendor_internal_prop(location_prop)
#properites for init.qcom.sh script
-type vendor_usb_prop, property_type;
+vendor_internal_prop(vendor_usb_prop)
-type vendor_coresight_prop, property_type;
+vendor_restricted_prop(vendor_coresight_prop)
-type vendor_alarm_boot_prop, property_type;
+vendor_restricted_prop(vendor_alarm_boot_prop)
-type vendor_wifi_ftmd_prop, property_type;
+vendor_restricted_prop(vendor_wifi_ftmd_prop)
# WIGIG
-type vendor_wigig_prop, property_type;
-type ctl_vendor_wigigsvc_prop, property_type;
+vendor_internal_prop(vendor_wigig_prop)
+vendor_internal_prop(ctl_vendor_wigigsvc_prop)
#HWUI property
-type hwui_prop, property_type;
+vendor_restricted_prop(hwui_prop)
-type graphics_vulkan_prop, property_type;
+vendor_restricted_prop(graphics_vulkan_prop)
#cgroup follow
-type vendor_cgroup_follow_prop, property_type;
+vendor_restricted_prop(vendor_cgroup_follow_prop)
#Bservice property
-type bservice_prop, property_type;
+vendor_restricted_prop(bservice_prop)
#Delayed Service Reschedule property
-type reschedule_service_prop, property_type;
+vendor_restricted_prop(reschedule_service_prop)
#boot mode property
-type vendor_boot_mode_prop, property_type;
+vendor_internal_prop(vendor_boot_mode_prop)
#properties for nfc
-type nfc_nq_prop, property_type;
+vendor_restricted_prop(nfc_nq_prop)
-type vendor_rild_libpath_prop, property_type;
+vendor_internal_prop(vendor_rild_libpath_prop)
#Peripheral manager
-type vendor_per_mgr_state_prop, property_type;
+vendor_restricted_prop(vendor_per_mgr_state_prop)
-type vendor_system_prop, property_type;
+vendor_internal_prop(vendor_system_prop)
# Bluetooth props
-type vendor_bluetooth_prop, property_type;
+vendor_restricted_prop(vendor_bluetooth_prop)
# HBTP
-type ctl_vendor_hbtp_prop, property_type;
+vendor_internal_prop(ctl_vendor_hbtp_prop)
# factory properties
-type ctl_vendor_mmid_prop, property_type;
+vendor_internal_prop(ctl_vendor_mmid_prop)
#qcc property
-#type vendor_qdma_prop, property_type;
+#vendor_internal_prop(vendor_qdma_prop)
vendor_public_prop(vendor_qcc_prop);
#imsrcsservice
-type ctl_vendor_imsrcsservice_prop, property_type;
+vendor_restricted_prop(ctl_vendor_imsrcsservice_prop)
#mmi
-type vendor_mmi_prop, property_type;
+vendor_internal_prop(vendor_mmi_prop)
#time service
-type vendor_time_service_prop, property_type;
-type vendor_radio_prop, property_type;
+vendor_internal_prop(vendor_time_service_prop)
+vendor_restricted_prop(vendor_radio_prop)
# Audio props
-type vendor_audio_prop, property_type;
+vendor_restricted_prop(vendor_audio_prop)
# Audio debug props
-type vendor_audio_debug_prop, property_type;
+vendor_internal_prop(vendor_audio_debug_prop)
#ss-restart
-type vendor_ssr_prop, property_type;
+vendor_internal_prop(vendor_ssr_prop)
#ss-services (PD)
-type vendor_pd_locater_dbg_prop, property_type;
+vendor_internal_prop(vendor_pd_locater_dbg_prop)
#qdcmss property
-type vendor_qdcmss_prop, property_type;
+vendor_internal_prop(vendor_qdcmss_prop)
# Wifi Softap
-type vendor_softap_prop, property_type;
+vendor_restricted_prop(vendor_softap_prop)
#mm-video
-type vendor_video_prop, property_type;
+vendor_restricted_prop(vendor_video_prop)
#qtccconnector
-type vendor_qteeconnector_opti_prop, property_type;
+vendor_internal_prop(vendor_qteeconnector_opti_prop)
#rmt_storage
-type ctl_vendor_rmt_storage_prop, property_type;
+vendor_internal_prop(ctl_vendor_rmt_storage_prop)
-type vendor_gpu_prop, property_type;
+vendor_restricted_prop(vendor_gpu_prop)
-type vendor_data_ko_prop, property_type;
+vendor_internal_prop(vendor_data_ko_prop)
#hvdcp_opti
-type hvdcp_opti_prop, property_type;
+vendor_internal_prop(hvdcp_opti_prop)
#adsprpc props
-type adsprpc_prop, property_type;
+vendor_restricted_prop(adsprpc_prop)
#qvr property
-type qvr_prop, property_type;
+vendor_restricted_prop(qvr_prop)
#capabilityconfigstore hal (CCHAL)
-type vendor_cap_configstore_dbg_prop, property_type;
+vendor_internal_prop(vendor_cap_configstore_dbg_prop)
diff --git a/legacy/vendor/common/qti_logkit_app.te b/legacy/vendor/common/qti_logkit_app.te
index 0e1e00a2..94e4ab39 100644
--- a/legacy/vendor/common/qti_logkit_app.te
+++ b/legacy/vendor/common/qti_logkit_app.te
@@ -48,8 +48,8 @@ userdebug_or_eng(`
r_dir_file(qti_logkit_app, firmware_file);
# Access to tombstone segfaults
- allow qti_logkit_app tombstone_data_file:dir r_dir_perms;
- allow qti_logkit_app tombstone_data_file:file r_file_perms;
+ allow qti_logkit_app vendor_tombstone_data_file:dir r_dir_perms;
+ allow qti_logkit_app vendor_tombstone_data_file:file r_file_perms;
diag_use(qti_logkit_app)
')
diff --git a/legacy/vendor/common/system_app.te b/legacy/vendor/common/system_app.te
index 5615e00c..6feb0082 100644
--- a/legacy/vendor/common/system_app.te
+++ b/legacy/vendor/common/system_app.te
@@ -38,8 +38,8 @@ userdebug_or_eng(`
allow system_app su:unix_dgram_socket sendto;
# Access to tombstone segfaults
- allow system_app tombstone_data_file:dir r_dir_perms;
- allow system_app tombstone_data_file:file r_file_perms;
+ allow system_app vendor_tombstone_data_file:dir r_dir_perms;
+ allow system_app vendor_tombstone_data_file:file r_file_perms;
diag_use(system_app)
')
diff --git a/legacy/vendor/test/property.te b/legacy/vendor/test/property.te
index cc8c8731..3b8838de 100644
--- a/legacy/vendor/test/property.te
+++ b/legacy/vendor/test/property.te
@@ -24,10 +24,10 @@
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-type sensors_dbg_prop, property_type;
+vendor_restricted_prop(sensors_dbg_prop);
#WiFi Display
-type wfd_vendor_debug_prop, property_type;
+vendor_restricted_prop(wfd_vendor_debug_prop);
#debugutils HAL
-type vendor_dbg_brkpoint_prop, property_type;
+vendor_restricted_prop(vendor_dbg_brkpoint_prop);
diff --git a/qva/vendor/test/property.te b/qva/vendor/test/property.te
index 8913bfd0..95d0a1db 100644
--- a/qva/vendor/test/property.te
+++ b/qva/vendor/test/property.te
@@ -27,6 +27,6 @@
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#qspm hal debug
-type vendor_qspm_dbg_prop, property_type;
-type vendor_dbg_brkpoint_prop, property_type;
-type vendor_fda_prop, property_type;
+vendor_restricted_prop(vendor_qspm_dbg_prop);
+vendor_restricted_prop(vendor_dbg_brkpoint_prop);
+vendor_restricted_prop(vendor_fda_prop);