Corbin Champion

Results 107 comments of Corbin Champion

Longer answer...yes, but it is difficult. I developed a PRoot extension in the past that put everything on the sdcard (had to get around FAT naming rules) and would copy...

@michalbednarski it has been a while, but this looks like a cleaner solution to part of the problem, that the sdcard is mounted noexec. There are other parts to the...

For those issues, I had to have the rootfs actually be in internal storage, but have it consist of just symbolic links to the real files living on the sdcard....

I wonder if the SIGSYS needs to be intercepted and then PR_clone used instead. I have a feeling that PR_fork is on its way out.

This is now some glibc implementations of fork are handled. With the last 5 arguments listed here, clone will act like fork. ```#define ARCH_FORK() \ INLINE_SYSCALL (clone, 5, \ CLONE_CHILD_SETTID...

Thanks. That works well. I came to the same conclusion that you don't need to worry about the arch dependent swapping of variables and that you can set args 2-5...

This is what I put in seccomp.c: ``` case PR_alarm: { unsigned int seconds; struct itimerval old, new; word_t old_arg = 0; word_t new_arg = 0; seconds = peek_reg(tracee, CURRENT,...

@michalbednarski Does this look like a good first attempt for the `translate_syscall_exit` modification? ``` case PR_setitimer: { struct itimerval old; if (!tracee->restore_original_regs_after_seccomp_event) goto end; if (syscall_result < 0) { status...

This all seems to work. I see one more issue, but I don't think it is related. Btw... I didn't see an easy way to try this with Termux (had...

Here is what the error looks like to the user: say you are in a director that has two files `a.txt` and `b.txt` and you run `ls` ``` me@localhost:~$ ls...