Return-Path: Received: from mail.windriver.com (mail.windriver.com [147.11.1.11]) by mail.openembedded.org (Postfix) with ESMTP id 3C73E7D661 for ; Mon, 15 Apr 2019 01:29:13 +0000 (UTC) Received: from ALA-HCA.corp.ad.wrs.com ([147.11.189.40]) by mail.windriver.com (8.15.2/8.15.1) with ESMTPS id x3F1TC1U023421 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Sun, 14 Apr 2019 18:29:12 -0700 (PDT) Received: from [128.224.162.190] (128.224.162.190) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sun, 14 Apr 2019 18:29:12 -0700 To: Adrian Freihofer , References: <20190414132414.18547-1-adrian.freihofer@gmail.com> From: ChenQi Message-ID: <411ab935-ee8f-a6d3-e8f3-d6814eb7b1d4@windriver.com> Date: Mon, 15 Apr 2019 09:40:03 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <20190414132414.18547-1-adrian.freihofer@gmail.com> X-Originating-IP: [128.224.162.190] Subject: Re: [meta-oe][PATCH 1/3] systemd: remove 2 obsolete useradds 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: Mon, 15 Apr 2019 01:29:13 -0000 Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit On 04/14/2019 09:24 PM, Adrian Freihofer wrote: > - Users systemd-journal-remote and systemd-journal-upload are not used by I guess you mean 'systemd-journal-gateway'? Anyway, I have some concern about this change. Adding these users is not supposed to cause any runtime problem, as if the user has already exists, DynamicUser mechanism just does not try to create one. I also can recall the systemd-timesync once had DynamicUser=yes, but then removed such setting. So if there is no compelling reason (security?) why we should use DynamicUser, let's leave these two users there. Best Regards, Chen Qi > systemd anymore. Systemd creates dynamic users for services without > persistent data. > - Fix start of journal-remote > > Signed-off-by: Adrian Freihofer > --- > meta/recipes-core/systemd/systemd_241.bb | 6 +----- > 1 file changed, 1 insertion(+), 5 deletions(-) > > diff --git a/meta/recipes-core/systemd/systemd_241.bb b/meta/recipes-core/systemd/systemd_241.bb > index 3a58f44a3b..8e493d5b55 100644 > --- a/meta/recipes-core/systemd/systemd_241.bb > +++ b/meta/recipes-core/systemd/systemd_241.bb > @@ -334,9 +334,7 @@ SYSTEMD_PACKAGES = "${@bb.utils.contains('PACKAGECONFIG', 'binfmt', '${PN}-binfm > SYSTEMD_SERVICE_${PN}-binfmt = "systemd-binfmt.service" > > USERADD_PACKAGES = "${PN} ${PN}-extra-utils \ > - ${@bb.utils.contains('PACKAGECONFIG', 'microhttpd', '${PN}-journal-gateway', '', d)} \ > ${@bb.utils.contains('PACKAGECONFIG', 'microhttpd', '${PN}-journal-remote', '', d)} \ > - ${@bb.utils.contains('PACKAGECONFIG', 'journal-upload', '${PN}-journal-upload', '', d)} \ > " > GROUPADD_PARAM_${PN} = "-r systemd-journal" > USERADD_PARAM_${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'coredump', '--system -d / -M --shell /bin/nologin systemd-coredump;', '', d)}" > @@ -345,9 +343,7 @@ USERADD_PARAM_${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'polkit', '--syste > USERADD_PARAM_${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'resolved', '--system -d / -M --shell /bin/nologin systemd-resolve;', '', d)}" > USERADD_PARAM_${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'timesyncd', '--system -d / -M --shell /bin/nologin systemd-timesync;', '', d)}" > USERADD_PARAM_${PN}-extra-utils = "--system -d / -M --shell /bin/nologin systemd-bus-proxy" > -USERADD_PARAM_${PN}-journal-gateway = "--system -d / -M --shell /bin/nologin systemd-journal-gateway" > USERADD_PARAM_${PN}-journal-remote = "--system -d / -M --shell /bin/nologin systemd-journal-remote" > -USERADD_PARAM_${PN}-journal-upload = "--system -d / -M --shell /bin/nologin systemd-journal-upload" > > FILES_${PN}-analyze = "${bindir}/systemd-analyze" > > @@ -401,7 +397,7 @@ FILES_${PN}-journal-remote = "${rootlibexecdir}/systemd/systemd-journal-remote \ > ${systemd_system_unitdir}/systemd-journal-remote.service \ > ${systemd_system_unitdir}/systemd-journal-remote.socket \ > " > -SYSTEMD_SERVICE_${PN}-remote = "systemd-journal-remote.socket" > +SYSTEMD_SERVICE_${PN}-journal-remote = "systemd-journal-remote.socket" > > > FILES_${PN}-container = "${sysconfdir}/dbus-1/system.d/org.freedesktop.import1.conf \