sync();
INFO(SINK, "Encryption completed");
::vconf_set_str(EXTERNAL_STATE_VCONF_KEY, "encrypted");
+
+ //For smackfsroot, smackfsdef option without CAP_MAC_ADMIN
+ runtime::File fileToTouch("/tmp/.ode-mount-external");
+ try {
+ fileToTouch.remove();
+ } catch(runtime::Exception &e) {}
+ fileToTouch.create(O_WRONLY);
+
context.notify("ExternalEncryption::mount");
} catch (runtime::Exception &e) {
::vconf_set_str(EXTERNAL_STATE_VCONF_KEY, "error_partially_encrypted");
OPTION=`cat /proc/mounts | grep "${STORAGE} ${STORAGE} ecryptfs" | gawk '{print $4}'`
+KEY_DESC=`echo ${OPTION} | sed -e s/.*'ecryptfs_sig='// -e s/','.*//`
+KEY=`su security_fw -s /bin/keyctl search @u user ${KEY_DESC}`
+
+su security_fw -s /bin/keyctl setperm ${KEY} 0x3f111010
+keyctl link ${KEY} @u
+
if [ -z ${OPTION} ]; then
exit -1
fi