Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing LUKS passphrase #1

Closed
ghost opened this issue Jun 10, 2014 · 9 comments
Closed

Changing LUKS passphrase #1

ghost opened this issue Jun 10, 2014 · 9 comments

Comments

@ghost
Copy link

ghost commented Jun 10, 2014

Moved from freepto-lb repository: AvANa-BBS/freepto-lb#108

Feature Description:

Enabled the LUKS passphrase change.
This feature has been implemented using freepto-usb-utils tool: https://github.com/AvANa-BBS/freepto-usb-utils

The following commits should be integrated in the main repository:
vinc3nt/freepto-passwords-changer@2021afd
vinc3nt/freepto-passwords-changer@fde7d81

@ghost ghost added the enhancement label Jun 10, 2014
@ghost ghost self-assigned this Jun 10, 2014
@boyska
Copy link
Member

boyska commented Jul 6, 2014

The code seems ok. Need to test, looks very good!

@boyska
Copy link
Member

boyska commented Jul 6, 2014

How can we make freepto user test?

Proposal A) We probably need to move this into berenjena repositories, have a berenjena early user upgrade it, and test it.

Proposal B) Create a debian package for this, put it somewhere and let user install it. But how can they do it securely? We can let them add the berenjena repository with very low pinning priority, then running

apt-get install -t berenjena freepto-passwords-changer

@paskao
Copy link
Member

paskao commented Jul 6, 2014

We can build a first alpha image for berenjena, setup repository and publish it. So people can test this feature and all the others that need tests.

@boyska
Copy link
Member

boyska commented Jul 6, 2014

Ok paskao, this seems very good to me. I also propose to make the image already containing a persistence partition, and having the syslinux menu without the removable-usb thing. This mean that testing in qemu can be done.
So this is

  1. building a .deb of this
  2. putting it inside a new build of berenjena
  3. appending some megabytes of /dev/zero at the end of the .img
  4. creating the persistence partition (this is the hardest part!)
  5. removing the removable-usb thing
  6. publishing it
  7. writing a RFT

@paskao
Copy link
Member

paskao commented Jul 6, 2014

Ok for me. This can simplify the test work.

@boyska
Copy link
Member

boyska commented Jul 10, 2014

also see http://linux.die.net/man/8/kpartx

@ghost
Copy link
Author

ghost commented Jul 28, 2014

How to test

Virtualization: ok
Freepto image: download for kvm/qemu - download for virtualbox
Needed: kvm/qemu or virtualbox
Steps:

  • launch freepto and mount the persistence: during the boot phase the system will ask you for the luks password (that is "freepto")
  • from the freepto menu launch "freepto-password-changer" (the program will ask you for the user (paranoid) password that is "live")
  • change the luks password
  • reboot freepto
  • put the new luks password during the boot

@boyska
Copy link
Member

boyska commented Jul 29, 2014

while test with virtualization is surely fine, I think that testing with "real hardware" is appreciated, since there could be issues with /proc/mounts parsing. I don't think they are very probable, but anyway...

@boyska
Copy link
Member

boyska commented Jul 29, 2014

tested on qemu, works great!

@ghost ghost closed this as completed Aug 10, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants