From 812f7d90d250578d3e9e275406ba5ae0a2775e79 Mon Sep 17 00:00:00 2001
From: Stephen Smalley <sds@tycho.nsa.gov>
Date: Mon, 5 May 2014 14:16:06 -0400
Subject: [PATCH] Escape dot (.) when it is intended to be literal.

Otherwise it is treated as a regex and matches any character.

Change-Id: I9e23f01b0e104d3ef57993fd1a3d9a5b13201910
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
---
 file_contexts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/file_contexts b/file_contexts
index c136e26df..b4ec8e833 100644
--- a/file_contexts
+++ b/file_contexts
@@ -4,7 +4,7 @@
 
 # Data files
 /adb_keys		u:object_r:adb_keys_file:s0
-/default.prop		u:object_r:rootfs:s0
+/default\.prop		u:object_r:rootfs:s0
 /fstab\..*		u:object_r:rootfs:s0
 /init\..*		u:object_r:rootfs:s0
 /res(/.*)?		u:object_r:rootfs:s0
@@ -226,6 +226,6 @@
 #############################
 # asec containers
 /mnt/asec(/.*)?           u:object_r:asec_apk_file:s0
-/mnt/asec/[^/]+/res.zip   u:object_r:asec_public_file:s0
+/mnt/asec/[^/]+/res\.zip   u:object_r:asec_public_file:s0
 /mnt/asec/[^/]+/lib(/.*)? u:object_r:asec_public_file:s0
 /data/app-asec(/.*)?      u:object_r:asec_image_file:s0
-- 
GitLab