Merge "sepolicy_vndr: allow qvrd to access sensors"

This commit is contained in:
qctecmdr 2022-01-28 03:09:59 -08:00 committed by Gerrit - the friendly Code Review server
commit 9054e3414b
2 changed files with 8 additions and 1 deletions

View file

@ -44,6 +44,9 @@ allow vendor_hal_qvrservice_qti_socket_fd_use_client vendor_qvrd_vndr: fd use;
binder_use(vendor_qvrd_vndr);
allow vendor_qvrd_vndr vendor_hal_qvrservice_qti_socket_fd_use_client:process setsched;
#allow qvrd_vndr to call sensor native service
binder_call(vendor_qvrd_vndr, system_server);
#
# General
#
@ -152,3 +155,6 @@ get_prop(vendor_qvrd_vndr, vendor_adsprpc_prop)
get_prop(vendor_qvrd_vndr, vendor_mpctl_prop)
allow vendor_qvrd_vndr proc_uptime:file r_file_perms;
unix_socket_connect(vendor_qvrd_vndr, logdr, logd)
#suppressing the error messages
dontaudit vendor_qvrd_vndr vendor_xdsp_device:chr_file r_file_perms;

3
qva/vendor/common/system_server.te vendored Normal file → Executable file
View file

@ -1,4 +1,4 @@
# Copyright (c) 2019-2021, The Linux Foundation. All rights reserved.
# Copyright (c) 2019-2022, 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
@ -31,6 +31,7 @@ hal_client_domain(system_server, vendor_hal_iop)
hal_client_domain(system_server, vendor_hal_srvctracker)
binder_call(system_server, vendor_hal_srvctracker_default)
binder_call(system_server, vendor_qvrd_vndr)
allow system_server vendor_proc_audiod:file r_file_perms;