Sandbox/Mac/Debugging: Difference between revisions

Grammar
(opensnoop)
(Grammar)
Line 85: Line 85:


= Using opensnoop(1m) to Observe Content Process File I/O =
= Using opensnoop(1m) to Observe Content Process File I/O =
You can use opensnoop(1m) to see what files the content process is opening. For this listing, I had the opensnoop running when Nightly was started so some of these opens likely happened before the content process turned on the sandbox. Passing the -t option to opensnoop will get it to print the stack trace of the user program.
You can use opensnoop(1m) to see what files the content process is opening. For this listing, I had opensnoop running when Nightly was started so some of these opens likely happened before the content process turned on the sandbox. Passing the -t option to opensnoop will get it to print the stack trace of the user program.
<pre>
<pre>
~ $ sudo opensnoop -xve -n plugin-container 2>/dev/null
~ $ sudo opensnoop -xve -n plugin-container 2>/dev/null
202

edits