From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id C1E58E00D77; Mon, 12 Aug 2019 02:12:12 -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.7 required=5.0 tests=BAYES_00,HTML_MESSAGE, MIME_HTML_ONLY,MIME_QP_LONG_LINE,URI_HEX autolearn=no version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.1 URI_HEX URI: URI hostname has long hexadecimal sequence * 0.0 HTML_MESSAGE BODY: HTML included in message * 0.1 MIME_HTML_ONLY BODY: Message only has text/html MIME parts * 0.0 MIME_QP_LONG_LINE RAW: Quoted-printable line longer than 76 chars X-Greylist: delayed 62 seconds by postgrey-1.32 at yocto-www; Mon, 12 Aug 2019 02:12:10 PDT Received: from mail.schmidttechnology.de (mail.schmidttechnology.ch [212.185.41.2]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 2AF30E00B8F for ; Mon, 12 Aug 2019 02:12:10 -0700 (PDT) X-GFI-TNEF2MIME: 1.2 Received: from ST04.sft.schmidt-feintechnik.de ([fe80::2989:544f:bde7:d994]) by ST04.sft.schmidt-feintechnik.de ([fe80::2989:544f:bde7:d994%10]) with mapi id 14.03.0468.000; Mon, 12 Aug 2019 11:11:06 +0200 From: "Behnke, Jochen" To: "yocto Mailingliste (yocto@yoctoproject.org)" Thread-Topic: wic create - bad ownership of directories inside image Thread-Index: AdVQ7HKa1+aWnPsGSzybgn4086sMuQ== Date: Mon, 12 Aug 2019 11:11:05 +0200 Message-ID: <55F1D5644E5E5A4493FCBE6156D13CD6AD921671@ST04.sft.schmidt-feintechnik.de> Accept-Language: de-DE, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: <55F1D5644E5E5A4493FCBE6156D13CD6AD921671@ST04.sft.schmidt-feintechnik.de> MIME-Version: 1.0 X-Originating-IP: [192.168.41.234] Disclaimer: SID=010500000000000515000000993c4a7a4675257c8b2de024250d0000 Subject: wic create - bad ownership of directories inside image 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: Mon, 12 Aug 2019 09:12:12 -0000 Content-Language: de-DE Content-Type: multipart/mixed; boundary="part__362851C4_6C5A_4333_A3EE_69E574191" --part__362851C4_6C5A_4333_A3EE_69E574191 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Disclaimer: SID=010500000000000515000000993c4a7a4675257c8b2de024250d0000

Hello,

=  

I am using poky 2.6.1 (thud) and create images using the wic utility= .

Recently I noticed that all directories contai= ned in the created image are owned by UID 1000 and not by root. The files in= side the image however are owned by root.

The UI= D 1000 refers to my unprivileged user on the host system.<= /p>

 

Here is the command I use to cr= eate the image

“wic create mkefidisk R= 11;e core-image-minimal”

 =

The images created by bitbake directly (.tar.bz2, .hddimg)= are correct so this seems to be a wic related problem.

 

Does anybody have a solution for = this?

 

Many th= anks in advance, any hint is appreciated.

&= nbsp;

 

Regards=

Jo= chen

&nb= sp;

__________________________________
SCHMIDT Technology GmbH
=
Feldbergstrasse 1
78112 St. Georgen/Germany
Telefon= +49 (0) 77 24 / 89 90
Fax +49 (0) 77 24 / 89 91 01
info@schmidttechnology.de
http://www.schmidttechnology.de=

USt-Id Nr. DE 811725105 · Registergericht Freiburg HRB 600 755Geschaeftsfuehrung: Oliver Schmidt, Stephan Schmidt

--part__362851C4_6C5A_4333_A3EE_69E574191-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id DED7CE00DD5; Wed, 14 Aug 2019 19:12:02 -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=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, * medium trust * [147.11.146.13 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mail1.windriver.com (mail1.windriver.com [147.11.146.13]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 754EAE00C87 for ; Wed, 14 Aug 2019 19:12:02 -0700 (PDT) Received: from ALA-HCA.corp.ad.wrs.com ([147.11.189.40]) by mail1.windriver.com (8.15.2/8.15.1) with ESMTPS id x7F2BtD0005547 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Wed, 14 Aug 2019 19:11:56 -0700 (PDT) Received: from [172.25.44.5] (172.25.44.5) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server id 14.3.468.0; Wed, 14 Aug 2019 19:11:55 -0700 To: "Behnke, Jochen" , "yocto Mailingliste (yocto@yoctoproject.org)" References: <55F1D5644E5E5A4493FCBE6156D13CD6AD921671@ST04.sft.schmidt-feintechnik.de> From: Randy MacLeod Message-ID: <05840950-f052-714b-0aac-aa598f209a4c@windriver.com> Date: Wed, 14 Aug 2019 22:11:54 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <55F1D5644E5E5A4493FCBE6156D13CD6AD921671@ST04.sft.schmidt-feintechnik.de> X-Originating-IP: [172.25.44.5] Subject: Re: wic create - bad ownership of directories inside image 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: Thu, 15 Aug 2019 02:12:03 -0000 Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 8bit On 8/12/19 5:11 AM, Behnke, Jochen wrote: > Hello, > > I am using poky 2.6.1 (thud) and create images using the wic utility. > > Recently I noticed that all directories contained in the created image > are owned by UID 1000 and not by root. The files inside the image > however are owned by root. > > The UID 1000 refers to my unprivileged user on the host system. > > Here is the command I use to create the image > > “wic create mkefidisk –e core-image-minimal” > > The images created by bitbake directly (.tar.bz2, .hddimg) are correct > so this seems to be a wic related problem. > > Does anybody have a solution for this? Hi Jochen, No and I've never seen this particular extreme symptom. There is a known, generally rare bug: Bug 12434 - pseudo: Incorrect UID/GID in packaged files https://bugzilla.yoctoproject.org/show_bug.cgi?id=12434 but that usually shows up when building. You could check you build logs for the generic stings from: glibc-locale-2.26: glibc-locale: /glibc-binary-localedata-en-gb/usr/lib/locale/en_GB/LC_MEASUREMENT is owned by uid 3004, which is the same as the user running bitbake. This may be due to host contamination [host-user-contaminated] Is your issue 100% reproducible? ../Randy > > Many thanks in advance, any hint is appreciated. > > Regards > > Jochen > > > > > __________________________________ > *SCHMIDT Technology GmbH* > Feldbergstrasse 1 > 78112 St. Georgen/Germany > Telefon +49 (0) 77 24 / 89 90 > Fax +49 (0) 77 24 / 89 91 01 > info@schmidttechnology.de > http://www.schmidttechnology.de > > USt-Id Nr. DE 811725105 · Registergericht Freiburg HRB 600 755 > Geschaeftsfuehrung: Oliver Schmidt, Stephan Schmidt > > > > > -- # Randy MacLeod # Wind River Linux From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id A4D17E00D6A; Thu, 22 Aug 2019 08:23:23 -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, MIME_QP_LONG_LINE autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.0 HTML_MESSAGE BODY: HTML included in message * 0.0 MIME_QP_LONG_LINE RAW: Quoted-printable line longer than 76 chars Received: from mail.schmidttechnology.de (mail.schmidttechnology.de [212.185.41.2]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 3EDCAE00D38 for ; Thu, 22 Aug 2019 08:23:19 -0700 (PDT) X-GFI-TNEF2MIME: 1.2 Received: from ST04.sft.schmidt-feintechnik.de ([fe80::2989:544f:bde7:d994]) by ST04.sft.schmidt-feintechnik.de ([fe80::2989:544f:bde7:d994%10]) with mapi id 14.03.0468.000; Thu, 22 Aug 2019 17:23:18 +0200 From: "Behnke, Jochen" To: 'Randy MacLeod' , "yocto Mailingliste (yocto@yoctoproject.org)" Thread-Topic: [yocto] wic create - bad ownership of directories inside image Thread-Index: AdVQ7HKa1+aWnPsGSzybgn4086sMuQCEZiQAAX7cr+A= Date: Thu, 22 Aug 2019 17:23:16 +0200 Message-ID: <55F1D5644E5E5A4493FCBE6156D13CD6AD94AA0D@ST04.sft.schmidt-feintechnik.de> References: <55F1D5644E5E5A4493FCBE6156D13CD6AD921671@ST04.sft.schmidt-feintechnik.de> <05840950-f052-714b-0aac-aa598f209a4c@windriver.com> In-Reply-To: <05840950-f052-714b-0aac-aa598f209a4c@windriver.com> Accept-Language: de-DE, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: <55F1D5644E5E5A4493FCBE6156D13CD6AD94AA0D@ST04.sft.schmidt-feintechnik.de> MIME-Version: 1.0 X-Originating-IP: [192.168.41.234] Disclaimer: SID=010500000000000515000000993c4a7a4675257c8b2de024250d0000 Subject: Re: wic create - bad ownership of directories inside image 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: Thu, 22 Aug 2019 15:23:23 -0000 Content-Language: de-DE Content-Type: multipart/mixed; boundary="part__B1F15D94_25DD_430E_A83B_D8EF2BB27" --part__B1F15D94_25DD_430E_A83B_D8EF2BB27 Content-Type: multipart/alternative; boundary="part__BF07B0DA_157A_41E0_820F_701BFA922" --part__BF07B0DA_157A_41E0_820F_701BFA922 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Disclaimer: SID=010500000000000515000000993c4a7a4675257c8b2de024250d0000 Hello Randy, thanks for your reponse and sorry for my late reaction. In order to test, if the problem can be reproduced reliably, I performed a c= lean rebuild as follows $ source oe-init-build-env build-tca5-32 $ rm -rf tmp $ rm -rf sstate-cache $ bitbake core-image-minimal $ wic create mkefidisk -e core-image-minmal I then mounted the resulting image file "mkefidisk-201908221701-sda.direct" = using a loopback device (losetup) Inside the Image all directories have UID/GID 1000/1000, which corresponds t= o my host user. Files however have UID/GID 0/0. So the answer to your question is "yes I can reproduce the behavior". One sidenote - I am using an appended core-image-minimal not the default - In my other image I am using qt5 (v5.12) Regards Jochen On 8/12/19 5:11 AM, Behnke, Jochen wrote: > Hello, > > I am using poky 2.6.1 (thud) and create images using the wic utility. > > Recently I noticed that all directories contained in the created image > are owned by UID 1000 and not by root. The files inside the image > however are owned by root. > > The UID 1000 refers to my unprivileged user on the host system. > > Here is the command I use to create the image > > "wic create mkefidisk -e core-image-minimal" > > The images created by bitbake directly (.tar.bz2, .hddimg) are correct > so this seems to be a wic related problem. > > Does anybody have a solution for this? Hi Jochen, No and I've never seen this particular extreme symptom. There is a known, generally rare bug: Bug 12434 - pseudo: Incorrect UID/GID in packaged files https://bugzilla.yoctoproject.org/show_bug.cgi?id=3D12434 but that usually shows up when building. You could check you build logs for the generic stings from: glibc-locale-2.26: glibc-locale: /glibc-binary-localedata-en-gb/usr/lib/locale/en_GB/LC_MEASUREMENT is owned by uid 3004, which is the same as the user running bitbake. This may be due to host contamination [host-user-contaminated] Is your issue 100% reproducible? ../Randy > > Many thanks in advance, any hint is appreciated. > > Regards > > Jochen > > > > > __________________________________ > *SCHMIDT Technology GmbH* > Feldbergstrasse 1 > 78112 St. Georgen/Germany > Telefon +49 (0) 77 24 / 89 90 > Fax +49 (0) 77 24 / 89 91 01 > info@schmidttechnology.de > http://www.schmidttechnology.de > > USt-Id Nr. DE 811725105 . Registergericht Freiburg HRB 600 755 > Geschaeftsfuehrung: Oliver Schmidt, Stephan Schmidt > > > > > -- # Randy MacLeod # Wind River Linux __________________________________=0ASCHMIDT Technology GmbH=0AFeldbergstras= se 1=0A78112 St. Georgen/Germany=0ATelefon +49 (0) 77 24 / 89 90=0AFax +49 (= 0) 77 24 / 89 91 01=0Ainfo@schmidttechnology.de=0Ahttp://www.schmidttechnolo= gy.de=0A=0AUSt-Id Nr. DE 811725105 =B7 Registergericht Freiburg HRB 600 755=0A= Geschaeftsfuehrung: Oliver Schmidt, Stephan Schmidt=0A=0A --part__BF07B0DA_157A_41E0_820F_701BFA922 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Disclaimer: SID=010500000000000515000000993c4a7a4675257c8b2de024250d0000 =
Hello Randy,

thanks for your reponse and sorry for my late reaction.

In order to test, if the problem can be reproduced reliably, I performed a c= lean rebuild as follows

$ source oe-init-build-env build-tca5-32
$ rm -rf tmp
$ rm -rf sstate-cache
$ bitbake core-image-minimal
$ wic create mkefidisk -e core-image-minmal

I then mounted the resulting image file "mkefidisk-201908221701-sda.dir= ect" using a loopback device (losetup)
Inside the Image all directories have UID/GID 1000/1000, which corresponds t= o my host user.
Files however have UID/GID 0/0.

So the answer to your question is "yes I can reproduce the behavior&quo= t;.

One sidenote
- I am using an appended core-image-minimal not the default
- In my other image I am using qt5 (v5.12)



Regards
Jochen

On 8/12/19 5:11 AM, Behnke, Jochen wrote:
> Hello,
>
> I am using poky 2.6.1 (thud) and create images using the wic utility. >
> Recently I noticed that all directories contained in the created image =
> are owned by UID 1000 and not by root. The files inside the image
> however are owned by root.
>
> The UID 1000 refers to my unprivileged user on the host system.
>
> Here is the command I use to create the image
>
> “wic create mkefidisk –e core-image-minimal”
>
> The images created by bitbake directly (.tar.bz2, .hddimg) are correct =
> so this seems to be a wic related problem.
>
> Does anybody have a solution for this?

Hi Jochen,

No and I've never seen this particular extreme symptom.

There is a known, generally rare bug:
    Bug 12434 - pseudo: Incorrect UID/GID in packaged files     https://bugzilla.yoctoproject.org/show_bug.cgi?id=3D12434 but that usually shows up when building.

You could check you build logs for the generic stings from:

    glibc-locale-2.26: glibc-locale:
    /glibc-binary-localedata-en-gb/usr/lib/locale/en_GB/LC_ME= ASUREMENT
    is owned by uid 3004, which is the same as the user runni= ng bitbake.
    This may be due to host contamination [host-user-contamin= ated]


Is your issue 100% reproducible?

../Randy


>
> Many thanks in advance, any hint is appreciated.
>
> Regards
>
> Jochen
>
> <gfidisc.SID=3D010500000000000515000000993c4a7a4675257c8b2de024250d0= 000>
>
>
> __________________________________
> *SCHMIDT Technology GmbH*
> Feldbergstrasse 1
> 78112 St. Georgen/Germany
> Telefon +49 (0) 77 24 / 89 90
> Fax +49 (0) 77 24 / 89 91 01
> info@schmidttechnology.de <mailto:info@schmidttechnology.de>
> http://www.schmidttechnolog= y.de
>
> USt-Id Nr. DE 811725105 · Registergericht Freiburg HRB 600 755 > Geschaeftsfuehrung: Oliver Schmidt, Stephan Schmidt
>
> <gfidisc.SID=3D010500000000000515000000993c4a7a4675257c8b2de024250d0= 000>
>
>
>


--
# Randy MacLeod
# Wind River Linux
--part__BF07B0DA_157A_41E0_820F_701BFA922-- --part__B1F15D94_25DD_430E_A83B_D8EF2BB27-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 4BD06E00DED; Fri, 23 Aug 2019 15:21:38 -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=-4.2 required=5.0 tests=BAYES_00,HTML_MESSAGE, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, * medium trust * [192.103.53.11 listed in list.dnswl.org] * 0.0 HTML_MESSAGE BODY: HTML included in message Received: from mail5.wrs.com (mail5.windriver.com [192.103.53.11]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 2A37FE00C25 for ; Fri, 23 Aug 2019 15:21:36 -0700 (PDT) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail5.wrs.com (8.15.2/8.15.2) with ESMTPS id x7NMKU0O002923 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Fri, 23 Aug 2019 15:21:07 -0700 Received: from [172.25.44.5] (172.25.44.5) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server id 14.3.468.0; Fri, 23 Aug 2019 15:20:48 -0700 To: "Behnke, Jochen" , "yocto Mailingliste (yocto@yoctoproject.org)" References: <55F1D5644E5E5A4493FCBE6156D13CD6AD921671@ST04.sft.schmidt-feintechnik.de> <05840950-f052-714b-0aac-aa598f209a4c@windriver.com> <55F1D5644E5E5A4493FCBE6156D13CD6AD94AA0D@ST04.sft.schmidt-feintechnik.de> From: Randy MacLeod Message-ID: <229fa285-a92e-aa6b-4742-da8d21197163@windriver.com> Date: Fri, 23 Aug 2019 18:20:46 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <55F1D5644E5E5A4493FCBE6156D13CD6AD94AA0D@ST04.sft.schmidt-feintechnik.de> X-Originating-IP: [172.25.44.5] Subject: Re: wic create - bad ownership of directories inside image 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: Fri, 23 Aug 2019 22:21:38 -0000 Content-Type: multipart/alternative; boundary="------------95C095B98999C3D7113EF128" Content-Language: en-GB --------------95C095B98999C3D7113EF128 Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 8bit On 8/22/19 11:23 AM, Behnke, Jochen wrote: > Hello Randy, > > thanks for your reponse and sorry for my late reaction. > > In order to test, if the problem can be reproduced reliably, I > performed a clean rebuild as follows > > $ source oe-init-build-env build-tca5-32 > $ rm -rf tmp > $ rm -rf sstate-cache > $ bitbake core-image-minimal > $ wic create mkefidisk -e core-image-minmal > > I then mounted the resulting image file > "mkefidisk-201908221701-sda.direct" using a loopback device (losetup) > Inside the Image all directories have UID/GID 1000/1000, which > corresponds to my host user. > Files however have UID/GID 0/0. Hi Jochen, I'm not able to reproduce the error, see below (1). What version of oe-core/bitbake are you using? I'm using the latest master branches: oe-core: 64f9fd2a1e quilt: added less to RDEPENDS list bitbake:  28b3f0d8  runqueue: Optimise build_taskdepdata slightly > > So the answer to your question is "yes I can reproduce the behavior". > > One sidenote > - I am using an appended core-image-minimal not the default What is the bbappend? Is it publicly clonable? What happens if you drop that addition? ../Randy (1) I followed your steps above and mounted my image as follows: $ fdisk -l mkefidisk-201908230902-sda.direct Disk mkefidisk-201908230902-sda.direct: 94.4 MiB, 98956288 bytes, 193274 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: gpt Disk identifier: 1E5F9B4E-ED8A-4677-82CD-7B146807C145 Device                              Start    End Sectors  Size Type mkefidisk-201908230902-sda.direct1   2048  51433   49386 24.1M Microsoft basic data mkefidisk-201908230902-sda.direct2  53248 103127   49880 24.4M Linux filesystem mkefidisk-201908230902-sda.direct3 103128 193239   90112   44M Linux swap # 53248*512 = 27262976 $ sudo mount -o loop,offset=27262976 ./mkefidisk-201908230902-sda.direct /mnt/loop $ ls -l /mnt/loop/bin/busybox.nosuid -rwxr-xr-x 1 root root 625296 Aug 23 11:45 /mnt/loop/bin/busybox.nosuid $ ls -l /mnt/loop/usr | head -3 total 10 drwxr-xr-x 2 root root 3072 Aug 23 11:52 bin drwxr-xr-x 2 root root 1024 Aug 23 11:29 games ../Randy > - In my other image I am using qt5 (v5.12) > > > > Regards > Jochen > > On 8/12/19 5:11 AM, Behnke, Jochen wrote: > > Hello, > > > > I am using poky 2.6.1 (thud) and create images using the wic utility. > > > > Recently I noticed that all directories contained in the created image > > are owned by UID 1000 and not by root. The files inside the image > > however are owned by root. > > > > The UID 1000 refers to my unprivileged user on the host system. > > > > Here is the command I use to create the image > > > > “wic create mkefidisk –e core-image-minimal” > > > > The images created by bitbake directly (.tar.bz2, .hddimg) are correct > > so this seems to be a wic related problem. > > > > Does anybody have a solution for this? > > Hi Jochen, > > No and I've never seen this particular extreme symptom. > > There is a known, generally rare bug: >     Bug 12434 - pseudo: Incorrect UID/GID in packaged files > https://bugzilla.yoctoproject.org/show_bug.cgi?id=12434 > but that usually shows up when building. > > You could check you build logs for the generic stings from: > >     glibc-locale-2.26: glibc-locale: > /glibc-binary-localedata-en-gb/usr/lib/locale/en_GB/LC_MEASUREMENT >     is owned by uid 3004, which is the same as the user running bitbake. >     This may be due to host contamination [host-user-contaminated] > > > Is your issue 100% reproducible? > > ../Randy > > > > > > Many thanks in advance, any hint is appreciated. > > > > Regards > > > > Jochen > > > > > > > > > > __________________________________ > > *SCHMIDT Technology GmbH* > > Feldbergstrasse 1 > > 78112 St. Georgen/Germany > > Telefon +49 (0) 77 24 / 89 90 > > Fax +49 (0) 77 24 / 89 91 01 > > info@schmidttechnology.de > > http://www.schmidttechnology.de > > > > USt-Id Nr. DE 811725105 · Registergericht Freiburg HRB 600 755 > > Geschaeftsfuehrung: Oliver Schmidt, Stephan Schmidt > > > > > > > > > > > > > -- > # Randy MacLeod > # Wind River Linux -- # Randy MacLeod # Wind River Linux --------------95C095B98999C3D7113EF128 Content-Type: text/html; charset="windows-1252" Content-Transfer-Encoding: 8bit
On 8/22/19 11:23 AM, Behnke, Jochen wrote:
Hello Randy,

thanks for your reponse and sorry for my late reaction.

In order to test, if the problem can be reproduced reliably, I performed a clean rebuild as follows

$ source oe-init-build-env build-tca5-32
$ rm -rf tmp
$ rm -rf sstate-cache
$ bitbake core-image-minimal
$ wic create mkefidisk -e core-image-minmal

I then mounted the resulting image file "mkefidisk-201908221701-sda.direct" using a loopback device (losetup)
Inside the Image all directories have UID/GID 1000/1000, which corresponds to my host user.
Files however have UID/GID 0/0.

Hi Jochen,

I'm not able to reproduce the error, see below (1).

What version of oe-core/bitbake are you using?

I'm using the latest master branches:

oe-core: 64f9fd2a1e quilt: added less to RDEPENDS list
bitbake:  28b3f0d8  runqueue: Optimise build_taskdepdata slightly



So the answer to your question is "yes I can reproduce the behavior".

One sidenote
- I am using an appended core-image-minimal not the default



What is the bbappend? Is it publicly clonable? What happens if you drop that addition?

../Randy


(1)

I followed your steps above and mounted my image as follows:

$ fdisk -l mkefidisk-201908230902-sda.direct
Disk mkefidisk-201908230902-sda.direct: 94.4 MiB, 98956288 bytes, 193274 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 1E5F9B4E-ED8A-4677-82CD-7B146807C145

Device                              Start    End Sectors  Size Type
mkefidisk-201908230902-sda.direct1   2048  51433   49386 24.1M Microsoft basic data
mkefidisk-201908230902-sda.direct2  53248 103127   49880 24.4M Linux filesystem
mkefidisk-201908230902-sda.direct3 103128 193239   90112   44M Linux swap


# 53248*512 = 27262976

$ sudo mount -o loop,offset=27262976 ./mkefidisk-201908230902-sda.direct /mnt/loop

$ ls -l /mnt/loop/bin/busybox.nosuid
-rwxr-xr-x 1 root root 625296 Aug 23 11:45 /mnt/loop/bin/busybox.nosuid

$ ls -l /mnt/loop/usr | head -3
total 10
drwxr-xr-x 2 root root 3072 Aug 23 11:52 bin
drwxr-xr-x 2 root root 1024 Aug 23 11:29 games


../Randy

- In my other image I am using qt5 (v5.12)



Regards
Jochen

On 8/12/19 5:11 AM, Behnke, Jochen wrote:
> Hello,
>
> I am using poky 2.6.1 (thud) and create images using the wic utility.
>
> Recently I noticed that all directories contained in the created image
> are owned by UID 1000 and not by root. The files inside the image
> however are owned by root.
>
> The UID 1000 refers to my unprivileged user on the host system.
>
> Here is the command I use to create the image
>
> “wic create mkefidisk –e core-image-minimal”
>
> The images created by bitbake directly (.tar.bz2, .hddimg) are correct
> so this seems to be a wic related problem.
>
> Does anybody have a solution for this?

Hi Jochen,

No and I've never seen this particular extreme symptom.

There is a known, generally rare bug:
    Bug 12434 - pseudo: Incorrect UID/GID in packaged files
    https://bugzilla.yoctoproject.org/show_bug.cgi?id=12434
but that usually shows up when building.

You could check you build logs for the generic stings from:

    glibc-locale-2.26: glibc-locale:
    /glibc-binary-localedata-en-gb/usr/lib/locale/en_GB/LC_MEASUREMENT
    is owned by uid 3004, which is the same as the user running bitbake.
    This may be due to host contamination [host-user-contaminated]


Is your issue 100% reproducible?

../Randy


>
> Many thanks in advance, any hint is appreciated.
>
> Regards
>
> Jochen
>
> <gfidisc.SID=010500000000000515000000993c4a7a4675257c8b2de024250d0000>
>
>
> __________________________________
> *SCHMIDT Technology GmbH*
> Feldbergstrasse 1
> 78112 St. Georgen/Germany
> Telefon +49 (0) 77 24 / 89 90
> Fax +49 (0) 77 24 / 89 91 01
> info@schmidttechnology.de <mailto:info@schmidttechnology.de>
> http://www.schmidttechnology.de
>
> USt-Id Nr. DE 811725105 · Registergericht Freiburg HRB 600 755
> Geschaeftsfuehrung: Oliver Schmidt, Stephan Schmidt
>
> <gfidisc.SID=010500000000000515000000993c4a7a4675257c8b2de024250d0000>
>
>
>


--
# Randy MacLeod
# Wind River Linux


-- 
# Randy MacLeod
# Wind River Linux
--------------95C095B98999C3D7113EF128-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 54FA2E00DF3; Tue, 27 Aug 2019 01:08:16 -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 autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.0 HTML_MESSAGE BODY: HTML included in message Received: from mail.schmidttechnology.de (mail.schmidt-technology.co.uk [212.185.41.2]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 70F4EE00DD5 for ; Tue, 27 Aug 2019 01:08:11 -0700 (PDT) Received: from ST04.sft.schmidt-feintechnik.de ([fe80::2989:544f:bde7:d994]) by ST04.sft.schmidt-feintechnik.de ([fe80::2989:544f:bde7:d994%10]) with mapi id 14.03.0468.000; Tue, 27 Aug 2019 10:08:09 +0200 From: "Behnke, Jochen" To: 'Randy MacLeod' Thread-Topic: AW: [yocto] wic create - bad ownership of directories inside image Thread-Index: AdVQ7HKa1+aWnPsGSzybgn4086sMuQCEZiQAAX7cr+AAPbBBAAB9FyKAADIXtOA= Date: Tue, 27 Aug 2019 08:08:07 +0000 Message-ID: <55F1D5644E5E5A4493FCBE6156D13CD6AD951209@ST04.sft.schmidt-feintechnik.de> References: <55F1D5644E5E5A4493FCBE6156D13CD6AD921671@ST04.sft.schmidt-feintechnik.de> <05840950-f052-714b-0aac-aa598f209a4c@windriver.com> <55F1D5644E5E5A4493FCBE6156D13CD6AD94AA0D@ST04.sft.schmidt-feintechnik.de> <229fa285-a92e-aa6b-4742-da8d21197163@windriver.com> <55F1D5644E5E5A4493FCBE6156D13CD6AD94EFA4@ST04.sft.schmidt-feintechnik.de> In-Reply-To: <55F1D5644E5E5A4493FCBE6156D13CD6AD94EFA4@ST04.sft.schmidt-feintechnik.de> Accept-Language: de-DE, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [192.168.41.234] MIME-Version: 1.0 Cc: "yocto Mailingliste \(yocto@yoctoproject.org\)" Subject: Re: wic create - bad ownership of directories inside image 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, 27 Aug 2019 08:08:16 -0000 Content-Language: de-DE Content-Type: multipart/alternative; boundary="_000_55F1D5644E5E5A4493FCBE6156D13CD6AD951209ST04sftschmidtf_" --_000_55F1D5644E5E5A4493FCBE6156D13CD6AD951209ST04sftschmidtf_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi Randy, FYI I created a completely new poky clone. Then I set up a config for "genericx86" and built a core-image-minimal Here are the results 1) Using "thud" branch -> problem persisted 2) Using "warrior" branch --> problem solved Regards Jochen Von: Behnke, Jochen Gesendet: Montag, 26. August 2019 10:18 An: 'Randy MacLeod' Betreff: AW: AW: [yocto] wic create - bad ownership of directories inside i= mage Hi Randy, removing my core-image-minimal.bbappend does not change anything. I still get the same behavior. Here are my version poky 2.6.1 $ bitbake -version -> 1.40.0 The next step would be to upgrade my poky to the latest version. Right now I can't do that, but I'll give it a try in the next few weeks. Many thanks for your assistance. Regards Jochen Von: Randy MacLeod [mailto:randy.macleod@windriver.com] Gesendet: Samstag, 24. August 2019 00:21 An: Behnke, Jochen; yocto Mailingliste (yocto@yoctoproject.org) Betreff: Re: AW: [yocto] wic create - bad ownership of directories inside i= mage On 8/22/19 11:23 AM, Behnke, Jochen wrote: Hello Randy, thanks for your reponse and sorry for my late reaction. In order to test, if the problem can be reproduced reliably, I performed a = clean rebuild as follows $ source oe-init-build-env build-tca5-32 $ rm -rf tmp $ rm -rf sstate-cache $ bitbake core-image-minimal $ wic create mkefidisk -e core-image-minmal I then mounted the resulting image file "mkefidisk-201908221701-sda.direct"= using a loopback device (losetup) Inside the Image all directories have UID/GID 1000/1000, which corresponds = to my host user. Files however have UID/GID 0/0. Hi Jochen, I'm not able to reproduce the error, see below (1). What version of oe-core/bitbake are you using? I'm using the latest master branches: oe-core: 64f9fd2a1e quilt: added less to RDEPENDS list bitbake: 28b3f0d8 runqueue: Optimise build_taskdepdata slightly So the answer to your question is "yes I can reproduce the behavior". One sidenote - I am using an appended core-image-minimal not the default What is the bbappend? Is it publicly clonable? What happens if you drop tha= t addition? ../Randy (1) I followed your steps above and mounted my image as follows: $ fdisk -l mkefidisk-201908230902-sda.direct Disk mkefidisk-201908230902-sda.direct: 94.4 MiB, 98956288 bytes, 193274 se= ctors Units: sectors of 1 * 512 =3D 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: gpt Disk identifier: 1E5F9B4E-ED8A-4677-82CD-7B146807C145 Device Start End Sectors Size Type mkefidisk-201908230902-sda.direct1 2048 51433 49386 24.1M Microsoft ba= sic data mkefidisk-201908230902-sda.direct2 53248 103127 49880 24.4M Linux filesy= stem mkefidisk-201908230902-sda.direct3 103128 193239 90112 44M Linux swap # 53248*512 =3D 27262976 $ sudo mount -o loop,offset=3D27262976 ./mkefidisk-201908230902-sda.direct = /mnt/loop $ ls -l /mnt/loop/bin/busybox.nosuid -rwxr-xr-x 1 root root 625296 Aug 23 11:45 /mnt/loop/bin/busybox.nosuid $ ls -l /mnt/loop/usr | head -3 total 10 drwxr-xr-x 2 root root 3072 Aug 23 11:52 bin drwxr-xr-x 2 root root 1024 Aug 23 11:29 games ../Randy - In my other image I am using qt5 (v5.12) Regards Jochen On 8/12/19 5:11 AM, Behnke, Jochen wrote: > Hello, > > I am using poky 2.6.1 (thud) and create images using the wic utility. > > Recently I noticed that all directories contained in the created image > are owned by UID 1000 and not by root. The files inside the image > however are owned by root. > > The UID 1000 refers to my unprivileged user on the host system. > > Here is the command I use to create the image > > "wic create mkefidisk -e core-image-minimal" > > The images created by bitbake directly (.tar.bz2, .hddimg) are correct > so this seems to be a wic related problem. > > Does anybody have a solution for this? Hi Jochen, No and I've never seen this particular extreme symptom. There is a known, generally rare bug: Bug 12434 - pseudo: Incorrect UID/GID in packaged files https://bugzilla.yoctoproject.org/show_bug.cgi?id=3D12434 but that usually shows up when building. You could check you build logs for the generic stings from: glibc-locale-2.26: glibc-locale: /glibc-binary-localedata-en-gb/usr/lib/locale/en_GB/LC_MEASUREMENT is owned by uid 3004, which is the same as the user running bitbake. This may be due to host contamination [host-user-contaminated] Is your issue 100% reproducible? ../Randy > > Many thanks in advance, any hint is appreciated. > > Regards > > Jochen > > > > > __________________________________ > *SCHMIDT Technology GmbH* > Feldbergstrasse 1 > 78112 St. Georgen/Germany > Telefon +49 (0) 77 24 / 89 90 > Fax +49 (0) 77 24 / 89 91 01 > info@schmidttechnology.de > http://www.schmidttechnology.de > > USt-Id Nr. DE 811725105 =B7 Registergericht Freiburg HRB 600 755 > Geschaeftsfuehrung: Oliver Schmidt, Stephan Schmidt > > > > > -- # Randy MacLeod # Wind River Linux -- # Randy MacLeod # Wind River Linux --_000_55F1D5644E5E5A4493FCBE6156D13CD6AD951209ST04sftschmidtf_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Hi Randy,=

 

FYI

I created a = completely new poky clone.

Then I set u= p a config for “genericx86” and built a core-image-minimal=

 <= /o:p>

Here are the= results

1)    Usin= g “thud” branch -> problem persisted

2)    Usin= g “warrior” branch  =E0 problem solved

 <= /o:p>

 <= /o:p>

Regards=

Jochen<= /o:p>

 

Von: Behnke, Jochen
Gesendet: Montag, 26. August 2019 10:18
An: 'Randy MacLeod'
Betreff: AW: AW: [yocto] wic create - bad ownership of directories i= nside image

 

Hi Randy,=

 

removing my = core-image-minimal.bbappend does not change anything.

I still get = the same behavior.

 <= /o:p>

Here are my = version

poky 2.6.1

 <= /o:p>

$ bitbake &#= 8211;version

-> 1.40.0=

 <= /o:p>

The next ste= p would be to upgrade my poky to the latest version.

Right now I = can’t do that, but I’ll give it a try in the next few weeks.

 <= /o:p>

Many thanks = for your assistance.

 <= /o:p>

Regards=

Jochen<= /o:p>

 

Von: Randy MacLeod [mailto:randy.macleod@windriver.com]
Gesendet: Samstag, 24. August 2019 00:21
An: Behnke, Jochen; yocto Mailingliste (yocto@yoctoproject.org)
Betreff: Re: AW: [yocto] wic create - bad ownership of directories i= nside image

 

On 8/22/19 11:23 AM, Behnke, Jochen wrote:

Hello Randy,

thanks for your reponse and sorry for my late reaction.

In order to test, if the problem can be reproduced reliably, I performed a = clean rebuild as follows

$ source oe-init-build-env build-tca5-32
$ rm -rf tmp
$ rm -rf sstate-cache
$ bitbake core-image-minimal
$ wic create mkefidisk -e core-image-minmal

I then mounted the resulting image file "mkefidisk-201908221701-sda.di= rect" using a loopback device (losetup)
Inside the Image all directories have UID/GID 1000/1000, which corresponds = to my host user.
Files however have UID/GID 0/0.

Hi Jochen,

I'm not able to reproduce the error, see below (1).

What version of oe-core/bitbake are you using?

I'm using the latest master branches:

oe-core: 64f9fd2a1e quilt: added less to = RDEPENDS list
bitbake:  28b3f0d8  runqueue: Optimise build_taskdepdata slightly=

 


So the answer to your question is "yes I can reproduce the behavior&qu= ot;.

One sidenote
- I am using an appended core-image-minimal not the default

 

 

What is the bbappend? Is it publicly clonable? What happens if you drop = that addition?

../Randy

 

(1)

I followed your steps above and mounted my image as follows:<= /p>

$ fdisk -l mkefidisk-201908230902-sda.direct
Disk mkefidisk-201908230902-sda.direct: 94.4 MiB, 98956288 bytes, 193274 se= ctors
Units: sectors of 1 * 512 =3D 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 1E5F9B4E-ED8A-4677-82CD-7B146807C145

Device           &nb= sp;            =       Start    End Sectors  Si= ze Type
mkefidisk-201908230902-sda.direct1   2048  51433  = 49386 24.1M Microsoft basic data
mkefidisk-201908230902-sda.direct2  53248 103127   49880 24.= 4M Linux filesystem
mkefidisk-201908230902-sda.direct3 103128 193239   90112 &nb= sp; 44M Linux swap

 

# 53248*512 =3D 27262976

$ sudo mount -o loop,offset=3D27262976 ./mkefidisk-201908230902-sda.dire= ct /mnt/loop

$ ls -l /mnt/loop/bin/busybox.nosuid
-rwxr-xr-x 1 root root 625296 Aug 23 11:45 /mnt/loop/bin/busybox.nosuid

$ ls -l /mnt/loop/usr | head -3
total 10
drwxr-xr-x 2 root root 3072 Aug 23 11:52 bin
drwxr-xr-x 2 root root 1024 Aug 23 11:29 games

 

../Randy

- In my other image= I am using qt5 (v5.12)



Regards
Jochen

On 8/12/19 5:11 AM, Behnke, Jochen wrote:
> Hello,
>
> I am using poky 2.6.1 (thud) and create images using the wic utility.<= br> >
> Recently I noticed that all directories contained in the created image=
> are owned by UID 1000 and not by root. The files inside the image
> however are owned by root.
>
> The UID 1000 refers to my unprivileged user on the host system.
>
> Here is the command I use to create the image
>
> “wic create mkefidisk –e core-image-minimal”
>
> The images created by bitbake directly (.tar.bz2, .hddimg) are correct=
> so this seems to be a wic related problem.
>
> Does anybody have a solution for this?

Hi Jochen,

No and I've never seen this particular extreme symptom.

There is a known, generally rare bug:
    Bug 12434 - pseudo: Incorrect UID/GID in packaged files<= br>     https://bugzilla.yoctoproject.org/show_bug.cgi?id=3D12434=
but that usually shows up when building.

You could check you build logs for the generic stings from:

    glibc-locale-2.26: glibc-locale:
    /glibc-binary-localedata-en-gb/usr/lib/locale/en_GB/LC_M= EASUREMENT
    is owned by uid 3004, which is the same as the user runn= ing bitbake.
    This may be due to host contamination [host-user-contami= nated]


Is your issue 100% reproducible?

../Randy


>
> Many thanks in advance, any hint is appreciated.
>
> Regards
>
> Jochen
>
> <gfidisc.SID=3D010500000000000515000000993c4a7a4675257c8b2de024250d= 0000>
>
>
> __________________________________
> *SCHMIDT Technology GmbH*
> Feldbergstrasse 1
> 78112 St. Georgen/Germany
> Telefon +49 (0) 77 24 / 89 90
> Fax +49 (0) 77 24 / 89 91 01
> info@schmidttechnology.de= <mailto:info@schmidtte= chnology.de>
> http://www.schmidttechnolo= gy.de
>
> USt-Id Nr. DE 811725105 =B7 Registergericht Freiburg HRB 600 755
> Geschaeftsfuehrung: Oliver Schmidt, Stephan Schmidt
>
> <gfidisc.SID=3D010500000000000515000000993c4a7a4675257c8b2de024250d= 0000>
>
>
>


--
# Randy MacLeod
# Wind River Linux

 

-- 
# Randy MacLeod
# Wind River Linux
--_000_55F1D5644E5E5A4493FCBE6156D13CD6AD951209ST04sftschmidtf_--