What has the <extension> done ? #226
-
I m trying to learn this code but I don t understand what is do in the 《extension 》directory ? |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments
-
Extensions are optional features of proot that are mostly contained within their directory (such as While I've got no proper documentation, you might find some information in following places: What particular extensions do is described in command-line switches used for enabling them: Lines 193 to 277 in d4e4a07 List of events on which extensions can react to is in proot/src/extension/extension.h Lines 33 to 150 in d4e4a07 To find when particular event is executed search for |
Beta Was this translation helpful? Give feedback.
-
I ve tried to develop demo using proot I have set up the HAVE_SECCOMP_FILTER My code is as follows ↓ ↓ ↓ ↓ ↓ ↓ ↓
Log log always SIGTRAP | 0x80 (tracer:: DISABLED) I wonder why not executed |
Beta Was this translation helpful? Give feedback.
-
Looks like you didn't call I'm not sure what your actual goal is but chances are that something like PLTHook will be more appropriate for you than proot or ptrace |
Beta Was this translation helpful? Give feedback.
-
I think I'm already on it.I get a process A via fork () to go to (ptrace (PTRACE_ATTACH, pid, NULL, NULL);) main process). |
Beta Was this translation helpful? Give feedback.
-
This case was never executed causing me to return the result via seccomp mode modification.I m wondering how the proot goes down in seccomp mode where the modification returns the results. Always print log when case SIGTRAP | PTRACE_EVENT_SECCOMP starts (skipping PTRACE_EVENT_SECCOMP for already handled sysenter) I don't know that I didn't express clearly what I want to say, and I really hope that you can clone a copy of my proot hello word |
Beta Was this translation helpful? Give feedback.
-
There are two seccomp polices:
In case of your test application |
Beta Was this translation helpful? Give feedback.
-
I found a BUG that doesn t know what caused it as if it was a talloc problem.Have you ever encountered this problem? So I Initialize in the master process.My code is as follows
I don't know if I have a problem writing that 。 |
Beta Was this translation helpful? Give feedback.
Extensions are optional features of proot that are mostly contained within their directory (such as
extension/fake_id0
, though there are still hooks for them outside their directory), each of them is compiled into proot and enabled through command-line switch.While I've got no proper documentation, you might find some information in following places:
What particular extensions do is described in command-line switches used for enabling them:
proot/src/cli/proot.h
Lines 193 to 277 in d4e4a07