Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Build error when crypto and swcrypto are omitted from kernel

On Sun, 10 May 2020, Michael van Elst wrote:

On Sun, May 10, 2020 at 08:46:30AM -0700, Paul Goyette wrote:
Here is a patch that makes encrypted swap (but not rijndael) optional:

That looks good to me, too.  I guess you should also add VM_SWAPCRYPT option
to various kernels (GENERIC*, XEN3*, ...)?

It's a default option in sys/conf/std. Individual kernels can disable it
with 'no options VMSWAPCRYPT'.

Yeah, found that.

FWIW, here's an additional patch to update the options(4) man page:

Index: share/man/man4/options.4
RCS file: /cvsroot/src/share/man/man4/options.4,v
retrieving revision 1.512
diff -u -p -r1.512 options.4
--- share/man/man4/options.4    24 Apr 2020 13:54:56 -0000      1.512
+++ share/man/man4/options.4    10 May 2020 17:11:27 -0000
@@ -2221,6 +2221,9 @@ for port specific details including avai
 .It Cd options VMSWAP
 Enable paging device/file support.
 This option is on by default.
+.It Cd options VMSWAPCRYPT
+Enable encryption of swapfile.
+This option is on by default.
 Use CLOCK-Pro, an alternative page replace policy.

| Paul Goyette       | PGP Key fingerprint:     | E-mail addresses:     |
| (Retired)          | FA29 0E3B 35AF E8AE 6651 |     |
| Software Developer | 0786 F758 55DE 53BA 7731 |   |

Home | Main Index | Thread Index | Old Index