apply system::ext_storage label to ext4 file system submit/tizen_2.1/20130527.123047 submit/tizen_2.2/20130604.080324
authorjy910.yun <jy910.yun@samsung.com>
Mon, 27 May 2013 12:26:23 +0000 (21:26 +0900)
committerjy910.yun <jy910.yun@samsung.com>
Mon, 27 May 2013 12:26:23 +0000 (21:26 +0900)
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>
mmc-smack-label

index aa5f793..6875726 100755 (executable)
@@ -1,5 +1,6 @@
 #!/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