8c2bd90b19
Added `setpriv` in `util-linux` which requires `libcap-ng` to be updated as well for it work. Android 7 and some Android devices 8 do not support ambient capabilities and will return `activate capabilities: Invalid argument` when running `setpriv`. strace shows `"prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_IS_SET, CAP_CHOWN, 0, 0) = -1 EINVAL (Invalid argument)"` This was an issue with `libcap-ng` where support for `PR_CAP_AMBIENT` was checked at compile time, so `setpriv` only worked on Android > `7`/`8` when `capng_apply()` was called. `4.3 kernel PR_CAP_AMBIENT` https://github.com/util-linux/util-linux/blob/v2.37.1/sys-utils/setpriv.c#L1010 https://github.com/stevegrubb/libcap-ng/blob/v0.8.2/src/cap-ng.c#L59 https://github.com/stevegrubb/libcap-ng/blob/v0.8.2/src/cap-ng.c#L716 https://source.android.com/devices/architecture/kernel/android-common This has been fixed in `libcap-ng` by checking `PR_CAP_AMBIENT` at runtime with `187ed535`. `libcap-ng` `0.8.3` has not been released yet and so we use a pre release version `0.8.3~pre1`. https://github.com/stevegrubb/libcap-ng/issues/28 https://github.com/stevegrubb/libcap-ng/commit/187ed535 |
||
---|---|---|
.github | ||
disabled-packages | ||
ndk-patches | ||
packages | ||
sample | ||
scripts | ||
.gitattributes | ||
.gitignore | ||
BACKERS.md | ||
build-all.sh | ||
build-package.sh | ||
clean.sh | ||
CODEOWNERS | ||
CONTRIBUTING.md | ||
LICENSE.md | ||
README.md |
Termux packages
This project contains scripts and patches to build packages for the Termux Android application.
Quick how-to about Termux package management is available at Package Management. It also has info on how to fix repository is under maintenance or down
errors when running apt
or pkg
commands.
Contributing
@termux is looking for help with fixing issues, adding new packages and maintaining existing ones. It would be very helpful if you submit a pull request with bug fixes.
Read CONTRIBUTING.md and Developer's Wiki for more details.
Contacts
General mailing list: https://groups.io/g/termux
Developer mailing list: https://groups.io/g/termux-dev
General chat: https://gitter.im/termux/termux or #termux on IRC/libera.chat.
Developer chat: https://gitter.im/termux/dev.