miuicamera: Create MiuiCamera SELinux domain

Change-Id: Ia104c810aa85491531931dc5bfbf8f787493b2c0
This commit is contained in:
Alexander Winkowski 2024-01-05 12:09:54 +00:00 committed by basamaryan
parent 9aaef87533
commit c33a6e6115
No known key found for this signature in database
GPG Key ID: 707BA6C82329E8F9
3 changed files with 18 additions and 0 deletions

View File

@ -14,4 +14,6 @@
# limitations under the License. # limitations under the License.
# #
BOARD_VENDOR_SEPOLICY_DIRS += vendor/xiaomi/sweet-miuicamera/sepolicy/vendor
include vendor/xiaomi/sweet-miuicamera/common/BoardConfigVendor.mk include vendor/xiaomi/sweet-miuicamera/common/BoardConfigVendor.mk

15
sepolicy/vendor/miuicamera_app.te vendored Normal file
View File

@ -0,0 +1,15 @@
type miuicamera_app, domain, coredomain;
app_domain(miuicamera_app)
net_domain(miuicamera_app)
allow miuicamera_app {
app_api_service
audioserver_service
cameraserver_service
mediaextractor_service
mediametrics_service
mediaserver_service
}:service_manager find;
dontaudit miuicamera_app radio_service:service_manager find;

1
sepolicy/vendor/seapp_contexts vendored Normal file
View File

@ -0,0 +1 @@
user=_app isPrivApp=true name=com.android.camera domain=miuicamera_app type=privapp_data_file levelFrom=all