Skip to contentSkip to conversation

systemd: fix /var/log/journal ownership

PATCH Superseded Jonathan Liu 1 participant 1 message Mar 11, 2015

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 systemd: fix /var/log/journal ownership

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

---
 meta/recipes-core/systemd/systemd_216.bb | 2 ++
 1 file changed, 2 insertions(+)
meta/recipes-core/systemd/systemd_216.bb +2 -0
index 3852841..5df8a1a 100644
@@ -136,6 +136,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
 
Signature · 1 line
2.3.1