AKS: sepolicy for gamepad

Change-Id: I8d0ece364154a09f6cb41780163e71e9ae10c416
This commit is contained in:
quic_farenl 2023-01-06 18:15:51 +08:00 committed by Bruno Martins
parent d5b1835abc
commit 66fbd101af
9 changed files with 40 additions and 2 deletions

View file

@ -283,3 +283,8 @@ attribute vendor_sys_sxrauxservice_qti_socket_client;
attribute vendor_hal_mwqemadapter_qti; attribute vendor_hal_mwqemadapter_qti;
attribute vendor_hal_mwqemadapter_qti_client; attribute vendor_hal_mwqemadapter_qti_client;
attribute vendor_hal_mwqemadapter_qti_server; attribute vendor_hal_mwqemadapter_qti_server;
#attributes for aks gamepad hal
attribute hal_gamepad;
attribute hal_gamepad_client;
attribute hal_gamepad_server;

View file

@ -283,3 +283,8 @@ attribute vendor_sys_sxrauxservice_qti_socket_client;
attribute vendor_hal_mwqemadapter_qti; attribute vendor_hal_mwqemadapter_qti;
attribute vendor_hal_mwqemadapter_qti_client; attribute vendor_hal_mwqemadapter_qti_client;
attribute vendor_hal_mwqemadapter_qti_server; attribute vendor_hal_mwqemadapter_qti_server;
#attributes for aks gamepad hal
attribute hal_gamepad;
attribute hal_gamepad_client;
attribute hal_gamepad_server;

View file

@ -41,3 +41,11 @@ define(`qesdk_app_access', `
hal_client_domain($1, vendor_hal_qesdhal) hal_client_domain($1, vendor_hal_qesdhal)
') ')
##################################### #####################################
#####################################
# aksgamepad_app_access(clientdomain)
# allow hal_gamepad to use
define(`aksgamepad_app_access', `
hal_client_domain($1, hal_gamepad)
')
#####################################

5
generic/private/untrusted_app.te Executable file → Normal file
View file

@ -37,4 +37,7 @@ typeattribute untrusted_app vendor_hal_qvrservice_qti_socket_fd_use_client;
typeattribute untrusted_app vendor_hal_sxrservice_qti_socket_fd_use_client; typeattribute untrusted_app vendor_hal_sxrservice_qti_socket_fd_use_client;
# allow app to be a client of DSP HAL # allow app to be a client of DSP HAL
hal_client_domain(untrusted_app, vendor_hal_dspmanager) hal_client_domain(untrusted_app, vendor_hal_dspmanager)
# allow app to be a client of AKS Gamepad HAL
hal_client_domain(untrusted_app, hal_gamepad)

3
generic/private/untrusted_app_25.te Executable file → Normal file
View file

@ -29,3 +29,6 @@ qesdk_app_access(untrusted_app_25);
# allow app to be a client of DSP HAL # allow app to be a client of DSP HAL
hal_client_domain(untrusted_app_25, vendor_hal_dspmanager) hal_client_domain(untrusted_app_25, vendor_hal_dspmanager)
# allow app to be a client of AKS Gamepad HAL
hal_client_domain(untrusted_app_25, hal_gamepad)

3
generic/private/untrusted_app_27.te Executable file → Normal file
View file

@ -32,3 +32,6 @@ qesdk_app_access(untrusted_app_27);
# allow app to be a client of DSP HAL # allow app to be a client of DSP HAL
hal_client_domain(untrusted_app_27, vendor_hal_dspmanager) hal_client_domain(untrusted_app_27, vendor_hal_dspmanager)
# allow app to be a client of AKS Gamepad HAL
hal_client_domain(untrusted_app_27, hal_gamepad)

3
generic/private/untrusted_app_29.te Executable file → Normal file
View file

@ -31,3 +31,6 @@ typeattribute untrusted_app_29 vendor_hal_sxrservice_qti_socket_fd_use_client;
# allow app to be a client of DSP HAL # allow app to be a client of DSP HAL
hal_client_domain(untrusted_app_29, vendor_hal_dspmanager) hal_client_domain(untrusted_app_29, vendor_hal_dspmanager)
# allow app to be a client of AKS Gamepad HAL
hal_client_domain(untrusted_app_29, hal_gamepad)

View file

@ -34,4 +34,7 @@ qesdk_app_access(untrusted_app_30);
hal_client_domain(untrusted_app_30, vendor_hal_qspmhal) hal_client_domain(untrusted_app_30, vendor_hal_qspmhal)
# allow app to be a client of DSP HAL # allow app to be a client of DSP HAL
hal_client_domain(untrusted_app_30, vendor_hal_dspmanager) hal_client_domain(untrusted_app_30, vendor_hal_dspmanager)
# allow app to be a client of AKS Gamepad HAL
hal_client_domain(untrusted_app_30, hal_gamepad)

View file

@ -325,3 +325,8 @@ attribute vendor_hal_imsrtphal_server;
attribute vendor_hal_qspa_qti; attribute vendor_hal_qspa_qti;
attribute vendor_hal_qspa_qti_client; attribute vendor_hal_qspa_qti_client;
attribute vendor_hal_qspa_qti_server; attribute vendor_hal_qspa_qti_server;
#attributes for aks gamepad hal
attribute hal_gamepad;
attribute hal_gamepad_client;
attribute hal_gamepad_server;