LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-20-2023, 03:40 PM   #31
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,065

Rep: Reputation: Disabled

Quote:
Originally Posted by dosensuppe View Post
UPDATE:
Unfortunate for us, using an encrypted boot:
https://mjg59.dreamwidth.org/

Unfortunately having an unencrypted boot also poses a risk to tampering with our system. One has to wager what is more important to ones security.

Let's hope grub2 will support argon2 anytime soon. Fortunately LUKS headers can be easily converted as is the topic of the article. Thanks to Didier Spaier for mentioning that.
Actually the issue arise only if you switch from argon2i to argon2id (this is what means the header conversion). In any case for such a transition I would first decrypt the drive
then re-encrypt it with another algorithm (and in Slint there is no separate /boot partition anyway).
 
Old 04-20-2023, 04:55 PM   #32
dosensuppe
Member
 
Registered: Feb 2021
Location: Germany
Distribution: Artix Linux, Slackware, Gentoo
Posts: 83

Original Poster
Rep: Reputation: Disabled
So this is only an issue upon conversion, but not from creating an encrypted volume from scratch?
I don't quite understand.
Right now I'm using LUKS1
 
Old 04-21-2023, 02:25 AM   #33
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,065

Rep: Reputation: Disabled
Quote:
Originally Posted by dosensuppe View Post
So this is only an issue upon conversion, but not from creating an encrypted volume from scratch?
My understanding is that that whatever you do GRUB is not yet able to support argon2id according to Matthew.
Quote:
Right now I'm using LUKS1
This is also what is used by the Slint installer if encryption is requested. I have considered switching to Argon2 for the incoming new version of the installer, but the drawback is that could require a lot of RAM depending on the settings, beyond the current requirement to install Slint which is at least 2G, if I understand the part 4 Parameter Choice of the RFC 9106.
 
1 members found this post helpful.
Old 05-16-2023, 02:41 PM   #34
dosensuppe
Member
 
Registered: Feb 2021
Location: Germany
Distribution: Artix Linux, Slackware, Gentoo
Posts: 83

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Didier Spaier View Post
My understanding is that that whatever you do GRUB is not yet able to support argon2id according to Matthew.This is also what is used by the Slint installer if encryption is requested. I have considered switching to Argon2 for the incoming new version of the installer, but the drawback is that could require a lot of RAM depending on the settings, beyond the current requirement to install Slint which is at least 2G, if I understand the part 4 Parameter Choice of the RFC 9106.
Is there somewhere I could get closer information on this?
I'd really prefer FDE and have already set up my machines this way but would still like to have the newer much more secure standards.
 
Old 05-16-2023, 02:54 PM   #35
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,065

Rep: Reputation: Disabled
Quote:
Originally Posted by dosensuppe View Post
Is there somewhere I could get closer information on this?
I'd really prefer FDE and have already set up my machines this way but would still like to have the newer much more secure standards.
Eventually it is unclear to me whether argon 2id is already supported by GRUB or not. Best would be to ask the devs:
https://lists.gnu.org/mailman/listinfo/grub-devel/
 
Old 05-11-2024, 01:33 PM   #36
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,702

Rep: Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382
Sorry to resurrect a year old thread, but I went down this same road last week and this post was extremely helpful. I have full disk encryption on my laptop as was getting tired of having to type my password three times (power on, unlock root, unlock swap). After playing around in a VM I first realized I could set my swap up in a different way so that I would not need a password. I then weighed my options for a one password option for power on and root, first I thought about using the TPM, but abandoned that almost immediately. I then decided to use a key embedded in the initramfs. This could be accomplished using dracut, but I found a guide that allowed me to do it in stock slackware without any third party packages. All that is really needed is a small tweak to the initrd init.

https://yellowapple.us/2022/02/10/sl...-efi-only.html

This guide assumes you are going to setup your drive in a LVM configuration. If you want to do that you can follow the guide almost exactly, but you don't have to. I tested it in a VM and you can setup your drive in a normal configuration and it will still work, you'll just have to make a few modifications.
 
1 members found this post helpful.
Old 05-11-2024, 02:11 PM   #37
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,065

Rep: Reputation: Disabled
I have done something like that patching mkinitrd: https://www.linuxquestions.org/quest...5/#post6301332
I also requested to apply this patch in the genuine mkinitrd: https://www.linuxquestions.org/quest...5/#post6301332 to no avail. However as switching to dracut made my life of package/distribution maintainer way easier I don't care.

Last edited by Didier Spaier; 05-11-2024 at 02:35 PM.
 
1 members found this post helpful.
Old 05-11-2024, 05:48 PM   #38
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,702

Rep: Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382Reputation: 1382
I tried dracut and found it pretty interesting, but I admittedly didn't get very far with it. I am thinking about RTFM and playing around with it in a VM.

Last edited by Daedra; 05-11-2024 at 06:32 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to have luks encryption with keyfile OR passphrase (efi full disk encryption including boot)? byroncollege Linux - Security 2 03-30-2017 07:45 AM
[SOLVED] Is there a cli method of running a command twice without having to type it twice? powderburns Linux - Software 4 03-24-2017 09:55 AM
Mint 18 Full disk encryption VS Veracrypt Full Disk encryption: Help a Noob Decide Please ! APeacefulRig Linux - Security 2 11-11-2016 08:10 AM
Can I avoid Having to type in root password over and over again on Fedora 14? WTFsandwich Linux - Newbie 7 12-24-2011 11:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration