Sandbox/Mac/Debugging: Difference between revisions

Jump to navigation Jump to search
opensnoop
(Formatting)
(opensnoop)
Line 84: Line 84:
</pre>
</pre>


= Using dtrace to Observe Content Process File I/O =
= Using opensnoop(1m) to Observe Content Process File I/O =
Foo
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.
<pre>
~ $ sudo opensnoop -xve -n plugin-container 2>/dev/null
...
2016 Aug 11 11:25:32  501  2745 plugin-container  -1  2 /Users/haftandilian/Library/Autosave Information/org.mozilla.plugincontainer.plist
2016 Aug 11 11:25:47  501  2743 plugin-container  -1  2 /System/Library/Components/AppleScript.component/Contents/Resources/Base.lproj
2016 Aug 11 11:25:47  501  2743 plugin-container  -1  2 /System/Library/Components/AudioCodecs.component/Contents/Resources/Base.lproj
2016 Aug 11 11:25:47  501  2743 plugin-container  -1  2 /System/Library/Components/AudioDSP.component/Contents/Resources/en.lproj
2016 Aug 11 11:25:47  501  2743 plugin-container  -1  2 /System/Library/Components/AudioDSP.component/Contents/Resources/Base.lproj
2016 Aug 11 11:25:47  501  2743 plugin-container  -1  2 /System/Library/Components/AUSpeechSynthesis.component/Contents/Resources
2016 Aug 11 11:25:47  501  2743 plugin-container  -1  2 /System/Library/Components/AUSpeechSynthesis.component/Contents/Resources
2016 Aug 11 11:25:47  501  2743 plugin-container  -1  2 /System/Library/Components/AUSpeechSynthesis.component/Contents/Resources/English.lproj
2016 Aug 11 11:25:47  501  2743 plugin-container  -1  2 /System/Library/Components/AUSpeechSynthesis.component/Contents/Resources/Base.lproj
2016 Aug 11 11:25:47  501  2743 plugin-container  -1  2 /System/Library/Components/CoreAudio.component/Contents/Resources/Base.lproj
2016 Aug 11 11:25:47  501  2743 plugin-container  -1  2 /System/Library/Components/JavaScript.component/Contents/Resources/Base.lproj
2016 Aug 11 11:25:47  501  2743 plugin-container  -1  2 /System/Library/Components/JavaScript.component/Contents/Resources/English.lproj
...
</pre>
202

edits

Navigation menu