DO NOT MERGE: Fix a bug in the userspace AVC that broke per-domain permissive mode.

Failure to copy the entire av_decision structure, including the
flags field, would prevent preservation of the SELINUX_AVD_FLAGS_PERMISSIVE
flag and thus cause per-domain permissive to not be honored for userspace
permission checks.

Also ensure that we clear the entire structure.

Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>

(cherry picked from commit 0dbac4eafd82ba0d9d9fa4ecf9bfdd34b6db2b52)

Bug: 13450413
Change-Id: I36c7445dc385e647e4f0f4a2dee04723d1b7c9bc
1 file changed
tree: 027b4c65e6a64dfefe181ee1eff819f9ab43d64c
  1. include/
  2. src/
  3. Android.mk
  4. NOTICE