Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 660A7E00D13; Tue, 26 Sep 2017 03:36:45 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,SPF_HELO_PASS autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [216.82.243.202 listed in list.dnswl.org] * -0.0 SPF_HELO_PASS SPF: HELO matches SPF record * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.0 HTML_MESSAGE BODY: HTML included in message X-Greylist: delayed 420 seconds by postgrey-1.32 at yocto-www; Tue, 26 Sep 2017 03:36:43 PDT Received: from mail1.bemta8.messagelabs.com (mail1.bemta8.messagelabs.com [216.82.243.202]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 22482E00C8F for ; Tue, 26 Sep 2017 03:36:43 -0700 (PDT) Received: from [216.82.242.34] by server-10.bemta-8.messagelabs.com id FE/49-01785-71C2AC95; Tue, 26 Sep 2017 10:29:43 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrFKsWRWlGSWpSXmKPExsVySpdNU1dc51S kwY1TrBaTXq5hc2D0aD/RxxbAGMWamZeUX5HAmrH6XCdbwT67is1vO1kaGJssuxi5OIQEtjJK 9HyYyQbhbGGUaF5yixnCOcgoseXjHNYuRk4ONgFDiSs9dxlBbBEBU4kXx76wgdjCAuoS317OY IaIa0hcvnMRyjaS+PHsBROIzSKgKvHk1wWwObwC7hK/L88Dm8MoICvxpXE1WD2zgLjErSfzwe olBAQkluw5zwxhi0q8fPyPFcI2kNi6dB8LhK0gsbK7gQ3CtpbYP28pK8ScHIm2zptMELsEJU7 OfAJWLwR0w5aFv1kmMIrMQrJuFpKWWUhaIOI6Egt2f2KDsLUlli18zQxjnznwmAlZfAEj+ypG jeLUorLUIl1DS72kosz0jJLcxMwcXUMDC73c1OLixPTUnMSkYr3k/NxNjMAYq2dgYNzBOG23+ yFGSQ4mJVFeRblTkUJ8SfkplRmJxRnxRaU5qcWHGGU4OJQkeJ9qAeUEi1LTUyvSMnOA0Q6Tlu DgURLh1dIGSvMWFyTmFmemQ6ROMRpzbLh59w8Txz4QKcSSl5+XKiXOux5kkgBIaUZpHtwgWBK 6xCgrJczLyMDAIMRTkFqUm1mCKv+KUZyDUUmY9yLIFJ7MvBK4fa+ATmECOqV36gmQU0oSEVJS DYyhTe6xm58L2Zd06cev+Xj0UMfR9/0X+NvLhQM3Xti+Qmud4BXbN7Z9Yj4O+ZXTGpjV9J3jx bInB766sZpl9YyAqrlKJ8QqH8jdF/gQqvnA8tyO75FNhleLZDySbTZ5TH724HL6qa9btzx81x DT39H9dfc/J8aCwmVi3GohLpknVQVC1U81CymxFGckGmoxFxUnAgC2YJzbPQMAAA== X-Env-Sender: Shrawan.Kumar@harman.com X-Msg-Ref: server-15.tower-73.messagelabs.com!1506421779!101807162!2 X-Originating-IP: [202.45.6.41] X-StarScan-Received: X-StarScan-Version: 9.4.45; banners=-,-,- X-VirusChecked: Checked Received: (qmail 7934 invoked from network); 26 Sep 2017 10:29:42 -0000 Received: from unknown (HELO HIBDWSMB09.ad.harman.com) (202.45.6.41) by server-15.tower-73.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 26 Sep 2017 10:29:42 -0000 Received: from HIBDWSMB06.ad.harman.com (10.99.236.96) by HIBDWSMB09.ad.harman.com (10.99.236.103) with Microsoft SMTP Server (TLS) id 15.0.1263.5; Tue, 26 Sep 2017 15:59:39 +0530 Received: from HIBDWSMB02.ad.harman.com (10.99.236.92) by HIBDWSMB06.ad.harman.com (10.99.236.96) with Microsoft SMTP Server (TLS) id 15.0.1263.5; Tue, 26 Sep 2017 15:59:37 +0530 Received: from HIBDWSMB02.ad.harman.com ([fe80::d8dd:3dec:76ff:8e7b]) by HIBDWSMB02.ad.harman.com ([fe80::d8dd:3dec:76ff:8e7b%16]) with mapi id 15.00.1263.000; Tue, 26 Sep 2017 15:59:37 +0530 From: "Kumar, Shrawan" To: "yocto@yoctoproject.org" Thread-Topic: rootfs encryption support Thread-Index: AdM2h8s39sFuLV9eR3OG4m4is0AjFwAKXonQ Date: Tue, 26 Sep 2017 10:29:36 +0000 Message-ID: Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.99.236.43] x-exclaimer-md-config: 4a26c407-9f7b-4db1-94e4-bcbc87a799a8 MIME-Version: 1.0 Subject: Re: rootfs encryption support X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Sep 2017 10:36:45 -0000 Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_e1e5dcc7a72a4e02bf809951ab67f555HIBDWSMB02adharmancom_" --_000_e1e5dcc7a72a4e02bf809951ab67f555HIBDWSMB02adharmancom_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable To add further information to the query , I am executing "cryptsetup" fro= m a recipe as below : (Yocto 2.0.2) fakeroot do_install() { cryptsetup --type=3Dplain open hello.enc demomap < dm-crypt-= key } Additional debug log : + do_install | + cryptsetup --type=3Dplain open /path_to/tmp/work/cortexa9hf-vfp-neon-el= ina-linux-gnueabi/DM-CryptSetup/1.0-r0/hello.enc demomap | Cannot initialize device-mapper. Is dm_mod kernel module loaded? | | Cannot initialize device-mapper. Is dm_mod kernel module loaded? | + bb_exit_handler Ideally , I was under impression that "fakeroot" shall have allowed to me a= chieve the goal. Thanks & Regads Shrawan From: Kumar, Shrawan Sent: Tuesday, September 26, 2017 10:56 AM To: 'yocto@yoctoproject.org' Subject: rootfs encryption support Hello Team , Is it possible to get encrypted rootfs during image build ? Currently , I am running "cryptsetup" (as sudo) manually after the final = image(rootfs.ext4) is produced . The idea is to get this done within yocto= environment without sudo problem . Thanks and Regards Shrawan --_000_e1e5dcc7a72a4e02bf809951ab67f555HIBDWSMB02adharmancom_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
 
