Return-Path: Received: from seg-node-elk-03.trustwave.com (seg-node-elk-03.trustwave.com [204.13.202.190]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.server123.net (Postfix) with ESMTPS for ; Tue, 5 Jul 2016 23:24:44 +0200 (CEST) From: Tapas Sarangi Date: Tue, 5 Jul 2016 21:07:27 +0000 Message-ID: References: <40d55a0f-b675-f947-c205-78d1bbbcec86@gmail.com> In-Reply-To: <40d55a0f-b675-f947-c205-78d1bbbcec86@gmail.com> Content-Language: en-US Content-Type: text/plain; charset="Windows-1252" Content-ID: <7CE9935C97B59940A85279CB87736D74@namprd07.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dm-crypt] dm-crypt.ko external kernel module List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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" 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=8A ? > >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 int= ended recipient, you are hereby notified that any disclosure, copying, dist= ribution, or use of the information contained herein (including any relianc= e thereon) is strictly prohibited. If you received this transmission in err= or, please immediately contact the sender and destroy the material in its e= ntirety, whether in electronic or hard copy format.