summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/RenderScript.java
diff options
context:
space:
mode:
authorStephen Smalley <sds@tycho.nsa.gov>2015-02-27 14:35:53 -0500
committerStephen Smalley <sds@tycho.nsa.gov>2015-02-27 16:07:55 -0500
commite9dc17233f25483298186b0521874bf962e3f10e (patch)
treefc9ae50cad1aad4e52384e7d49b926ebedcbee05 /rs/java/android/renderscript/RenderScript.java
parent8cba382f04e4ead4a6b8c4a74216ddb383e8db91 (diff)
SELinuxPolicyInstallReceiver: Prevent partial or mixed policy updates.
The current SELinuxPolicyInstallReceiver logic can yield a partial or mixed (old and new) set of policy files under /data/security/current if there is an error or a crash at certain points before completing the installation of the update. Rewrite the logic to avoid the possibility of such partial or mixed policy updates by using rename on the entire directory of policy files rather than operating on a per-file basis. Also separate the extraction of the policy files from the bundle into their own temporary directory. Make sure we delete any previous temporary directory or backup directory before using them for this update. Drop the use of a symlink for /data/security/current altogether; it provides no benefit. Change-Id: I564af01c2c3ca1531c216013b8724c7511f32de8 Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
Diffstat (limited to 'rs/java/android/renderscript/RenderScript.java')
0 files changed, 0 insertions, 0 deletions