OSDN Git Service

delete recovery policy on changing build types
authorNick Kralevich <nnk@google.com>
Sat, 27 Feb 2016 18:41:41 +0000 (10:41 -0800)
committerNick Kralevich <nnk@google.com>
Mon, 29 Feb 2016 16:45:31 +0000 (08:45 -0800)
commit133e1e1f16968998bdb47b509ec2c46922f9d99d
tree671a6057997147481945953b04b22af1e5ff1c8c
parent6dece90534af8b290ccc385fda2e4cf0f3a37454
delete recovery policy on changing build types

When the build type changes (for example, from "shamu-userdebug"
to "shamu-user"), the build system doesn't delete all files
and start over. Rather, build artifacts from the old build type
are reused for the new build type.

This is problematic for the recovery SELinux policy, which differs
between build types. Reusing a userdebug policy on a user build
is inappropriate and could lead to security bugs.

Force the deletion of the recovery SELinux policy when changing
build types, so it can be properly regenerated. This is consistent
with how we treat the normal SELinux policy (see commit
a8b3d54101eccb9950651103c199edf0ce2520f7).

(cherry picked from commit 3cb10bbd3b376aecbbefffbe4d43105665bad345)

Change-Id: I1d8ad7e06112777c66abed4546dadb85d35e33e1
core/cleanbuild.mk