summaryrefslogtreecommitdiffstats
path: root/sys/geom/eli/g_eli_integrity.c
Commit message (Collapse)AuthorAgeFilesLines
* Bring in geli suspend/resume functionality (finally).pjd2010-10-201-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before this change if you wanted to suspend your laptop and be sure that your encryption keys are safe, you had to stop all processes that use file system stored on encrypted device, unmount the file system and detach geli provider. This isn't very handy. If you are a lucky user of a laptop where suspend/resume actually works with FreeBSD (I'm not!) you most likely want to suspend your laptop, because you don't want to start everything over again when you turn your laptop back on. And this is where geli suspend/resume steps in. When you execute: # geli suspend -a geli will wait for all in-flight I/O requests, suspend new I/O requests, remove all geli sensitive data from the kernel memory (like encryption keys) and will wait for either 'geli resume' or 'geli detach'. Now with no keys in memory you can suspend your laptop without stopping any processes or unmounting any file systems. When you resume your laptop you have to resume geli devices using 'geli resume' command. You need to provide your passphrase, etc. again so the keys can be restored and suspended I/O requests released. Of course you need to remember that 'geli suspend' won't clear file system cache and other places where data from your geli-encrypted file system might be present. But to get rid of those stopping processes and unmounting file system won't help either - you have to turn your laptop off. Be warned. Also note, that suspending geli device which contains file system with geli utility (or anything used by 'geli resume') is not very good idea, as you won't be able to resume it - when you execute geli(8), the kernel will try to read it and this read I/O request will be suspended.
* - Add missing comments.pjd2010-10-201-0/+5
| | | | - Make a comment consistent with others.
* Update copyright years.pjd2010-09-231-1/+1
| | | | MFC after: 1 week
* Add support for AES-XTS. This will be the default now.pjd2010-09-231-0/+2
| | | | MFC after: 1 week
* Implement switching of data encryption key every 2^20 blocks.pjd2010-09-231-1/+1
| | | | | | | This ensures the same encryption key won't be used for more than 2^20 blocks (sectors). This will be the default now. MFC after: 1 week
* Don't forget to initialize crp_olen field, which is used to calculatepjd2006-07-221-0/+1
| | | | bio_completed value.
* - Unbreak the build when geli is compiled into the kernel (on as module),pjd2006-06-061-2/+2
| | | | | | by silencing unfounded compiler warning. Reported by:
* Implement data integrity verification (data authentication) for geli(8).pjd2006-06-051-0/+530
Supported by: Wheel Sp. z o.o. (http://www.wheel.pl)
OpenPOWER on IntegriCloud