sm8150-common: sepolicy: Label camera helper app

Change-Id: I733ace8aa5a3c78322265e8f91ac6c3d522b0ef8
This commit is contained in:
LuK1337 2019-07-07 23:35:11 +02:00
parent 119cc4d051
commit da40640ef3
3 changed files with 12 additions and 0 deletions

View File

@ -163,6 +163,7 @@ VENDOR_SECURITY_PATCH := 2018-08-05
# SELinux # SELinux
include device/qcom/sepolicy/sepolicy.mk include device/qcom/sepolicy/sepolicy.mk
BOARD_PLAT_PRIVATE_SEPOLICY_DIR += $(VENDOR_PATH)/sepolicy/private
BOARD_SEPOLICY_DIRS += $(VENDOR_PATH)/sepolicy/vendor BOARD_SEPOLICY_DIRS += $(VENDOR_PATH)/sepolicy/vendor
# Soong namespaces # Soong namespaces

View File

@ -0,0 +1,10 @@
type camera_helper_app, domain;
app_domain(camera_helper_app)
# Allow camera_helper_app to find app_api_service
allow camera_helper_app app_api_service:service_manager find;
# Allow camera_helper_app read and write /data/data subdirectory
allow camera_helper_app system_app_data_file:dir create_dir_perms;
allow camera_helper_app system_app_data_file:{ file lnk_file } create_file_perms;

View File

@ -0,0 +1 @@
user=system seinfo=platform name=org.lineageos.camera_helper domain=camera_helper_app type=system_app_data_file