skissane / mkjail

Shell script to create a chroot jail on Mac OS X
The Unlicense
80 stars 11 forks source link

Difficulty jailing Inkscape #3

Open skycafemix opened 6 years ago

skycafemix commented 6 years ago

Hello, I had difficulty trying to jail Inkscape 0.92.2 on Mac OS 10.12.6. Please let me know if I am using incorrectly. sudo ./mkjail inkscape mv ../../UntrustedApplications/Inkscape.app /jail/inkscape/ ./addtojail /jail/inkscape/Inkscape.app/Contents/MacOS/Inkscape sudo ./mkjail inkscape I get the sh shell ./Inkscape.app/Contents/MacOS/Inkscape From here, I start getting errors due to addtojail not having picked up all the frameworks that were needed. I added in a few of them to the mkjail.files manually, and finally just ended up copying the entire Frameworks directory (2GB). Finally I got this error at which I am stumped. I guess quartz library is also missing. Assertion failed: (skylight_handle != NULL), function __get_skylight_handle_block_invoke, file /Library/Caches/com.apple.xbs/Sources/Quartz2D/Quartz2D-1070.22/CoreGraphics/Services/Connection/SLShim.c, line 26. FWIW, I also tried with GIMP but that just hung. I gave up at this point. It would be really useful to provide some brief documentation for people to get started. Thanks for your efforts and best regards!

jasmas commented 5 years ago

Try:

find Inkscape.app -perm +111 -type f -print0 | xargs -n 1 -0 ./addtojail

The bundle has many executable libraries in it