Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] systemd: fix /var/log/journal ownership
@ 2015-03-10  3:25 Jonathan Liu
  2015-03-12  7:14 ` ChenQi
  0 siblings, 1 reply; 5+ messages in thread
From: Jonathan Liu @ 2015-03-10  3:25 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_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
 
-- 
2.3.1



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

end of thread, other threads:[~2015-03-12  9:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-10  3:25 [PATCH] systemd: fix /var/log/journal ownership Jonathan Liu
2015-03-12  7:14 ` ChenQi
2015-03-12  7:21   ` Khem Raj
2015-03-12  7:35     ` ChenQi
2015-03-12  9:02     ` Jonathan Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox