History log of /system/sepolicy/tools/post_process_mac_perms
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
3ea628fccc5c6276264c221adbfe057cf5df9b87 01-Apr-2014 Robert Craig <rpcraig@tycho.ncsc.mil> Remove errant newline from generated policy file.

When running the post_process_mac_perms script
an unneeded newline is appended to modified
mac_permissions.xml file. Use sys.stdout.write
instead which avoids any formatting when printing.

Change-Id: Ib662dab1566299467371389dc236619aec40f5ac
Signed-off-by: rpcraig <rpcraig@tycho.ncsc.mil>
/system/sepolicy/tools/post_process_mac_perms
3e70d4793a096cab829c3141491944485e482f9f 12-Mar-2014 Robert Craig <rpcraig@tycho.ncsc.mil> Introduce post_process_mac_perms script.

usage: post_process_mac_perms [-h] -s SEINFO -d DIR -f POLICY

Tool to help modify an existing mac_permissions.xml with additional app certs
not already found in that policy. This becomes useful when a directory
containing apps is searched and the certs from those apps are added to the
policy not already explicitly listed.

optional arguments:
-h, --help show this help message and exit
-s SEINFO, --seinfo SEINFO
seinfo tag for each generated stanza
-d DIR, --dir DIR Directory to search for apks
-f POLICY, --file POLICY
mac_permissions.xml policy file

Change-Id: Ifbaca3b3120874a567d3f22eb487de1aa8bda796
Signed-off-by: rpcraig <rpcraig@tycho.ncsc.mil>
/system/sepolicy/tools/post_process_mac_perms