From 6c39ee00e19dbea82782bf1a83cc28d0293f3ba0 Mon Sep 17 00:00:00 2001
From: Stephen Smalley <sds@tycho.nsa.gov>
Date: Wed, 27 Jun 2012 08:50:27 -0400
Subject: [PATCH] Make wallpaper_file a mlstrustedobject to permit writes from
 any app level.

---
 file.te   | 2 +-
 system.te | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/file.te b/file.te
index 4e3bd535d..eb4c79211 100644
--- a/file.te
+++ b/file.te
@@ -54,7 +54,7 @@ type cache_file, file_type, mlstrustedobject;
 # Default type for anything under /efs
 type efs_file, file_type;
 # Type for wallpaper file.
-type wallpaper_file, file_type;
+type wallpaper_file, file_type, mlstrustedobject;
 
 # All devices have bluetooth efs files. But they
 # vary per device, so this type is used in per
diff --git a/system.te b/system.te
index 6389b0ee1..7232af7d1 100644
--- a/system.te
+++ b/system.te
@@ -148,7 +148,7 @@ allow system apk_data_file:file { relabelfrom relabelto };
 # Relabel wallpaper.
 allow system system_data_file:file relabelfrom;
 allow system wallpaper_file:file relabelto;
-allow system wallpaper_file:file r_file_perms;
+allow system wallpaper_file:file rw_file_perms;
 
 # Property Service write
 allow system system_prop:property_service set;
-- 
GitLab