summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJermain Horsman <jermain.horsman@nedap.com>2023-06-22 16:04:52 +0200
committerSteve Sakoman <steve@sakoman.com>2023-07-07 04:30:26 -1000
commite638d11abc1502b33055ca4bb3f05bfa1d3dfd8f (patch)
treef6d60a67d29182c56eccaba2a6bcdc0656839f83
parent2f2c3b14b702196947daa59e31e9d63caf6dcfca (diff)
downloadpoky-e638d11abc1502b33055ca4bb3f05bfa1d3dfd8f.tar.gz
logrotate: Do not create logrotate.status file
The first time logrotate runs it reports an error: error: state file /var/lib/logrotate.status is world-readable and thus can be locked from other unprivileged users. Skipping lock acquisition... This check was added with https://github.com/logrotate/logrotate/commit/1f76a381e2caa0603ae3dbc51ed0f1aa0d6658b9 This error is only reported once as logrotate removes the world-readable permissions if this happens. Since logrotate creates this file if it does not exist, there should be no need to install it in the first place. (From OE-Core rev: d081071c99a814e43cdd2c3ca92892c10b631692) Signed-off-by: Jermain Horsman <jermain.horsman@nedap.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 8169cd2d18f1569e4357f082adbef492710e8c36) Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rw-r--r--meta/recipes-extended/logrotate/logrotate_3.21.0.bb1
1 files changed, 0 insertions, 1 deletions
diff --git a/meta/recipes-extended/logrotate/logrotate_3.21.0.bb b/meta/recipes-extended/logrotate/logrotate_3.21.0.bb
index 4e4ea10628..44d86a8f8d 100644
--- a/meta/recipes-extended/logrotate/logrotate_3.21.0.bb
+++ b/meta/recipes-extended/logrotate/logrotate_3.21.0.bb
@@ -64,7 +64,6 @@ do_install(){
64 install -p -m 644 ${S}/examples/logrotate.conf ${D}${sysconfdir}/logrotate.conf 64 install -p -m 644 ${S}/examples/logrotate.conf ${D}${sysconfdir}/logrotate.conf
65 install -p -m 644 ${S}/examples/btmp ${D}${sysconfdir}/logrotate.d/btmp 65 install -p -m 644 ${S}/examples/btmp ${D}${sysconfdir}/logrotate.d/btmp
66 install -p -m 644 ${S}/examples/wtmp ${D}${sysconfdir}/logrotate.d/wtmp 66 install -p -m 644 ${S}/examples/wtmp ${D}${sysconfdir}/logrotate.d/wtmp
67 touch ${D}${localstatedir}/lib/logrotate.status
68 67
69 if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then 68 if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
70 install -d ${D}${systemd_system_unitdir} 69 install -d ${D}${systemd_system_unitdir}