From 53a0763703da6ea72f3f68d71a9f27b096b073aa Mon Sep 17 00:00:00 2001
From: Dario Freni <dariofreni@google.com>
Date: Tue, 29 May 2018 13:17:03 +0100
Subject: [PATCH] Add a rule for /product-services partition.

Like /system and /product, /product-services will contain apps that
should have the same privileges as the one in other system partitions.

Bug: 80741439
Test: successfully tested e2e on two devices, one with
/product-services partition and another with /product-services
symlinking to -> /system/product-services
Change-Id: Ieee7a9a7641a178f44bb406dbdef39ed46713899
---
 private/file_contexts | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/private/file_contexts b/private/file_contexts
index 1ce0a807f..bec6b1405 100644
--- a/private/file_contexts
+++ b/private/file_contexts
@@ -352,7 +352,12 @@
 #############################
 # Product files
 #
-/(product|system/product)(/.*)?               u:object_r:system_file:s0
+/(product|system/product)(/.*)?                                 u:object_r:system_file:s0
+
+#############################
+# Product-Services files
+#
+/(product-services|system/product-services)(/.*)?               u:object_r:system_file:s0
 
 #############################
 # Data files
-- 
GitLab