[SLUG] Silent failure as normal user
Gavin Baker
gavbaker at acm.org
Fri Sep 22 10:21:17 BST 2006
On 21 Sep 2006, at 12:00, Stephen O'Neill wrote:
> Hi all,
>
> I have a simple problem, but don't know of a simple solution:
>
> I have an extension for Firefox called "HTML Validator". It uses
> some objects compiled in C which use shared libraries on my machine.
>
> When I run this extension as a normal user I get silent failures -
> ie. nothing happens. When I run it as root it works.
>
> So, clearly I have permissions awry.
>
> I have a list of shared objects which the extension requires. But,
> I don't want to start removing restrictions on files willy-nilly -
> particularly as this approach could be exponential.
>
> If I was in windows I'd use "filemon" which shows every filesystem
> access along with the outcome - success/access denied etc.
>
> What do I do if I'm in Linux?
<your distro remote installer thingy> strace
strace -o ffcrash.trace firefox
make it crash
look at the bottom of ffcrash.trace for open or stat calls or such,
or grep it for /usr/...
Gav
p.s, strace, lsof and fuser are all invaluable tools, google will
have loads on all three.
More information about the Scarborough
mailing list