3 ms·
I highly doubt that the stack is executable. I'll write some code today to test this. User databases are really not accessible from sandboxed applications. The
by st3fan 17y ago
I highly doubt that the stack is executable. I'll write some code today to test this.
User databases are really not accessible from sandboxed applications. They are simply not in the sandbox filesystem space. What frameworks like the AddressBook do is open the database before the app is launched and then pass the app a file descriptor or Mach port to communicate with the database or 'service wrapper' around it.
- ryanpetrich 17y agoI think whether the stack is executable depends on your compile flags (or rather, some bits set in the mach-o headers that the nested_functions compilation option sets) Some user databases are in fact readable/writable: /User/Library/AddressBook/AddressBook.sqlitedb, /User/Library/AddressBook/AddressBookImages.sqlitedb Untested: /User/Library/Caches/com.apple.UIKit.pboard/pasteboardDB, /User/Library/Calendar/Calendar.sqlitedb, /User/Library/CallHistory/call_history.db, more