Merge 8021045140 on remote branch

Change-Id: I2de1d9a612b11817973c3628bbd8ecc48f759ae2
This commit is contained in:
Linux Build Service Account 2022-10-07 03:47:31 -07:00
commit e14f3df775
8 changed files with 63 additions and 1 deletions

8
qva/vendor/kona/attributes vendored Normal file
View file

@ -0,0 +1,8 @@
# Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
# SPDX-License-Identifier: BSD-3-Clause-Clear
# attribute for hal_nordic
attribute vendor_hal_nordic_client;
attribute vendor_hal_nordic_server;
attribute vendor_hal_nordic;

View file

@ -1,4 +1,4 @@
# Copyright (c) 2019, The Linux Foundation. All rights reserved.
# Copyright (c) 2019, 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
@ -24,6 +24,14 @@
# 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 are provided under the following license:
# Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
# SPDX-License-Identifier: BSD-3-Clause-Clear
# vendor biometricsface data file
type vendor_biometricsface_data_file, file_type, data_file_type;
# nordic node file
type vendor_nordic_sysfs_node, sysfs_type, fs_type;

View file

@ -24,7 +24,16 @@
# 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 are provided under the following license:
# Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
# SPDX-License-Identifier: BSD-3-Clause-Clear
/(vendor|system/vendor)/bin/hw/android\.hardware\.biometrics\.face@1\.0-service u:object_r:vendor_biometricsface_exec:s0
# nordic node file
/(vendor|system/vendor)/bin/hw/vendor\.shadowcreator\.hardware\.nordic@1\.0-service u:object_r:vendor_hal_nordic_default_exec:s0
/sys/devices/platform/soc/894000\.spi/spi_master/spi0/spi0\.0/jsrequest u:object_r:vendor_nordic_sysfs_node:s0
/sys/devices/platform/soc/894000\.spi/spi_master/spi0/spi0\.0/jsmem u:object_r:vendor_nordic_sysfs_node:s0
/data/vendor/face3d_dir(/.*)? u:object_r:vendor_biometricsface_data_file:s0

13
qva/vendor/kona/hal_nordic_default.te vendored Normal file
View file

@ -0,0 +1,13 @@
# Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
# SPDX-License-Identifier: BSD-3-Clause-Clear
type vendor_hal_nordic_default, domain;
type vendor_hal_nordic_default_exec, exec_type, vendor_file_type, file_type;
hal_server_domain(vendor_hal_nordic_default, vendor_hal_nordic)
init_daemon_domain(vendor_hal_nordic_default);
binder_call(vendor_hal_nordic_client, vendor_hal_nordic_server)
binder_call(vendor_hal_nordic_server, vendor_hal_nordic_client)
hal_attribute_hwservice(vendor_hal_nordic, vendor_hal_nordic_hwservice)
allow vendor_hal_nordic_default vendor_nordic_sysfs_node:file { open read write };
allow vendor_hal_nordic_default ion_device:chr_file rw_file_perms;
hal_client_domain(vendor_hal_nordic_default, hal_allocator)

5
qva/vendor/kona/hwservice.te vendored Normal file
View file

@ -0,0 +1,5 @@
# Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
# SPDX-License-Identifier: BSD-3-Clause-Clear
# hal nordic hwservice
type vendor_hal_nordic_hwservice, hwservice_manager_type,protected_hwservice;

5
qva/vendor/kona/hwservice_contexts vendored Normal file
View file

@ -0,0 +1,5 @@
# Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
# SPDX-License-Identifier: BSD-3-Clause-Clear
# hal nordic hwservice
vendor.shadowcreator.hardware.nordic::INordic u:object_r:vendor_hal_nordic_hwservice:s0

9
qva/vendor/kona/nordic_app.te vendored Normal file
View file

@ -0,0 +1,9 @@
# Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
# SPDX-License-Identifier: BSD-3-Clause-Clear
# hal nordic app te
type vendor_nordic_app, domain;
app_domain(vendor_nordic_app)
hal_client_domain(vendor_nordic_app, vendor_hal_nordic);
allow vendor_nordic_app activity_service:service_manager find;
allow vendor_nordic_app vendor_qvrd_vndr:fd use;

5
qva/vendor/kona/seapp_contexts vendored Normal file
View file

@ -0,0 +1,5 @@
# Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
# SPDX-License-Identifier: BSD-3-Clause-Clear
#Add new domain for nordic service app
user=_app seinfo=platform name=com.shadowcreator.service.handshank domain=vendor_nordic_app type=app_data_file levelFrom=all