Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Oct 29 19:32
    oxr463 commented #339
  • Oct 29 18:06
    oxr463 labeled #338
  • Oct 29 18:06

    oxr463 on master

    Add: faccess2(2) syscall Remove extra tab for PR_faccess… (compare)

  • Oct 29 18:06
    oxr463 closed #338
  • Oct 29 17:34
    oxr463 commented #340
  • Oct 29 17:32
    oxr463 milestoned #338
  • Oct 29 17:32
    oxr463 milestoned #338
  • Oct 29 17:31
    oxr463 labeled #338
  • Oct 29 17:31
    oxr463 labeled #338
  • Oct 29 17:31
    oxr463 labeled #338
  • Oct 29 17:30
    oxr463 assigned #338
  • Oct 29 17:30
    oxr463 synchronize #338
  • Oct 29 17:25
    oxr463 labeled #339
  • Oct 29 17:24
    oxr463 labeled #340
  • Oct 24 14:16
    deliciouslytyped edited #340
  • Oct 24 14:12
    deliciouslytyped opened #340
  • Oct 24 13:59
    deliciouslytyped opened #339
  • Oct 24 04:54
    deliciouslytyped opened #338
  • Oct 12 16:04
    oxr463 labeled #337
  • Oct 12 15:46
    absolutelynothinghere opened #337
pie_
@jcie74:matrix.org
[m]
though I guess its possible you are just merging it and then building on it haha
oxr463
@oxr463:matrix.org
[m]
Yep
pie_
@jcie74:matrix.org
[m]
anyway no big deal I'm just surprised my code was good for anything
oxr463
@oxr463:matrix.org
[m]
If it breaks something the we'll just have to fix it later
pie_
@jcie74:matrix.org
[m]
oxr463: your issue commnt just reminded me, I think I was able to strace proot, why?
I did see something about seccomp mode being supported on that given proot
so in that case is ptrace not used?
oxr463
@oxr463:matrix.org
[m]
Ptrace is always used by PRoot
pie_
@jcie74:matrix.org
[m]
hm, not sure what happened there then though I didnt read the output very carefully
oxr463
@oxr463:matrix.org
[m]
Seccomp is a big piece of the puzzle and has caused a lot of issues
pie_
@jcie74:matrix.org
[m]
specifically for stracing though you cant ptrace a ptrace so that shouldnt work
hmmmmm
the other possibility is that strace is using seccomp for tracing, unless i completely misunderstood everything and this isnt even a thing
       --seccomp-bpf
                   Try  to  enable  use  of seccomp-bpf (see seccomp(2)) to have ptrace(2)-stops only when system calls that are being traced occur in the traced processes.  This option has no effect unless -f/--follow-forks is also
                   specified.  --seccomp-bpf is also not applicable to processes attached using -p/--attach option.  An attempt to enable system calls filtering using seccomp-bpf may fail for various reasons, e.g. there are too many
                   system calls to filter, the seccomp API is not available, or strace itself is being traced.  In cases when seccomp-bpf filter setup failed, strace proceeds as usual and stops traced processes on every system call.
