Resize /system in boot

Is it really safe?
Tested on Allview V3 Viper and Huawei Mate 9
diff --git a/sepolicy/file_contexts b/sepolicy/file_contexts
index f80dc3a..e4a62b8 100644
--- a/sepolicy/file_contexts
+++ b/sepolicy/file_contexts
@@ -1,3 +1,4 @@
 /system/bin/phh-su                   u:object_r:phhsu_exec:s0
 /system/bin/vndk-detect			u:object_r:vndk_detect_exec:s0
 /system/etc/usb_audio_policy_configuration.xml	u:object_r:vendor_configs_file:s0
+/system/bin/resize-system.sh u:object_r:update_engine_exec:s0
diff --git a/sepolicy/resize.te b/sepolicy/resize.te
new file mode 100644
index 0000000..12d95c6
--- /dev/null
+++ b/sepolicy/resize.te
@@ -0,0 +1,6 @@
+allow update_engine { toolbox_exec system_file }:file rx_file_perms;
+allow update_engine labeledfs:filesystem remount;
+
+allow update_engine sysfs_fs_ext4_features:dir r_dir_perms;
+allow update_engine sysfs_fs_ext4_features:file r_file_perms;
+allow update_engine self:capability { sys_resource };