summaryrefslogtreecommitdiffstats
path: root/sbin/geom/class/eli
Commit message (Collapse)AuthorAgeFilesLines
* Clarify error that geli generateseadler2012-05-091-0/+3
| | | | | | | | | | when it finds corrupt data. PR: kern/165695 Submitted by: Robert Simmons <rsimmons0@gmail.com> Reviewed by: pjd Approved by: cperciva MFC after: 1 week
* As of r226840, GELI starts one thread per CPU.gjb2012-04-281-2/+1
| | | | | | PR: 167382 Submitted by: John W. O'Brien (john%saltant.com) X-Needs-MFC: r226840
* Remove superfluous paragraph macro.joel2012-03-251-2/+0
|
* Fix a variety of grammar issues and style nits.eadler2012-03-041-74/+75
| | | | | | | | PR: docs/165668 Submitted by: Robert Simmons <rsimmons0@gmail.com> Reviewed by: kaduk@mit.edu Approved by: cperciva MFC after: 1 week
* Add support for creating GELI devices with older metadata version for usepjd2011-10-252-7/+84
| | | | | | | | | | | | | | with older FreeBSD versions: - Add -V option to 'geli init' to specify version number. If no -V is given the most recent version is used. - If -V is given don't allow to use features not supported by this version. - Print version in 'geli list' output. - Update manual page and add table describing which GELI version is supported by which FreeBSD version, so one can use it when preparing GELI device for older FreeBSD version. Inspired by: Garrett Cooper <yanegomi@gmail.com> MFC after: 3 days
* Add 'geli version' subcommand, which will print GELI metadata version of eachpjd2011-10-252-0/+62
| | | | | | | given GEOM provider or if not providers are given it will print versions supported by userland geli(8) utility and by ELI GEOM class. MFC after: 3 days
* When we detect GELI metadata version that is newer than the highest wepjd2011-10-251-5/+35
| | | | | | | support, inform the user about that instead of 'MD5 hash mismatch'. Suggested by: Garrett Cooper <yanegomi@gmail.com> MFC after: 3 days
* Simplify eli_resize() function.pjd2011-10-251-10/+4
| | | | MFC after: 3 days
* Simplify eli_dump() function and allow to dump metadata stored in backup file.pjd2011-10-251-13/+3
| | | | MFC after: 3 days
* Simplify eli_is_attached() function and make it return boot instead of int.pjd2011-10-251-6/+2
| | | | MFC after: 3 days
* Simplify eli_backup_create() and eli_backup_restore() functions.pjd2011-10-251-87/+28
| | | | | | | As a side-effect it is now possible to backup unsupported (newer) GELI metadata versions. MFC after: 3 days
* Sort includes.pjd2011-10-251-13/+13
| | | | MFC after: 3 days
* Document the following sysctls:pjd2011-05-081-2/+22
| | | | | | | | | kern.geom.eli.version kern.geom.eli.key_cache_limit kern.geom.eli.key_cache_hits kern.geom.eli.key_cache_misses MFC after: 1 week
* Change example to not be controversial.pjd2011-03-091-6/+8
| | | | | | | | I'm sorry to anyone who felt offended by this. PR: docs/155385 Reported by: maga_lena <mirto@riseup.net> MFC after: 1 week
* Revert r216473.obrien2010-12-161-1/+1
| | | | | WARNS=6 causes "warning: cast increases required alignment of target type" on arm, ia64, mips, and sparc64.
* Bump WARNS to 6.obrien2010-12-161-1/+1
|
* Rename the generic "CLASS" to the more specific "GEOM_CLASS".obrien2010-12-151-1/+1
| | | | | | While I'm here remove redundancy and inconsistencies. Obtained from: Juniper Networks
* * Recommend a overwrite of whole geli provider before use.delphij2010-12-031-2/+6
| | | | | | | * Correct a typo while I'm there. Reviewed by: pjd MFC after: 2 weeks
* Fix some more warnings found by clang.brucec2010-11-221-1/+1
|
* Use fprintf(stderr) instead of gctl_error() to print a warning about toopjd2010-10-261-2/+2
| | | | | | | | big sector size. When gctl error is set gctl_has_param() always returns 'false', which prevents geli(8) from finding some arguments and also masks an error, which is generates in such case. MFC after: 3 days
* Bring in geli suspend/resume functionality (finally).pjd2010-10-202-1/+152
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Replace strlen(_PATH_DEV) with sizeof(_PATH_DEV) - 1.ae2010-10-091-2/+2
| | | | | | Suggested by: kib Approved by: kib (mentor) MFC after: 5 days
* - Add support for loading passphrase from a file (-J and -j options).pjd2010-09-252-122/+257
| | | | | | | | | | This is especially useful for things like installers, where regular geli prompt can't be used. - Add support for specifing multiple -K or -k options, so there is no need to cat all keyfiles and read them from standard input. Requested by: Kris Moore <kris@pcbsd.org>, thompsa MFC after: 2 weeks
* Update copyright years.pjd2010-09-231-1/+1
| | | | MFC after: 1 week
* Document AES-XTS.pjd2010-09-231-17/+34
| | | | MFC after: 1 week
* - When trashing metadata, repeat overwrite kern.geom.eli.overwrites times.pjd2010-09-231-12/+64
| | | | | | - Flush write cache after each write. MFC after: 1 week
* - Use g_*() API when doing backups.pjd2010-09-231-18/+12
| | | | | | - fsync() created filed. MFC after: 1 week
* Because we first write metadata into new place and then trash old place wepjd2010-09-231-0/+4
| | | | | | | don't want situation where old size is equal to new size, as we will trash newly written metadata. MFC after: 1 week
* - Make use of g_*() API.pjd2010-09-231-18/+13
| | | | | | - Flush cache after writing metadata. MFC after: 1 week
* Simplify code a bit by using g_*() API from libgeom.pjd2010-09-231-19/+10
| | | | MFC after: 1 week
* Add a geli resize subcommand to resize encrypted filesystems priorbrian2010-09-202-5/+187
| | | | | | | | | | | | | | | to growing the filesystem. Refuse to attach providers where the metadata provider size is wrong. This makes post-boot attaches behave consistently with pre-boot attaches. Also refuse to restore metadata to a provider of the wrong size without the new -f switch. The new -f switch forces the metadata restoration despite the provider size, and updates the provider size in the restored metadata to the correct value. Helped by: pjd Reviewed by: pjd
* Fix indent.pjd2010-09-191-7/+7
|
* - Remove gc_argname field. It was introduced for gpart(8), but if Ipjd2010-09-131-30/+25
| | | | | | | understand everything correctly, we don't really need it. - Provide default numeric value as strings. This allows to simplify a lot of code. - Bump version number.
* - Allow to specify value as const pointers.pjd2010-09-131-18/+15
| | | | - Make optional string values always an empty string.
* By default backup geli metadata to a file. It is quite critical 512 bytes,pjd2008-08-292-17/+110
| | | | | | | | | | | | | | | | | | | | | | | once it is lost, all data is gone. Option '-B none' can by used to prevent backup. Option '-B path' can be used to backup metadata to a different file than the default, which is /var/backups/<prov>.eli. The 'geli init' command also prints backup file location and gives short procedure how to restore metadata. The 'geli setkey' command now warns that even after passphrase change or keys update there could be version of the master key encrypted with old keys/passphrase in the backup file. Add regression tests to verify that new functionality works as expected. Update other regression tests so they don't create backup files. Reviewed by: keramida, rink Dedicated to: a friend who lost 400GB of his live by accidentally overwritting geli metadata MFC after: 2 weeks
* - Give algorithms recommendation.pjd2008-08-291-13/+15
| | | | - Keep options in alphabetical order.
* geli onetime command can take only one GEOM provider at a time.pjd2008-08-122-3/+3
|
* Add support for Camellia encryption algorithm.pjd2007-09-011-3/+11
| | | | | | PR: kern/113790 Submitted by: Yoshisato YANAGISAWA <yanagisawa@csg.is.titech.ac.jp> Approved by: re (bmah)
* Add gpart(8).marcel2007-05-151-14/+14
| | | | | | | In order to support gpart(8), geom(8) needs to support a named argument. Also, optional string parameters are a requirement. Both have been added to the infrastructure. The former required all existing classes to be adjusted.
* Correct some typos.pjd2007-05-061-2/+2
|
* Do some cleanups (like freeing memory and closing file descriptors) beforepjd2007-05-011-6/+6
| | | | leaving the functions.
* Warn when user use sectorsize bigger than the page size, which will leadpjd2007-03-051-0/+4
| | | | | | | | to problems when the geli device is used with file system or as a swap. Hopefully will prevent problems like kern/98742 in the future. MFC after: 1 week
* Fix incorrect comment. Geli will protect against data modification, ofpjd2007-03-051-5/+6
| | | | | | | course! It won't protect against reply attacks - try harder to explain them correctly. MFC after: 1 week
* Correct typo.pjd2007-02-221-1/+1
| | | | Spotted by: Tomasz Dudzisz
* When the following conditions are meet:pjd2007-01-251-1/+13
| | | | | | | | | | | | | | | | - First configured key is based only on keyfile (no passphrase). - Device is attached. - User changes first key (setkey) from keyfile to passphrase and doesn't specify number of iterations (with -i option). ...geli(8) won't store calculated number of iterations in metadata. This result in device beeing unaccesable after detach. One can recover from this situation by guessing number of iterations generated, storing it in metadata and trying to attach device. Recovery procedure isn't nice, but one's data is not lost. Reported by: Thomas Nickl <T.Nickl@gmx.net> MFC after: 1 week
* MFp4: G_TYPE_BOOL sounds much better than G_TYPE_NONE.pjd2006-09-301-19/+19
| | | | Changes: 98722
* Remove a contraction and add a missing article.brueffer2006-09-171-2/+2
|
* Fix copy&paste mistake.pjd2006-09-161-1/+1
| | | | Submitted by: Matthias Lederhofer <matled@gmx.net>
* Add 'configure' subcommand which for now only allows setting and removingpjd2006-09-162-1/+88
| | | | | | | | of the BOOT flag. It can be performed on both attached and detached providers. Requested by: Matthias Lederhofer <matled@gmx.net> MFC after: 1 week
* Note that we don't destroy keys on read-only attached providers.pjd2006-09-161-2/+5
| | | | MFC after: 1 week
OpenPOWER on IntegriCloud