From 44005b4f2be1f2fbbc67d6b33b4d1f13cb879d88 Mon Sep 17 00:00:00 2001
From: Tri Vo <trong@google.com>
Date: Sun, 7 Oct 2018 13:24:09 -0700
Subject: [PATCH] Make persist.sys.locale public-readable.

Addresses this denial:
avc: denied { read } for comm="rild" name="u:object_r:system_prop:s0"
dev="tmpfs" ino=15811 scontext=u:r:rild:s0 tcontext=u:object_r:system_prop:s0
tclass=file permissive=0

Fixes: 77960261
Test: m selinux_policy
Change-Id: I341675a4cfc0acbb7ea98e2ed4bdb7f69afe09f7
---
 public/property_contexts | 1 +
 1 file changed, 1 insertion(+)

diff --git a/public/property_contexts b/public/property_contexts
index ee2803bbe..5ba0abecf 100644
--- a/public/property_contexts
+++ b/public/property_contexts
@@ -169,6 +169,7 @@ init.svc.tombstoned u:object_r:exported2_default_prop:s0 exact string
 libc.debug.malloc.options u:object_r:exported2_default_prop:s0 exact string
 libc.debug.malloc.program u:object_r:exported2_default_prop:s0 exact string
 libc.debug.hooks.enable u:object_r:exported2_default_prop:s0 exact string
+persist.sys.locale u:object_r:exported_system_prop:s0 exact string
 persist.sys.timezone u:object_r:exported_system_prop:s0 exact string
 ro.adb.secure u:object_r:exported_secure_prop:s0 exact int
 ro.arch u:object_r:exported2_default_prop:s0 exact string
-- 
GitLab