Revert^2 "Add mmd selinux policies for zram setup"
This reverts commit 43202350fe48962edd00b7ef968175a96b032895
Reason for revert: Roll forward this change with the updated change in
the same topic to address the selinux violation issue.
Bug: 375432644
Bug: 370509309
Test: m; manually verify mmd zram setup works
Change-Id: I1e620ef74a41672682cf5540d90827af7f810269
diff --git a/private/init.te b/private/init.te
index b16e918..9e51a73 100644
--- a/private/init.te
+++ b/private/init.te
@@ -721,6 +721,8 @@
# swapon() needs write access to swap device
# system/core/fs_mgr/fs_mgr.c - fs_mgr_swapon_all
allow init swap_block_device:blk_file rw_file_perms;
+# Allow to change group owner and permissions for new swap setup in mmd
+allow init swap_block_device:blk_file setattr;
# Create and access /dev files without a specific type,
# e.g. /dev/.coldboot_done, /dev/.booting