From fc9e8e251df482dfe0576a4fc5f04bfca95f1c26 Mon Sep 17 00:00:00 2001
From: Alex Deymo <deymo@google.com>
Date: Tue, 15 Mar 2016 16:24:29 -0700
Subject: [PATCH] Allow manual /postinstall loopback mounting on debug builds.

Postinstall testing requires to mount a filesystem and relabel its
files to postinstall_file. While this task will normally be performed
by the update_engine daemon running in a domain of the same name, we
also test this workflow with sample images from /data/nativetest in
eng builds.

This hides the log messages from the 'su' context when mounting and
relabeling a filesystem onto the postinstall mountpoint.

Bug: 27272144
Bug: 26955860
TEST=m; update_engine_unittests pass Postinstall tests.

Change-Id: Id39aa1afdc11a6f59434873e68a53cbcb6ae363f
---
 su.te | 1 +
 1 file changed, 1 insertion(+)

diff --git a/su.te b/su.te
index f58f7a305..5c9825800 100644
--- a/su.te
+++ b/su.te
@@ -52,4 +52,5 @@ userdebug_or_eng(`
   dontaudit su domain:debuggerd *;
   dontaudit su domain:drmservice *;
   dontaudit su unlabeled:filesystem *;
+  dontaudit su postinstall_file:filesystem *;
 ')
-- 
GitLab