From 6a35e5fde735a676b62802ba64fb804ecca4bfb0 Mon Sep 17 00:00:00 2001
From: Jin Qian <jinqian@google.com>
Date: Wed, 9 Aug 2017 14:02:02 -0700
Subject: [PATCH] move e2fs rules from private to public

Allow vendors to extend e2fs rules to format other partitions.

Bug: 64430395
Change-Id: I51566f72dea814af97b1fedbd4618cd4095d64c3
---
 private/e2fs.te | 14 --------------
 public/e2fs.te  | 14 ++++++++++++++
 2 files changed, 14 insertions(+), 14 deletions(-)
 delete mode 100644 private/e2fs.te

diff --git a/private/e2fs.te b/private/e2fs.te
deleted file mode 100644
index add1cc2a4..000000000
--- a/private/e2fs.te
+++ /dev/null
@@ -1,14 +0,0 @@
-type e2fs, domain, coredomain;
-
-allow e2fs block_device:blk_file getattr;
-allow e2fs block_device:dir search;
-allow e2fs userdata_block_device:blk_file rw_file_perms;
-
-# access /proc/filesystems
-allow e2fs proc:file r_file_perms;
-
-# access /sys/fs/ext4/features
-allow e2fs sysfs_fs_ext4_features:file r_file_perms;
-
-# access sselinux context files
-allow e2fs file_contexts_file:file { getattr open read };
diff --git a/public/e2fs.te b/public/e2fs.te
index ecb25a2cf..30a815a01 100644
--- a/public/e2fs.te
+++ b/public/e2fs.te
@@ -1 +1,15 @@
+type e2fs, domain, coredomain;
 type e2fs_exec, exec_type, file_type;
+
+allow e2fs block_device:blk_file getattr;
+allow e2fs block_device:dir search;
+allow e2fs userdata_block_device:blk_file rw_file_perms;
+
+# access /proc/filesystems
+allow e2fs proc:file r_file_perms;
+
+# access /sys/fs/ext4/features
+allow e2fs sysfs_fs_ext4_features:file r_file_perms;
+
+# access sselinux context files
+allow e2fs file_contexts_file:file { getattr open read };
-- 
GitLab