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

OSX Support? #4

Open
lgarron opened this issue Feb 11, 2014 · 4 comments
Open

OSX Support? #4

lgarron opened this issue Feb 11, 2014 · 4 comments

Comments

@lgarron
Copy link

lgarron commented Feb 11, 2014

Considering that I do most work on a personal computer, and have occasionally have interest in running semi-untrusted code (cool new projects like mbox!), I would love to be able to use this on my Macbook Pro.

OSX is officially "unix-compliant", but a lot of the code appears to be Linux-specific, so I presume this is not simple.

@tsgates
Copy link
Owner

tsgates commented Feb 11, 2014

As far as I know, OSX supports ptrace, which strace used as its underline interface. I think it should not be too difficult to implement.

@nascob
Copy link

nascob commented Feb 11, 2014

Trying to build the project on 10.9.2 gives me:

/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-am
gcc -DHAVE_CONFIG_H -I.  -I./linux/x86_64 -I./linux -I./linux -lcrypto  -Wall -Wwrite-strings -g -O2 -    MT mbox.o -MD -MP -MF .deps/mbox.Tpo -c -o mbox.o mbox.c
clang: warning: -lcrypto: 'linker' input unused
In file included from mbox.c:31:
./defs.h:42:10: fatal error: 'features.h' file not found
#include <features.h>
         ^
1 error generated.
make[1]: *** [mbox.o] Error 1
make: *** [all] Error 2

@vyvojar
Copy link

vyvojar commented Jan 31, 2017

OSX does not support useful ptrace in any meaningful way - see http://uninformed.org/index.cgi?v=4&a=3&p=14 There's only dtrace. Dtrace can't intercept syscall outcomes, only passively inspect syscall inputs and outputs (through elaborate bpf-like language).

As such, true seccomp on OSX seems to be impossible (seatbelt is a MAC, not sandbox) without custom kext. I'd love to be proven wrong, though.

@iliyang
Copy link

iliyang commented Mar 23, 2017

I would absolutely love to see mbox ported to Mac, I'm ready to donate! Apart from running untrusted code, this would go one step toward making apps portable, i.e. storing their settings in a sandbox rather than in the messy ~/Library.

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

5 participants