Topic: "privilege violation" log

Hi,

When i try to exec my widget using USB with profile.xml, the following error log shows
and it seems not working.

  StreamObject::OpenURLStream(): privilege violation for file://

but, working well with "chumbyflashplayer.x" command on ssh shell.

Are there any reasons showing the above log?


Thanks,

Re: "privilege violation" log

When run standalone, the movie has "master" privileges, which allows access to the local file system using the "file://" protocol.  As a widget run from profile.xml, it has "slave" privileges, which does not allow such access.

To override this, you'll need to explicitly enable slave privileges and use the "sys://" protocol instead of "file://" (they're otherwise the same).

To enable slave privileges, you'll need to create the file "/psp/flashplayer.cfg" with the contents:

PrivilegedCallExceptions 65535

...and restart the Control Panel. This allows the slave (ie widget) to do anything the master (ie Control Panel) can do.  It also makes your device's security much, much weaker.

Re: "privilege violation" log

Thank you for your quick reply!
I'll try it.