All of the files on ext4 file system is removed the execute permission to prevent security issue.
Also All directory on ext4 file system is gived the transmutable option of smack by system-server shell.
Signed-off-by: jy910.yun <jy910.yun@samsung.com>
#!/bin/bash
MOUNT_DIRECTORY=$1
-find $MOUNT_DIRECTORY -type d | xargs chsmack -a '*' -e ''
-find $MOUNT_DIRECTORY -type f | xargs chsmack -a '*'
+find $MOUNT_DIRECTORY -type d | xargs chsmack -a 'system::ext_storage' -t
+find $MOUNT_DIRECTORY -type f | xargs chsmack -a 'system::ext_storage'
+find $MOUNT_DIRECTORY -type f | xargs chmod -x
find $MOUNT_DIRECTORY | xargs chown app:app