Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #173490 > unrolled thread
| Started by | Hans <hans.ullrich@loop.de> |
|---|---|
| First post | 2016-10-15 13:50 +0200 |
| Last post | 2016-10-15 19:40 +0200 |
| Articles | 3 — 3 participants |
Back to article view | Back to linux.debian.user
uswsusp - security hole fixed? Hans <hans.ullrich@loop.de> - 2016-10-15 13:50 +0200
Re: uswsusp - security hole fixed? Teemu Likonen <tlikonen@iki.fi> - 2016-10-15 14:20 +0200
Re: uswsusp - security hole fixed? deloptes <deloptes@gmail.com> - 2016-10-15 19:40 +0200
| From | Hans <hans.ullrich@loop.de> |
|---|---|
| Date | 2016-10-15 13:50 +0200 |
| Subject | uswsusp - security hole fixed? |
| Message-ID | <ssvDs-74X-7@gated-at.bofh.it> |
Hello list, as I am a little security aimed, my /usr, /var and /home (each on a separate partition) are enrypted with luks. Some time ago, I discovered, that when I suspend my system (suspend-to-disk), and resume it again, I did not need to enter the password for /usr. Well, my computer asked for it, but pressing enter for three times let the system boot up. The resume device was the swap device, which was not encrypted. This means, at that time, the password to encrypt the partitions were stored on the swap device when suspended. Very bad idea!!! So, my solution was, to encrypt the swap partition, too (with luks). (Yes, I know, this is not officially recommended) That worked well in the security sense. But from now on appeared a new problem: resume did not always work well (although the swap device was opened well at resume) and from time to time I had to add the parameter "noresume" at boot. Also not much satisfying. Now I changed back to an unencrypted swap device, resume works well again. However, the behaviour changed: When entering the wrong password at resume for /usr three times, the system shuts off and reboots again. This new boot is a fresh boot, it is no resume. So far to the situatiion. Now my notes/questions: 1. What is the status of suspend to disk at the moment, when we use encrypted partitions with the prior look to security? Known bugs? Not possible? 2. When entering the wrong password(s), the system should not fresh reboot, but starting in resume mode again. 3. I believe, the memory data and the swap data can be stored somewhere else, so IMO it should be /usr by default. Good idea? 4. Do I need UUID entries in some config files? respective Are UUID entries preferred before standard entries like /dev/sdaX? My hardware is an EEEPC 1005HGO, debian/testing 32-bit, actual packet versions (from today). I would be happy, when someone could make some things for me a little bit clearer, as uswsusp also involves cryptsetup and update-iniramfs-tools, which are also configured, when I run "dpkg-reconfigure uswsusp". Maybe other people might also be interested in security and want to know. Thanks for any help. Best regards Hans
[toc] | [next] | [standalone]
| From | Teemu Likonen <tlikonen@iki.fi> |
|---|---|
| Date | 2016-10-15 14:20 +0200 |
| Message-ID | <ssw6u-7yn-7@gated-at.bofh.it> |
| In reply to | #173490 |
[Multipart message — attachments visible in raw view] — view raw
Hans [2016-10-15 13:44:41+02] wrote: > as I am a little security aimed, my /usr, /var and /home (each on a > separate partition) are enrypted with luks. > I would be happy, when someone could make some things for me a little > bit clearer, I think the usual and better way is to have an unencrypted /boot and a single other LUKS partition which contains LVM logical volumes for everything else (swap, / and whatever). So swap is encrypted too. I have had this setup for ages on desktop and laptop and it has always worked (including s2disk). -- /// Teemu Likonen - .-.. <https://github.com/tlikonen> // // PGP: 4E10 55DC 84E9 DFF6 13D7 8557 719D 69D3 2453 9450 ///
[toc] | [prev] | [next] | [standalone]
| From | deloptes <deloptes@gmail.com> |
|---|---|
| Date | 2016-10-15 19:40 +0200 |
| Message-ID | <ssB69-2i0-1@gated-at.bofh.it> |
| In reply to | #173491 |
Teemu Likonen wrote: > I think the usual and better way is to have an unencrypted /boot and a > single other LUKS partition which contains LVM logical volumes for > everything else (swap, / and whatever). So swap is encrypted too. I have > had this setup for ages on desktop and laptop and it has always worked > (including s2disk). +1
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.user
csiph-web