termux / proot

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

ptrace+seccomp mkdirat path leakage #265

Open w296488320 opened 1 year ago

w296488320 commented 1 year ago

I recently found a problem: I am using ptrace + seccomp and only use these two modules and functions. But when intercepting svc for path redirection found mkdirat svc, occasionally missing resulting that the file not being created under the directory I need. If I hook the libc mkdirat can solve this problem, but I do not want the mkdirat function in hook libc. Do you know the specific reason for the problem?