[oe-commits] Jonathan Liu : systemd: fix /var/log/journal ownership

git at git.openembedded.org git at git.openembedded.org
Sat Mar 28 09:00:31 UTC 2015


Module: openembedded-core.git
Branch: dizzy
Commit: b81ad1d960fc0555f6255a887f6a3b524893703e
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=b81ad1d960fc0555f6255a887f6a3b524893703e

Author: Jonathan Liu <net147 at gmail.com>
Date:   Thu Mar 12 20:20:11 2015 +1100

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.

Signed-off-by: Jonathan Liu <net147 at gmail.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/recipes-core/systemd/systemd_216.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/recipes-core/systemd/systemd_216.bb b/meta/recipes-core/systemd/systemd_216.bb
index 3852841..1eb4019 100644
--- a/meta/recipes-core/systemd/systemd_216.bb
+++ b/meta/recipes-core/systemd/systemd_216.bb
@@ -136,6 +136,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
 



More information about the Openembedded-commits mailing list