Inseob Kim | 75806ef | 2024-03-27 17:18:41 +0900 | [diff] [blame^] | 1 | allow vendor_shell vendor_shell_exec:file rx_file_perms; |
| 2 | allow vendor_shell vendor_toolbox_exec:file rx_file_perms; |
| 3 | |
| 4 | # Use fd from shell when vendor_shell is started from shell |
| 5 | allow vendor_shell shell:fd use; |
| 6 | |
| 7 | # adbd: allow `adb shell /vendor/bin/sh` and `adb shell` then `/vendor/bin/sh` |
| 8 | allow vendor_shell adbd:fd use; |
| 9 | allow vendor_shell adbd:process sigchld; |
| 10 | allow vendor_shell adbd:unix_stream_socket { getattr ioctl read write }; |
| 11 | |
| 12 | allow vendor_shell devpts:chr_file rw_file_perms; |
| 13 | allow vendor_shell tty_device:chr_file rw_file_perms; |
| 14 | allow vendor_shell console_device:chr_file rw_file_perms; |
| 15 | allow vendor_shell input_device:dir r_dir_perms; |
| 16 | allow vendor_shell input_device:chr_file rw_file_perms; |
| 17 | |
| 18 | userdebug_or_eng(`set_prop(vendor_shell, persist_vendor_debug_wifi_prop)') |