]> code.ossystems Code Review - openembedded-core.git/commitdiff
systemd: fix /var/log/journal ownership
authorJonathan Liu <net147@gmail.com>
Thu, 12 Mar 2015 09:20:11 +0000 (20:20 +1100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 27 Mar 2015 17:59:24 +0000 (17:59 +0000)
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>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/systemd/systemd_216.bb

index 3852841029f70980c9ca57ea278482967e99d451..1eb401988e04c97275f1f333af64b6006b5dcf3a 100644 (file)
@@ -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