From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.windriver.com (mail.windriver.com [147.11.1.11]) by mail.openembedded.org (Postfix) with ESMTP id 011A4738B0 for ; Thu, 12 Mar 2015 07:14:24 +0000 (UTC) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail.windriver.com (8.14.9/8.14.5) with ESMTP id t2C7EPo5014131 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Thu, 12 Mar 2015 00:14:25 -0700 (PDT) Received: from [128.224.162.236] (128.224.162.236) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server (TLS) id 14.3.224.2; Thu, 12 Mar 2015 00:14:24 -0700 Message-ID: <55013CDD.3050708@windriver.com> Date: Thu, 12 Mar 2015 15:14:37 +0800 From: ChenQi User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Jonathan Liu , References: <1425957930-8061-1-git-send-email-net147@gmail.com> In-Reply-To: <1425957930-8061-1-git-send-email-net147@gmail.com> X-Originating-IP: [128.224.162.236] Subject: Re: [PATCH] systemd: fix /var/log/journal ownership X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Mar 2015 07:14:25 -0000 Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit On 03/10/2015 11:25 AM, Jonathan Liu wrote: > The ownership needs to be explicitly set otherwise it inherits the user > and group id of the build user. > > Signed-off-by: Jonathan Liu > --- > meta/recipes-core/systemd/systemd_219.bb | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/meta/recipes-core/systemd/systemd_219.bb b/meta/recipes-core/systemd/systemd_219.bb > index 24486f1..6a4f4e8 100644 > --- a/meta/recipes-core/systemd/systemd_219.bb > +++ b/meta/recipes-core/systemd/systemd_219.bb > @@ -147,6 +147,8 @@ do_install() { > sed -i s%@UDEVD@%${rootlibexecdir}/systemd/systemd-udevd% ${D}${sysconfdir}/init.d/systemd-udevd > fi > > + chown root:root ${D}/${localstatedir}/log/journal > + > # Delete journal README, as log can be symlinked inside volatile. > rm -f ${D}/${localstatedir}/log/README > I think it should be root:systemd-journal. What do you think? And this patch would also fix the following bug. https://bugzilla.yoctoproject.org/show_bug.cgi?id=7293 Regards, Chen Qi