Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scripts: Fix permission denied errors for
pm
and settings
by only…
… exporting `/system/bin` in `$PATH` and not termux bin path for system utilities wrappers The utilities like `/system/bin/pm` and `/system/bin/settings` run the `cmd` command and if termux bin path exists in `$PATH`, then `$TERMUX__PREFIX/bin/cmd` wrapper will be executed instead of `/system/bin`, which will fail due to selinux denial even with the subshell hack (termux/termux-packages#8292 (comment)). `avc: denied { execute_no_trans } for path="/data/data/com.termux/files/usr/bin/cmd" dev="dm-55" ino=46573 scontext=u:r:untrusted_app:s0:c29,c257,c512,c768 tcontext=u:object_r:app_data_file:s0:c29,c257,c512,c768 tclass=file permissive=0 app=com.termux`
- Loading branch information