To add further information to the query , I am executing  “cr=
yptsetup”  from a recipe as below : (Yocto 2.0.2)<=
o:p>

 

 

fakeroot do_install() = {

   &nbs= p;           cryptsetup -= -type=3Dplain open hello.enc demomap < dm-crypt-key

 

}

 

 

Additional debug log :=

 

+ do_install<= /o:p>

| + cryptsetup --t= ype=3Dplain open /path_to/tmp/work/cortexa9hf-vfp-neon-elina-linux-gnueabi/= DM-CryptSetup/1.0-r0/hello.enc demomap

| Cannot initialize device-mapper. Is dm_mod kernel module lo= aded?

|

| Cannot initialize device-mapper. Is dm_mod kernel module loa= ded?

| + bb_exit_handle= r

 

 

Ideally , I was under = impression that “fakeroot” shall have allowed to me achieve the= goal.

 

 

 

Thanks & Regads

Shrawan

 

From: Kumar, Shrawan
Sent: Tuesday, September 26, 2017 10:56 AM
To: 'yocto@yoctoproject.org' <yocto@yoctoproject.org>
Subject: rootfs encryption support

 

Hello Team ,

 

Is it possible to get encrypted rootfs during image = build  ?

 

Currently , I am running “cryptsetup= 221; (as sudo) manually   after the final image(rootfs.ext= 4) is produced  . The idea is to get this done within yocto environmen= t without sudo problem .

 

 

Thanks and Regards

Shrawan

--_000_e1e5dcc7a72a4e02bf809951ab67f555HIBDWSMB02adharmancom_--