termux / proot

An chroot-like implementation using ptrace.
https://wiki.termux.com/wiki/PRoot
Other
742 stars 162 forks source link

bwrap: Can't read /proc/sys/kernel/overflowuid: Permission denied #276

Open jindamvani opened 1 year ago

jindamvani commented 1 year ago

Problem description

Expected behavior

Web browser opens ddg website

Additional information

~ $ termux-info
Termux Variables:
TERMUX_APK_RELEASE=GITHUB
TERMUX_APP_PACKAGE_MANAGER=apt
TERMUX_APP_PID=20068
TERMUX_IS_DEBUGGABLE_BUILD=1
TERMUX_MAIN_PACKAGE_FORMAT=debian
TERMUX_VERSION=0.118.0
Packages CPU architecture:
arm
Subscribed repositories:
# sources.list
deb https://mirror.surf/termux/termux-main/ stable main
Updatable packages:
All packages up to date
termux-tools version:
1.38.3
Android version:
9
Kernel build information:
Linux localhost 3.18.91-16078765 #1 SMP PREEMPT Tue Jul 13 22:02:42 KST 2021 armv8l Android
Device manufacturer:
samsung
Device model:
SM-J701F
LD Variables:
LD_LIBRARY_PATH=
LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec.so

I dont know where to add output of verbose 9 https://github.com/termux/proot/discussions/275

A4-Tacks commented 11 months ago

Screenshot_20230805_160637

sheng-di commented 5 months ago

Same here.

twaik commented 5 months ago

Android restricts access to this system file. Proot is not a magic bullet.

sheng-di commented 5 months ago

Android restricts access to this system file. Proot is not a magic bullet.

Even if I have root privileges? I' ve given $ termux root permission.

twaik commented 5 months ago

AFAIK proot runs as regular user, not root. So it still has no access.

edwintorok commented 2 months ago

rm .opam -rf && opam init --disable-sandboxing. That avoids opam using bwrap, and avoids this failure.