|
2012-01-18
, 17:11
|
|
Posts: 238 |
Thanked: 291 times |
Joined on Mar 2010
@ London, UK
|
#32
|
The Following 2 Users Say Thank You to fareed_xtreme For This Useful Post: | ||
|
2012-01-18
, 17:55
|
Posts: 115 |
Thanked: 342 times |
Joined on Dec 2010
|
#33
|
And please NIM101, if You quote, don't cut it in a way that changes meaning I've said: "writing by hand *or* saving as sh script".
Also, AFAICT, you haven't had idea if "hidden volume protected" option will work or not (well, at least during our last IRC conversation),
... IMO pointless for any other reason, that setting it up for other program/GUI. Also, i don't see any reason to save scripts for executing 1 short command with 1 short value, like ... Using auto-completion via TAB, it's much faster to write by hand.
...It also contains many checks and warnings, popping up - using Maemo notifications - if any stage fails (thus, user can feel relatively sure, that every command succeed, if no errors popped).
I use a custom made TrueCrypt Script which doesn't work no more.
The Following 2 Users Say Thank You to NIN101 For This Useful Post: | ||
|
2012-01-18
, 21:56
|
|
Posts: 238 |
Thanked: 291 times |
Joined on Mar 2010
@ London, UK
|
#34
|
Oops, accidentally skipped it. Excuse me.
Ohm..., no, I don't remember that, but let's forget it.
The point of my greps and cuts is that you can't know the name of the new mapper. Sure, if you only mount one, it is likely to be /dev/mapper/truecrypt1, but if you have multiple volumes, it's better to get it from TC output (especially if the order you mount them is not always the same).
I also think (and know) that typing something like ./tcmasstorage is faster and more convenient than the command with the per-defined /dev/mapper/truecryptX
Well, that's a good idea.
More details on that?
The icons are good imho (if not under some evil copyright :P) .
The Following User Says Thank You to fareed_xtreme For This Useful Post: | ||
|
2012-01-18
, 22:32
|
|
Posts: 5,028 |
Thanked: 8,613 times |
Joined on Mar 2011
|
#35
|
|
2012-01-19
, 02:53
|
|
Posts: 1,455 |
Thanked: 3,309 times |
Joined on Dec 2009
@ Rochester, NY
|
#36
|
MOUNT_PT=/media/truecrypt1 DEV_COUNT=2 if [ -e $MOUNT_PT ]; then DEV_COUNT=3 fi /sbin/lsmod | grep g_file_storage > /dev/null if [ $? != 0 ]; then /sbin/modprobe g_file_storage stall=0 luns=$DEV_COUNT removable RC=$? fi if [ $RC != 0 ]; then logger "$0: failed to install g_file_storage" exit 1 fi LUN0='/sys/devices/platform/musb_hdrc/gadget/gadget-lun0/file' LUN1='/sys/devices/platform/musb_hdrc/gadget/gadget-lun1/file' LUN2='/sys/devices/platform/musb_hdrc/gadget/gadget-lun2/file' if [ $DEV_COUNT=3 ]; then # since we may be called when this was already set up... if [ -e $LUN2 ]; then # find/remember out mount point TC_DEV=`/bin/df | /bin/grep $MOUNT_PT | /usr/bin/cut -d\ -f1` if [ "x$TC_DEV" = "x" ]; then DEV_COUNT=2 else DEV_COUNT=3 fi else DEV_COUNT=2 fi fi
if [ $# = 1 ]; then STR=`cat $LUN0` if [ "x$STR" = "x" ]; then echo $1 > $LUN0 else echo $1 > $LUN1 fi if [ $DEV_COUNT=3 ]; then STR=`cat $LUN2` if [ "x$STR" = "x" ]; then echo $TC_DEV > $LUN2 fi fi fi
The Following 2 Users Say Thank You to woody14619 For This Useful Post: | ||
|
2012-01-19
, 17:56
|
Posts: 115 |
Thanked: 342 times |
Joined on Dec 2010
|
#37
|
But now I believe it needs to run as root to execute. Error relates to Kernel not supporting something...
|
2012-01-19
, 18:33
|
|
Posts: 1,455 |
Thanked: 3,309 times |
Joined on Dec 2009
@ Rochester, NY
|
#38
|
/bin/mount
/bin/mount -t vfat /dev/mmcblk1p1 /mnt/mmc
The Following User Says Thank You to woody14619 For This Useful Post: | ||
|
2012-01-19
, 19:30
|
Posts: 115 |
Thanked: 342 times |
Joined on Dec 2010
|
#39
|
Not exactly. Sudo can restrict not only the program called, but the options passed to it.
cat truecrypt.sudoers user ALL = NOPASSWD: /usr/bin/truecrypt user ALL = NOPASSWD: /opt/maemo/usr/bin/truecrypt
The Following 2 Users Say Thank You to NIN101 For This Useful Post: | ||
|
2012-01-19
, 20:20
|
|
Posts: 1,455 |
Thanked: 3,309 times |
Joined on Dec 2009
@ Rochester, NY
|
#40
|
I know that. Doesn't matter here. The TC package comes with the following rule:
and this rule allows to mess with every file on the system. That simple.Code:cat truecrypt.sudoers user ALL = NOPASSWD: /usr/bin/truecrypt user ALL = NOPASSWD: /opt/maemo/usr/bin/truecrypt
The Following User Says Thank You to woody14619 For This Useful Post: | ||
Tags |
cryptography, encrypted, kernelcrypto, security, truecrypt |
|
I've no friggin idea, why I'm able to hotswap mass-storage mounts - or, why my microSD partition was *never* dismounted from N900, when exported to desktop via mass-storage.
Anyway, thanks for link to interesting material. Yet, I've never had *any* problems with my "multimount" setup (speaking off microSD partition 1) - not even single vfat corruption, unlike many other people, that doesn't seem to have "multimount"
Filesystem checking - if started by hand or via backupmenu "FSCK all partitions" - always show perfectly fine filesystem. Just keep in mind, that I've never tried stupid things like simultaneous write from 2 devices, though.
Of course, If I ever encounter any problems related to mass-storage multimount, I'll report it ASAP.
---
In the meantime, I've prepared set of scripts, that should take care of enabling encrypted partitions with encrypted swap, and disabling it in favor of regular swap after "work". It also contains many checks and warnings, popping up - using Maemo notifications - if any stage fails (thus, user can feel relatively sure, that every command succeed, if no errors popped).
As a nice bonus for KP users, I've also upgraded actual encrypted swap creation, to make use of XTS + it's using stronger encryption as whole (when compared to original instructions by NIN101 - BTW, thanks for it, I would not be able to do it without Your research!).
I'll post it today - I'm trying to figure a nice way to allow user-defined patches to encrypted volumes, swaps etc + some filesystem option customization. No GUI yet, but simple config file - instead of modyfing raw script - would be nice beginning, I think.
/Estel
N900's aluminum backcover / body replacement
-
N900's HDMI-Out
-
Camera cover MOD
-
Measure battery's real capacity on-device
-
TrueCrypt 7.1 | ereswap | bnf
-
Hardware's mods research is costly. To support my work, please consider donating. Thank You!
Last edited by Estel; 2012-01-18 at 04:11.