I don't 100% understand what this is sayng
it only fails to ptrace processes that are already being ptraced but works otherwise?
oxr463
@oxr463:matrix.org
[m]
Yeah, I think so
pie_
@jcie74:matrix.org
[m]
well that wouldnt help much for proot since its ptracing everything (?)
1 reply
oxr463
@oxr463:matrix.org
[m]
If there is no PTRACE_TRACEME then it won't work
pie_
@jcie74:matrix.org
[m]
you mean for child processes of proot it would work?
(wouldnt proot have to be ptracing all children to work?)
oxr463
@oxr463:matrix.org
[m]
Yes
But if a program doesn't allow ptrace then it won't work
So you can use gdb or strace on PRoot itself... but depends on what runs inside the PRoot if you can ptrace it
pie_
@jcie74:matrix.org
[m]
uhuh
pie_
@jcie74:matrix.org
[m]
oxr463: proot doesnt translate (bind) mount does it?
1 reply
pie_
@jcie74:matrix.org
[m]
well half my problem was I kept messing up a file name, so I did end up solving it with the fake mounts, but I was more wondering if (I really should just check with -v) internal mount --bind could /is be caught and emulated (if that makes sense)
1 reply
pie_
@jcie74:matrix.org
[m]
oxr463: any idea what will break when trying to use proot on a 2.6.32 kernel? (2013 build)
1 reply
oxr463: another suggestion: allow specifying a file to output -v output to
pie_
@jcie74:matrix.org
[m]
proot info: vpid 47: translate("/" + "/nix/store/ga9q4ikprn36wm32gqm4k521iv9kic5p-libsodium-1.0.18/lib/libsodium.so.23")
proot info: vpid 47:          -> "/Lustre01/home/qosnebc/pls/store/ga9q4ikprn36wm32gqm4k521iv9kic5p-libsodium-1.0.18/lib/libsodium.so.23.3.0"
proot info: vpid 47: sysenter start: read(0x3, 0x7fff0e468db8, 0x340, 0x0, 0x7fff0e468d9f, 0x0) = 0xffffffffffffffda [0x7fff0e468ad8, 0]
proot info: vpid 47: sysenter start: newfstatat(0x3, 0x6f0000028954, 0x7fff0e468c40, 0x1000, 0x7f911fecdf30, 0x6f0000033220) = 0xffffffffffffffda [0x7fff0e468bb8, 0]
proot info: vpid 47: sysenter start: close(0x3, 0x6f0000028954, 0x7fff0e468c40, 0x1000, 0x7f911fecdf30, 0x6f0000033220) = 0xffffffffffffffda [0x7fff0e468bb8, 0]
proot info: vpid 47: sysenter start: writev(0x2, 0x7fff0e468900, 0xa, 0x20, 0x7fff0e468d48, 0x7f911fecdf30) = 0xffffffffffffffda [0x7fff0e4688c0, 0]
/nix/store/xdlpraypxdimjyfrr4k06narrv8nmfgh-nix-2.11.1/bin/nix-store: error while loading shared libraries: libsodium.so.23: cannot stat shared object: Invalid argument
proot info: vpid 47: sysenter start: exit_group(0x7f, 0x3c, 0x7f, 0x20, 0xe7, 0x7f911fecdf30) = 0xffffffffffffffda [0x7fff0e468d38, 0]
proot info: vpid 47: exited with status 127
Does that make any sense to you?
Well, I guess it's not really a proot issue;
$ LD_LIBRARY_PATH=pls/store/ga9q4ikprn36wm32gqm4k521iv9kic5p-libsodium-1.0.18/lib/ pls/store/scd5n7xsn0hh0lvhhnycr9gx0h8xfzsl-glibc-2.34-210/lib64/ld-linux-x86-64.so.2 pls/store/xdlpraypxdimjyfrr4k06narrv8nmfgh-nix-2.11.1/bin/nix-store
pls/store/xdlpraypxdimjyfrr4k06narrv8nmfgh-nix-2.11.1/bin/nix-store: error while loading shared libraries: libsodium.so.23: cannot stat shared object: Invalid argument
oxr463
@oxr463:matrix.org
[m]
Like a verbose log file?
pie_
@jcie74:matrix.org
[m]
also reasonable
re log: yeah
IIRC strace has something like it for example
pie_
@jcie74:matrix.org
[m]
two libuv tests failed under proot but im not sure if its actually proot's fault
specifically fs_file_enametoolong and signal_multiple_loops
just mentioning it
pie_
@jcie74:matrix.org
[m]
Is this a proot issue?
ECC:
 Ed25519        |  nanosecs/iter   cycles/iter
           mult | Fatal: getentropy is not supported: Function not implemented
Hm ok seems like a kernel syscall interface issue I guess
hm
(old kernel)
Though I think this should be going through musl so it should work...hm...
pie_
@jcie74:matrix.org
[m]
oxr463: do you know if that is a proot issue? ^
oxr463
@oxr463:matrix.org
[m]
I don't think so?
pie_
@jcie74:matrix.org
[m]
hm
pie_
@jcie74:matrix.org
[m]
yeah so it was a kernel syscall / libc thing
I used a patch to musl to get a version of it
I'm running into some other issues now