sepolicy: Adding vendor_qti_init_shell label to legacy

There are some targets which uses legacy sepolicy but
USB uses vendor_qti_init_shell label for its rc file
execution which causes a mismatch as legacy uses
qti_init_shell. This stop the USB rc file from
executing the command for calling the script file
responsible for setting the composition.
Ultimately setting the default value which is adb
on bootup instead of default composition.

Fix this by setting an alias as vendor_qti_init_shell
in legacy sepolicy for qti_init_shell allowing USB
to use vendor label.

Change-Id: Ia8953ed61bb1b87d01b17d02fc7e4bf4b86e66eb
Signed-off-by: Udipto Goswami <ugoswami@codeaurora.org>
This commit is contained in:
Udipto Goswami 2020-05-14 17:27:52 +05:30 committed by Gerrit - the friendly Code Review server
parent 57d4ca821e
commit 3695d33bd9

View file

@ -29,7 +29,9 @@
# Normally these are shell commands or scripts invoked via sh
# from an init*.rc file. No service should ever run in this domain.
type qti_init_shell, domain;
typealias qti_init_shell alias vendor_qti_init_shell;
type qti_init_shell_exec, exec_type, vendor_file_type,file_type;
typealias qti_init_shell_exec alias vendor_qti_init_shell_exec;
init_daemon_domain(qti_init_shell)