[dm-crypt] dm-crypt.ko external kernel module
gmazyland at gmail.com
Tue Jul 5 23:03:59 CEST 2016
On 07/05/2016 07:53 PM, Tapas Sarangi wrote:
> Is there a way to build external kernel module dm-crypt.ko that is
> not included by default in the kernel configs ? Is there any
> instruction on where to get the source tarball etc… ?
While is possible (in some configurations) to build kernel module separately
with the help of simple makefile and some kernel headers, it is not the way dmcrypt
should be used.
The reason is that code is directly dependent on internal kernel structures
and also requires some other config options (like device-mapper infrastructure,
kernel crypto API and particular kernel block layer settings).
The dmcrypt is included in the mainline kernel, there is no need for separate
source tarball, just use mainline kernel source (drivers/md/dmcrypt.c is
the module core).
Your distro must have these sources available if they are distributing binaries
(it is GPL code), so you can always compile modules from it.
More information about the dm-crypt