Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

referer not a subpath of "/proc" cause proot crash #385

Open
yushiqie opened this issue Aug 15, 2024 · 0 comments
Open

referer not a subpath of "/proc" cause proot crash #385

yushiqie opened this issue Aug 15, 2024 · 0 comments

Comments

@yushiqie
Copy link

Expected Behavior

path referrer not a strict subpath of "/proc"

Actual Behavior

path referrer not a strict subpath of "/proc" may cause proot crash

20240814162742

Steps to Reproduce the Problem

  1. proot -S /home/test -w /root bash
  2. ls -al /proc

Specifications

  • Proot/Care version: v5.4.0
  • Kernel version: 5.10.134-16.1.an8.aarch64
  • Host distribution: Anolis OS 8.8
  • Guest distribution:

Command Output

root@1c4be79bcecc:/# proot -S /home/test --kill-on-exit -b /home/test/root:/root bash
[root@1c4be79bcecc /]# 
[root@1c4be79bcecc /]# 
[root@1c4be79bcecc /]# ls -al /proc
proot: ./path/proc.c:52: readlink_proc: Assertion `comparison == compare_paths("/proc", base)' failed.
proot warning: signal 6 received from process 3615

-OR-

Attached log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant