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:
parent
57d4ca821e
commit
3695d33bd9
1 changed files with 2 additions and 0 deletions
2
legacy/vendor/common/init_shell.te
vendored
2
legacy/vendor/common/init_shell.te
vendored
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue