From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6489319872694059008 X-Received: by 10.46.57.19 with SMTP id g19mr1346532lja.3.1511733978203; Sun, 26 Nov 2017 14:06:18 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 10.46.80.14 with SMTP id e14ls971670ljb.17.gmail; Sun, 26 Nov 2017 14:06:17 -0800 (PST) X-Google-Smtp-Source: AGs4zMaHmqWUgfpz9Wm9e8pu3IZt6sSgQsCyB1axsZIv1cDf/TKFx9INpyAT5p+m0GPkHDfb8Xs7 X-Received: by 10.25.190.74 with SMTP id o71mr1139104lff.15.1511733977843; Sun, 26 Nov 2017 14:06:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511733977; cv=none; d=google.com; s=arc-20160816; b=OKE3IdsgfPVwl00/nBGKA+30hdZsWwo17wl7lPczo6ihQulYWlJr/flVa58BY7ThS3 kw6zI2XpCsVBltnn2si6erAWzQXHVwPy0bksxlfjb5PU9srGCOEyIxmH3/QbAto8S7tA 6aQzYmqMo2m5+i93YqZilvRp3j8ippJUfEZECMPoWg388dDkPdh6/Hlo9MCuTEeRAgvD /Vf9ZWaHfAhgPhWp0Q9kzzR4DgpMkPok1A/21dztIzheAhl0PaKi448J87Ulzz+nVIVL WBlvo14hnY73yi/gYarpPDrmIPT6rmxq81QgnO6vXYt7Ht7oDFmCkVFHMO+hTFFDhriP AbJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:to:subject :arc-authentication-results; bh=livMG69dCwKVH7Go3PYi1QySGf7zfB3proPHMpSccpE=; b=E0zqmY7I38qbAaCjU8orQF8u+48658i4SoC10+GR/WDn+0g8xdDuwY6GBG1YS9EEeA gJEI9gGtkNVVWORQvDF3BrcPzA5yFXWmhiOus/t495wMSdM3/KgsT0vsaKXAlrlvPz1X EdmVeGGhL29Z75TOaX34WlCp7t7WIhMSWfOMSAB+dXIqlStBr1gi2z51nD0wgLWZQXIv NLvQCELEwsV/zemk4ec7zvnKT1FdD0ikUqg5gBWQQQWK1HVeWmSmzZWaAjfq8+KA1Gi+ m58thlytNbFVM7kYmY9PrFVkAZJYNxnJwSIbTHIymKX0O/pn04Y1FmjbRcQg1vSt/eBM aZhw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: best guess record for domain of asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=asmirnov@ilbers.de Return-Path: Received: from aqmola.ilbers.de (aqmola.ilbers.de. [85.214.62.211]) by gmr-mx.google.com with ESMTPS id g77si1121448lfl.5.2017.11.26.14.06.17 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 26 Nov 2017 14:06:17 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) client-ip=85.214.62.211; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: best guess record for domain of asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=asmirnov@ilbers.de Received: from [10.0.2.15] ([188.227.110.165]) (authenticated bits=0) by aqmola.ilbers.de (8.14.4/8.14.4/Debian-4+deb7u1) with ESMTP id vAQM6ESh017008 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT) for ; Sun, 26 Nov 2017 23:06:16 +0100 Subject: Re: [PATCH] isar-image-base: fix owner and group of /proc To: isar-users@googlegroups.com References: <20171120081252.4cm4tycudbqtjaoj@MD1KR9XC.ww002.siemens.net> From: Alexander Smirnov Message-ID: <4b0b20f8-20d6-2749-5a7c-418b211a1681@ilbers.de> Date: Mon, 27 Nov 2017 01:06:09 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <20171120081252.4cm4tycudbqtjaoj@MD1KR9XC.ww002.siemens.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: vlOa/kg3F5ZO >>>>>>> meta-isar/recipes-core/images/isar-image-base.bb | 2 +- >>>>>>> meta/recipes-devtools/buildchroot/buildchroot.bb | 2 +- >>>>>>> 2 files changed, 2 insertions(+), 2 deletions(-) >>>>>>> >>>>>>> diff --git a/meta-isar/recipes-core/images/isar-image-base.bb b/meta-isar/recipes-core/images/isar-image-base.bb >>>>>>> index c2150b1..a6906c6 100644 >>>>>>> --- a/meta-isar/recipes-core/images/isar-image-base.bb >>>>>>> +++ b/meta-isar/recipes-core/images/isar-image-base.bb >>>>>>> @@ -52,7 +52,7 @@ do_rootfs() { >>>>>>> -e 's|##ISAR_DISTRO_SUITE##|${DEBDISTRONAME}|g' \ >>>>>>> "${WORKDIR}/multistrap.conf.in" > "${WORKDIR}/multistrap.conf" >>>>>>> >>>>>>> - [ ! -d ${IMAGE_ROOTFS}/proc ] && install -d -m 555 ${IMAGE_ROOTFS}/proc >>>>>>> + [ ! -d ${IMAGE_ROOTFS}/proc ] && sudo install -d -o 0 -g 0 -m 555 ${IMAGE_ROOTFS}/proc >>>>>> >>>>>> What is the requirement for doing so? And what is the benefit? >>>>> >>>>> In the resulting image, /proc was created with my build user's ownership >>>>> != root as it was non-existent. To create the directory belonging to >>>>> root, sudo is required here... >>>>> >>>> >>>> Thanks, got it! But I don't think it's also required for buildchroot. >>> >>> Nope, not strictly required but for cosmetics and symmetry reasons I put >>> it in there as well. Doesn't do harm either.. >>> >> >> So I'm going to apply the first part of the patch (related to image) to >> avoid adding new 'sudo' without real usecase. > > Fine with me. > Applied to next, thanks!