-
-
Notifications
You must be signed in to change notification settings - Fork 156
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
swap presence should stop blocking operations #44
Comments
I don't agree, as our goal is to provide the user with security out of the box. Users wil read the warning only after their security has been compromised. The swapoff -a solution is problematic, as we've discussed: swapoff -a may lead to system hanging for minutes (reading data from swap) or even crashing completely (if the ram isn't enough). However, I have an idea: see #38 and please give your opinion on that. I think that is the final solution of the problem |
ok, as discussed on IRC, considering that an active swap might disclose tomb's contents during its use, a scenario i didn't consider before, i think now that it is reasonable to enforce this behaviour. even using mlock doesn't solves this problem.... |
Could you ask about doing that instead of just suggesting that? That will add some usability (and prevent some typing) while making sure that the user know what's happening.
Also a setting for always doing that would be awesome. |
On 06/09/2016 03:13 AM, Eloy Espinaco wrote:
I don't think it's a good idea:
If you have good reason to use unencrypted swap (hint: you probably |
Ok, didn't know about that.
On the other hand if the recommended approach is encrypting the swap, the
hint should say something about it (besides teaching `swapoff -a`), that
should be possible as is just changing the error message. in
https://github.com/dyne/Tomb/blob/master/tomb#L332
|
Tomb has no interactivity by an agreed design choice, so that it can be used safely in shell scripts. |
Why not add a note with a link about encrypting the swap (like --- Eloy 2016-06-09 10:27 GMT-03:00 D.J.R. notifications@github.com:
|
it is way too extreme to stop operations for the presence of swap; this behavior wasn't even discussed.
OTOH the swap vulnerability counts.
tomb runs as root so it could check for presence of a swap and execute swapoff/on -a
until this is implemented we cannot block the operation, but in case print out a warning.
The text was updated successfully, but these errors were encountered: