]> code.ossystems Code Review - openembedded-core.git/commitdiff
systemd: fix /var/log/journal ownership
authorJonathan Liu <net147@gmail.com>
Thu, 12 Mar 2015 09:18:56 +0000 (20:18 +1100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 12 May 2015 14:45:41 +0000 (15:45 +0100)
The ownership needs to be explicitly set otherwise it inherits the user
and group id of the build user.

(From OE-Core rev: 0752c79282b1cc9699743e719518e6c341d50a3a)

Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Conflicts:
meta/recipes-core/systemd/systemd_219.bb
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/systemd/systemd_211.bb

index 567c323543ed4d30d018e68c8f08b926de26b41f..93d9c9996d76995d09f5b94c8de11b45383bab89 100644 (file)
@@ -124,6 +124,7 @@ 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
 }