summaryrefslogtreecommitdiffstats
path: root/sbin/geom/class/eli
Commit message (Collapse)AuthorAgeFilesLines
* MFC r267667:sevan2016-10-161-1/+1
| | | | | | | use .Mt to mark up email addresses consistently (part1) PR: 191174 Submitted by: Franco Fichtner <franco at lastsummer.de>
* MFH: r284250brueffer2015-06-241-1/+1
| | | | | | | Consistently use trailing whitespace in passphrase prompts. PR: 193496 Submitted by: Fabian Keil
* MFC r265950 (by thomas):pjd2015-06-021-0/+2
| | | | Add mention of metadata version 7 in FreeBSD 10.0.
* MFC r267617:wblock2014-07-151-6/+7
| | | | | Fix spelling, typos, missing articles, contractions. Expanded version of patch supplied with PR.
* Sweep man pages replacing ad -> ada.pluknet2013-10-011-7/+7
| | | | | | Approved by: re (blackend) MFC after: 1 week X-MFC note: stable/9 only
* Note NULL encryption method for GELIcrees2013-08-051-3/+6
| | | | | | PR: docs/180551 Submitted by: r4721@tormail.org Approved by: gjb (mentor)
* o Typo: IEE -> IEEE.maxim2013-03-251-1/+1
| | | | | | PR: docs/173069 Submitted by: Bjorn Heidotting MFC after: 1 week
* Reduce stack usage.pjd2013-03-181-3/+5
|
* Fix minor memory leak.pjd2013-02-101-0/+1
|
* Assert that if we are not dealing with keyfile we are dealing with passfile.pjd2013-02-101-0/+2
|
* Use arc4random_buf(3) instead of reimplementing it.pjd2013-02-101-21/+5
|
* Improve description of various key used by GELI.pjd2012-07-041-74/+154
| | | | | | PR: docs/169089 Submitted by: John W. O'Brien <john@saltant.com> MFC after: 3 days
* 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)
OpenPOWER on IntegriCloud