All of lore.kernel.org
 help / color / mirror / Atom feed
* [dm-crypt] dm-crypt.ko external kernel module
@ 2016-07-05 17:53 Tapas Sarangi
  2016-07-05 21:03 ` Milan Broz
  0 siblings, 1 reply; 3+ messages in thread
From: Tapas Sarangi @ 2016-07-05 17:53 UTC (permalink / raw)
  To: dm-crypt

[-- Attachment #1: Type: text/plain, Size: 771 bytes --]

Hi,

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... ?

Thanks for any help.
-Tapas




________________________________

This transmission may contain information that is privileged, confidential, and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is strictly prohibited. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format.

[-- Attachment #2: Type: text/html, Size: 1248 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dm-crypt] dm-crypt.ko external kernel module
  2016-07-05 17:53 [dm-crypt] dm-crypt.ko external kernel module Tapas Sarangi
@ 2016-07-05 21:03 ` Milan Broz
  2016-07-05 21:07   ` Tapas Sarangi
  0 siblings, 1 reply; 3+ messages in thread
From: Milan Broz @ 2016-07-05 21:03 UTC (permalink / raw)
  To: Tapas Sarangi; +Cc: dm-crypt

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.

Milan

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dm-crypt] dm-crypt.ko external kernel module
  2016-07-05 21:03 ` Milan Broz
@ 2016-07-05 21:07   ` Tapas Sarangi
  0 siblings, 0 replies; 3+ messages in thread
From: Tapas Sarangi @ 2016-07-05 21:07 UTC (permalink / raw)
  To: Milan Broz; +Cc: dm-crypt

Hi Milan,

Thanks for your response. The distro I am using does not have
CONFIG_DM_CRYPT enabled. I am aware of the Kernel compilation methods for
standalone external modules and looking at your comment, it seems to be
the only way for me now.

Yes, I am also aware that DM_CRYPT will be build again a specific kernel
in order to be usable.

Thanks again.
-Tapas



On 7/5/16, 4:03 PM, "Milan Broz" <gmazyland@gmail.com> wrote:

>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.
>
>Milan


________________________________

This transmission may contain information that is privileged, confidential, and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is strictly prohibited. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-07-05 21:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-05 17:53 [dm-crypt] dm-crypt.ko external kernel module Tapas Sarangi
2016-07-05 21:03 ` Milan Broz
2016-07-05 21:07   ` Tapas Sarangi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.