Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 95725 - Add support for sys-fs/loop-aes-3.0c
Summary: Add support for sys-fs/loop-aes-3.0c
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
: 95794 (view as bug list)
Depends on: 95939 95941
Blocks:
  Show dependency tree
 
Reported: 2005-06-10 15:42 UTC by Alon Bar-Lev (RETIRED)
Modified: 2005-06-21 13:22 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
loop-aes.diff (loop-aes.diff,692 bytes, patch)
2005-06-10 23:14 UTC, Stefan Schweizer (RETIRED)
Details | Diff
Modified loop-aes (loop-aes.diff,1.42 KB, patch)
2005-06-11 11:59 UTC, Alon Bar-Lev (RETIRED)
Details | Diff
util-linux-2.12q-r1 (util-linux.diff,1.11 KB, patch)
2005-06-11 12:04 UTC, Alon Bar-Lev (RETIRED)
Details | Diff
aespipe (aespipe.diff,431 bytes, patch)
2005-06-11 12:07 UTC, Alon Bar-Lev (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alon Bar-Lev (RETIRED) gentoo-dev 2005-06-10 15:42:50 UTC
Please add support for version 3.0c (Simple)

Please consider adding a new use "keyscrub" by adding the following:
use keyscrub && BUILD_PARAMS="${BUILD_PARAMS} KEYSCRUB=y"

The keyscrub is very important in protecting the encryption key in memory.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.




The sys-apps/util-linux should also be modified.
There is a version 2.12q which patches the files using util-linux-2.12p.diff...
Strange.. If I understand correctly it should have been version 2.12p-r2

After you add support for loop-aes-3.0c you should add
sys-apps/util-linux-2.12q-r1 which patches the util-linux-2.12q.diff which comes
with loop-aes.

The message at pkg_postinst of sys-fs/loop-aes should refer to the new
util-linux package.

I've tested loop-aes-3.0c and it seems stable.
Comment 1 Stefan Schweizer (RETIRED) gentoo-dev 2005-06-10 23:14:44 UTC
Created attachment 61039 [details, diff]
loop-aes.diff

Can you please try this patch?
If I understand correctly keyscrub should be default on as useflag, or does it
do any harm?

Can you please explain the util-linux thing a bit better? Why do we need the
new version for loop-aes? What should be in the post-emerge message?
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2005-06-11 11:26:05 UTC
*** Bug 95794 has been marked as a duplicate of this bug. ***
Comment 3 Alon Bar-Lev (RETIRED) gentoo-dev 2005-06-11 11:59:18 UTC
Created attachment 61068 [details, diff]
Modified loop-aes

I prefer to specify every parameter once... So I append the BUILD_PARAMS...
Comment 4 Alon Bar-Lev (RETIRED) gentoo-dev 2005-06-11 12:04:00 UTC
Created attachment 61069 [details, diff]
util-linux-2.12q-r1

Here is the modified util-linux which uses RELEASE loop-AES in order to patch
the software.
Comment 5 Alon Bar-Lev (RETIRED) gentoo-dev 2005-06-11 12:07:12 UTC
Created attachment 61070 [details, diff]
aespipe

This is the latest aespipe which is a component of loop-AES that encrypts a
device.
Comment 6 Alon Bar-Lev (RETIRED) gentoo-dev 2005-06-11 12:16:48 UTC
> Can you please explain the util-linux thing a bit better? Why do we need the
> new version for loop-aes? What should be in the post-emerge message?

loop-aes is built uppon three components:
1. Modified loop kernel module that performs the encrypted loop.
2. Modified util-linux (mount, umount, losetup) that support encryption related
arguments and pass-phrase.
3. aespipe that allows encryption/decryption of a device.

In order to work correctly all version need to be synchronized.

I don't know way, but in loop-aes-*.ebuild there is not RDEPEND with
linux-util-*... It just state in post emerge that you should install it... I
guess it is because you need to specify "crypt" use and that loop-aes cannot
check if you did.

I've modified util-linux to download the loop-AES and obtain the patch from
there. I think it is safer this way.

I've also updated the post emerge message to display the proper package name.
But I think a solution should be found for dependency that portage may enforce.
Comment 7 Alon Bar-Lev (RETIRED) gentoo-dev 2005-06-11 12:18:54 UTC
> If I understand correctly keyscrub should be default on as useflag, or does it
> do any harm?

The keyscrub takes CPU resources... So I am not sure it should be enabled by
default. It is true that it is more secure... But maybe people do not want to
CPU to work harder...
Comment 8 Stefan Schweizer (RETIRED) gentoo-dev 2005-06-12 10:08:13 UTC
Can you please open new bugs for the util-linux and aespipe maintainers and make
this bug depend on them?
Comment 9 Alon Bar-Lev (RETIRED) gentoo-dev 2005-06-13 02:47:39 UTC
Done,

bug 95939 - sys-apps/util-linux
bug 95941 - app-crypt/aespipe
Comment 10 Alon Bar-Lev (RETIRED) gentoo-dev 2005-06-16 09:12:27 UTC
Can you please proceed?
The aespipe maintainer is not responsive and the util-linux update which is the
important component already merged into the tree.

Current aespipe is too old, event to the loop-aes-3.0b...
Whoever uses aespipe must have created his own ebuild already.

I will follow the aespipe update.
Thanks!
Comment 11 Alon Bar-Lev (RETIRED) gentoo-dev 2005-06-18 00:10:48 UTC
OK,
Now all ready.
Comment 12 Alon Bar-Lev (RETIRED) gentoo-dev 2005-06-20 10:13:20 UTC
Thanks!
Good job! 
I didn't know I can "built_with_use util-linux crypt"
Comment 13 Alon Bar-Lev (RETIRED) gentoo-dev 2005-06-20 10:28:53 UTC
If it interest you, you can find a document that describes how to use encrypted
root file system and swap when using suspend2...

These updates made it available for all.

http://wiki.suspend2.net/EncryptedSwapAndRoot?action=show
Comment 14 Stefan Schweizer (RETIRED) gentoo-dev 2005-06-21 13:22:47 UTC
this is fixed already :)