From 4605f4b82c5ee79494c7b7ec5dfc917d1f576623 Mon Sep 17 00:00:00 2001 From: Victor Liu Date: Thu, 22 Apr 2021 08:30:47 -0700 Subject: [PATCH] uwb: allow uwb service to access nfc service 04-22 00:47:16.771 9777 9777 V UwbService: Service: Getting Nfc adapter 04-22 00:47:16.771 412 412 E SELinux : avc: denied { find } for pid=9777 uid=1000 name=nfc scontext=u:r:uwb_vendor_app: s0:c232,c259,c512,c768 tcontext=u:object_r:nfc_service:s0 tclass=service_manager permissive=1 Bug: 185389669 Test: on device, no avc: denied message Change-Id: Ib31385d88a68878eaca5e53b4ddeddc5a6e7c87d --- whitechapel/vendor/google/uwb_vendor_app.te | 1 + 1 file changed, 1 insertion(+) diff --git a/whitechapel/vendor/google/uwb_vendor_app.te b/whitechapel/vendor/google/uwb_vendor_app.te index ef771dd5..e9f5a7cc 100644 --- a/whitechapel/vendor/google/uwb_vendor_app.te +++ b/whitechapel/vendor/google/uwb_vendor_app.te @@ -6,5 +6,6 @@ add_service(uwb_vendor_app, uwb_vendor_service) allow uwb_vendor_app app_api_service:service_manager find; allow uwb_vendor_app hal_uwb_service:service_manager find; +allow uwb_vendor_app nfc_service:service_manager find; allow uwb_vendor_app uwb_vendor_data_file:dir { getattr search };