sepolicy: legacy: Update for QTI Health AIDL
Change-Id: I521e4bca870904e3ffa836e3404ea9e1c3a9b43a
This commit is contained in:
parent
07db5146a0
commit
b5d53449ab
|
@ -354,6 +354,7 @@
|
||||||
/(vendor|system/vendor)/bin/power_off_alarm u:object_r:power_off_alarm_exec:s0
|
/(vendor|system/vendor)/bin/power_off_alarm u:object_r:power_off_alarm_exec:s0
|
||||||
/vendor/bin/hw/vendor\.qti\.hardware\.vibrator@1\.[0-2]-service u:object_r:hal_vibrator_default_exec:s0
|
/vendor/bin/hw/vendor\.qti\.hardware\.vibrator@1\.[0-2]-service u:object_r:hal_vibrator_default_exec:s0
|
||||||
/vendor/bin/hw/vendor\.qti\.hardware\.vibrator\.service u:object_r:hal_vibrator_default_exec:s0
|
/vendor/bin/hw/vendor\.qti\.hardware\.vibrator\.service u:object_r:hal_vibrator_default_exec:s0
|
||||||
|
/vendor/bin/hw/android\.hardware\.health-service\.qti u:object_r:hal_health_default_exec:s0
|
||||||
/vendor/bin/hw/android\.hardware\.usb\@1\.[0-2]-service-qti u:object_r:hal_usb_default_qti_exec:s0
|
/vendor/bin/hw/android\.hardware\.usb\@1\.[0-2]-service-qti u:object_r:hal_usb_default_qti_exec:s0
|
||||||
/(vendor|system/vendor)/bin/hw/android\.hardware\.usb\.gadget@1\.0-service-qti u:object_r:hal_usb_gadget_qti_exec:s0
|
/(vendor|system/vendor)/bin/hw/android\.hardware\.usb\.gadget@1\.0-service-qti u:object_r:hal_usb_gadget_qti_exec:s0
|
||||||
/(vendor|system/vendor)/bin/hw/vendor\.qti\.hardware\.scve\.panorama@1\.0-service u:object_r:vendor_scve_exec:s0
|
/(vendor|system/vendor)/bin/hw/vendor\.qti\.hardware\.scve\.panorama@1\.0-service u:object_r:vendor_scve_exec:s0
|
||||||
|
|
|
@ -1,36 +1,7 @@
|
||||||
# Copyright (c) 2017, The Linux Foundation. All rights reserved.
|
# Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||||
|
# SPDX-License-Identifier: BSD-3-Clause-Clear
|
||||||
|
|
||||||
# Redistribution and use in source and binary forms, with or without
|
allow hal_health sysfs_battery_supply:{file lnk_file} r_file_perms;
|
||||||
# modification, are permitted provided that the following conditions are
|
allow hal_health sysfs_battery_supply:dir r_dir_perms;
|
||||||
# met:
|
allow hal_health sysfs_usb_supply:{file lnk_file} r_file_perms;
|
||||||
# * Redistributions of source code must retain the above copyright
|
allow hal_health sysfs_usb_supply:dir r_dir_perms;
|
||||||
# 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.
|
|
||||||
|
|
||||||
r_dir_file(hal_health, sysfs_battery_supply);
|
|
||||||
r_dir_file(hal_health, sysfs_usb_supply);
|
|
||||||
|
|
||||||
allow hal_health hal_health_default:dir search;
|
|
||||||
|
|
||||||
allow hal_health {
|
|
||||||
sysfs_battery_supply
|
|
||||||
sysfs_usb_supply
|
|
||||||
}:file rw_file_perms;
|
|
||||||
|
|
Loading…
Reference in New Issue