Stephen Smalley wrote:
On Wed, 2012-09-26 at 09:50 -0400, Joshua Brindle wrote:
<snip>
Now my fun is the category pairs, which nothing in /data/data is
properly labeled for. Any chance we could get a restoredatacon? :)
That would be nice but seems a bit complicated, as you need all of the
inputs to seapp_context_lookup() including seinfo. Might be most easily
implemented via an extension to installd, e.g. a new command to trigger
relabeling of the /data/data directories that could be called from
Installer.java, and then walk the list of packages and invoke it for
each one.
Here is a hacktastic way to do it from the host, it blindly assumes c256
is the correct extra category which worked for me due to a smallish
number of apps:
$ adb shell su -c ls -Z /data/data | grep :app_data_file: | awk '{
system ("adb shell su -c chcon " $(NF-1) ",c256 " "/data/data/" $NF) }'
--
This message was distributed to subscribers of the seandroid-list mailing list.
If you no longer wish to subscribe, send mail to majord...@tycho.nsa.gov with
the words "unsubscribe seandroid-list" without quotes as the message.