Flash Player Trust (FlashPlayerTrust) on GNU/Linux

It took me one hour to figure out the path of directories where trust-configuration for Adobe Flash Player 9 for Linux can be stored. I wanted a local-swf to read both local and network data on one of my Linux boxes. I don’t want to use Macromedia Settings Manager because the entire thing is going to be automated or part of build-system. So only way left is by creating trust configuration files.
Adobe Flash Player 9 Security Whitepaper has details on Windows and Mac OSX releated configuration but no details on Linux. I believe, Adobe Flash Player 9 for Linux was released after whitepaper was published. It needs to be updated.
I am posting things here so that other developers don’t have to waste time.
Flash Player trust file is a text file (with .cfg extension preferably) that contains the path of trusted SWFs or directories on separate lines.
For example, sample.cfg might contain things like this:-
Trust configuration (policy) file can be deployed in following ways:-

  • For single-user (replace <user> with actual username):
  • For all users on the machine:

You can store any number of trust-files under these directories but I think, Flash Player has to do lot more work while reading many different trust-files from filesystem. So I would probably not create separate file for each configuration, rather small in numbers.

  • Thanks for this Abdul, seems that your blog is the only place on the web where this is documented.
    We’re running a Hudson build on a headless linux server and some of our unit-tests wouldn’t run without this nugget of information.
    Many thanks.

  • Awesome ! This is exactly what I was looking for and works great.
    Thanks 🙂

  • Federico

    Abdul, you’re a genius!!! You solved the problem that puzzled us for a week!!!

  • jbsp72

    Hi Abdul,
    The locations work for me with a firefox browser, but not for an embedded browser that I have. I have an application which embeds a xulrunner based browser. I have flash file which has to run javascripts to change the Page title. It works from in firefox when I place the cfg files as you suggested, but not in my embedded browser. Any ideas why?

  • Ehsan

    Does this work with Flash 10? It seems that Adobe changed a few things in Flash 10 that broke this solution.

  • amn

    Jason, you are wrong – this IS documented in a publicly available and very readable document by Adobe titled “Programming Adobe ActionScript 3.0 for Flash” under chapter “Flash Player Security.”

  • Thank you! These instructions worked for me with Flash 🙂

  • Vijaykumaru

    thanks man