permissions: remove wide open permissions

p2: change perms tighter.
p3: scaling governor file needs write access for root.
p4: removed need for using /cache (uses /data/local/tmp)

Change-Id: I20489c3a0732622f477145cacc41abf92386a853