Skip to content

Commit

Permalink
Merge "sepolicy_vndr: Add sepolicies for eSE"
Browse files Browse the repository at this point in the history
  • Loading branch information
qctecmdr authored and Gerrit - the friendly Code Review server committed Apr 10, 2024
2 parents cb73bb3 + 0ed2a7e commit 3c71acc
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 3 deletions.
7 changes: 7 additions & 0 deletions qva/vendor/common/service_contexts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

# Changes from Qualcomm Innovation Center, Inc. are provided under the following license:
# Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
# SPDX-License-Identifier: BSD-3-Clause-Clear

vendor.qti.hardware.qxr.IQXRCoreService/default u:object_r:vendor_hal_qvrd_service:s0
vendor.qti.hardware.qxr.IQXRCamService/default u:object_r:vendor_hal_qvrd_camservice:s0
vendor.qti.hardware.qxr.IQXRModService/default u:object_r:vendor_hal_qvrd_service:s0
Expand All @@ -33,3 +37,6 @@ vendor.qti.hardware.qxr.IQXRAudioService/default u:object_r:vendor_hal_sx
vendor.qti.gnss.ILocAidlGnss/default u:object_r:hal_gnss_service:s0
vendor.qti.hardware.data.connectionfactory.IFactory/slot0 u:object_r:vendor_hal_dataconnection_service:s0
vendor.qti.hardware.data.connectionfactory.IFactory/slot1 u:object_r:vendor_hal_dataconnection_service:s0
android.hardware.security.keymint.IKeyMintDevice/strongbox u:object_r:hal_keymint_service:s0
android.hardware.security.sharedsecret.ISharedSecret/strongbox u:object_r:hal_sharedsecret_service:s0
android.hardware.security.keymint.IRemotelyProvisionedComponent/strongbox u:object_r:hal_keymint_service:s0
6 changes: 3 additions & 3 deletions qva/vendor/parrot/file_contexts
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@
# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

# Changes from Qualcomm Innovation Center are provided under the following license:
#
# Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
# Changes from Qualcomm Innovation Center, Inc. are provided under the following license:
# Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
# SPDX-License-Identifier: BSD-3-Clause-Clear

###################################
#Dev nodes
#
/dev/st54spi_gpio u:object_r:vendor_ese_gpio_device:s0
/vendor/bin/hw/android\.hardware\.security\.keymint-service-stm\.strongbox u:object_r:hal_keymint_strongbox_exec:s0
40 changes: 40 additions & 0 deletions qva/vendor/parrot/hal_keymint_strongbox.te
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Copyright (c) 2017, 2021 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
# met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following
# disclaimer in the documentation and/or other materials provided
# with the distribution.
# * Neither the name of The Linux Foundation nor the names of its
# contributors may be used to endorse or promote products derived
# from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# 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.

# Changes from Qualcomm Innovation Center, Inc. are provided under the following license:
# Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
# SPDX-License-Identifier: BSD-3-Clause-Clear

type hal_keymint_strongbox, domain;
type hal_keymint_strongbox_exec, exec_type, vendor_file_type, file_type;
init_daemon_domain(hal_keymint_strongbox)

hal_server_domain(hal_keymint_strongbox, hal_keymint)
hal_client_domain(hal_keymint_strongbox, hal_secure_element)

vndbinder_use(hal_keymint_strongbox)
get_prop(hal_keymint_strongbox, vendor_security_patch_level_prop);

0 comments on commit 3c71acc

Please sign in to comment.