All of lore.kernel.org
 help / color / mirror / Atom feed
* [daisy][PATCH v2] systemd: fix /var/log/journal ownership
@ 2015-03-12  9:20 Jonathan Liu
  2015-03-26  0:33 ` Jonathan Liu
  0 siblings, 1 reply; 3+ messages in thread
From: Jonathan Liu @ 2015-03-12  9:20 UTC (permalink / raw)
  To: openembedded-core

The ownership needs to be explicitly set otherwise it inherits the user
and group id of the build user.

Signed-off-by: Jonathan Liu <net147@gmail.com>
---
 meta/recipes-core/systemd/systemd_211.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/recipes-core/systemd/systemd_211.bb b/meta/recipes-core/systemd/systemd_211.bb
index 567c323..98c4aca 100644
--- a/meta/recipes-core/systemd/systemd_211.bb
+++ b/meta/recipes-core/systemd/systemd_211.bb
@@ -124,6 +124,8 @@ do_install() {
 		sed -i s%@UDEVD@%${rootlibexecdir}/systemd/systemd-udevd% ${D}${sysconfdir}/init.d/systemd-udevd
 	fi
 
+	chown root:systemd-journal ${D}/${localstatedir}/log/journal
+
         # Delete journal README, as log can be symlinked inside volatile.
         rm -f ${D}/${localstatedir}/log/README
 }
-- 
2.3.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [daisy][PATCH v2] systemd: fix /var/log/journal ownership
  2015-03-12  9:20 [daisy][PATCH v2] systemd: fix /var/log/journal ownership Jonathan Liu
@ 2015-03-26  0:33 ` Jonathan Liu
  2015-04-22  1:35   ` Jonathan Liu
  0 siblings, 1 reply; 3+ messages in thread
From: Jonathan Liu @ 2015-03-26  0:33 UTC (permalink / raw)
  To: openembedded-core, Saul Wold

On 12/03/2015 8:20 PM, 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 <net147@gmail.com>
> ---
>   meta/recipes-core/systemd/systemd_211.bb | 2 ++
>   1 file changed, 2 insertions(+)
Ping.

This is a backport from master:
http://git.openembedded.org/openembedded-core/commit/meta/recipes-core/systemd?id=0752c79282b1cc9699743e719518e6c341d50a3a

Regards,
Jonathan


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [daisy][PATCH v2] systemd: fix /var/log/journal ownership
  2015-03-26  0:33 ` Jonathan Liu
@ 2015-04-22  1:35   ` Jonathan Liu
  0 siblings, 0 replies; 3+ messages in thread
From: Jonathan Liu @ 2015-04-22  1:35 UTC (permalink / raw)
  To: openembedded-core, Saul Wold, Richard Purdie

On 26 March 2015 at 11:33, Jonathan Liu <net147@gmail.com> wrote:
> On 12/03/2015 8:20 PM, 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 <net147@gmail.com>
>> ---
>>   meta/recipes-core/systemd/systemd_211.bb | 2 ++
>>   1 file changed, 2 insertions(+)
>
> Ping.
Ping.

>
> This is a backport from master:
> http://git.openembedded.org/openembedded-core/commit/meta/recipes-core/systemd?id=0752c79282b1cc9699743e719518e6c341d50a3a
>
> Regards,
> Jonathan


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-04-22  1:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-12  9:20 [daisy][PATCH v2] systemd: fix /var/log/journal ownership Jonathan Liu
2015-03-26  0:33 ` Jonathan Liu
2015-04-22  1:35   ` Jonathan Liu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.