VOOZH about

URL: http://anzwix.com/a/DragonFlyBSD/SwaponImplementEncryptedSwap

⇱ Anzwix / DragonFlyBSD / swapon - Implement encrypted swap


Anzwix

  1. Latest News
  2. Linux Kernel: Linux 7.2-rc1
  3. avutil/int128: add header for 128-bit integers
  4. swscale/rational64: add 64-bit rational type
  5. avfilter/vf_scale_cuda: add `use_filters` option
  6. swscale/format: add support for AV_PIX_FMT_PAL8
  7. Linux Kernel: Linux 7.1
  8. swscale: add new SwsContext.backends option
  9. avcodec/itut35: add support for HDR Vivid


  1. Latest News (cont.)
  2. Linux Kernel: Linux 7.1-rc6
  3. avcodec/bsf: add dovi_split BSF
  4. avformat/mov: add support for vdep based tref
  5. Arch64: Add support for SVE2 ifuncs
  6. Linux Kernel: Linux 7.1-rc5
  7. swscale/aarch64: add NEON yuv->rgb16 fast paths
  8. avformat/webp: add Animated WebP demuxer
  9. apv_decode: add a Vulkan hwaccel
  10. Linux Kernel: Linux 7.1-rc4
  11. Linux Kernel: Linux 7.1-rc3
  12. Linux Kernel: Linux 7.1-rc2

Featured content is also available via:

👁 Image
👁 Image
👁 Image

swapon - Implement encrypted swap

Operating Systems / DragonFlyBSD - Matthew Dillon [apollo.backplane.com] - 16 May 2015 15:45 UTC

Implement crypting of the swap device. When enabled in this manner /dev/urandom is used to generate a 256-bit random key and the base device is automatically cryptsetup and mapped, making crypted swap trivial.

- Implement the 'crypt' fstab option, so swapon -a and swapoff -a work as expected for crypted swap. Again, the base device (e.g. /dev/da0s1b) should be specified. The option will automatically map it with cryptsetup and swap on the mapping.

Also implement -c to crypt manual swapon/swapoff commands. If used for swapon it must also be used for swapoff. Again, specify the base device (e.g. /dev/da0s1b), not the /dev/mapper device, for both cases.

- Implement the 'trim' fstab option, allow trim to be specified in the fstab instead of requiring a rc.conf option.

- The trim option no longer exits with an error if the device does not support TRIM or TRIM is not enabled.

58b7380 swapon - Implement encrypted swap
sbin/swapon/swapon.8 | 36 ++++++++++--
sbin/swapon/swapon.c | 156 +++++++++++++++++++++++++++++++++++++++++---------
2 files changed, 162 insertions(+), 30 deletions(-)

Upstream: gitweb.dragonflybsd.org


Legal Disclaimer & Disclosure | Contact Us
Copyright © 2010 - 2026 by Phoronix Media. All rights reserved.
All trademarks and copyrights used are properties of their respective owners.
Powered by the Phoronix Content Management System (PHXCMS-8).