summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/logrotate
diff options
context:
space:
mode:
authorJermain Horsman <jermain.horsman@nedap.com>2023-06-22 16:04:52 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-06-24 12:21:48 +0100
commita1f72258843746e30cede172ba2013eba0ccd3fe (patch)
tree41afda2b4632bd1d161af27d05f7df8a1da3f354 /meta/recipes-extended/logrotate
parentf8bf2c551729978348f4908bad791f76f636d323 (diff)
downloadpoky-a1f72258843746e30cede172ba2013eba0ccd3fe.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: 8169cd2d18f1569e4357f082adbef492710e8c36) 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>
Diffstat (limited to 'meta/recipes-extended/logrotate')
-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 87c0d9ae60..f0755e3ae5 100644
--- a/meta/recipes-extended/logrotate/logrotate_3.21.0.bb
+++ b/meta/recipes-extended/logrotate/logrotate_3.21.0.bb
@@ -66,7 +66,6 @@ do_install(){
66 install -p -m 644 ${S}/examples/logrotate.conf ${D}${sysconfdir}/logrotate.conf 66 install -p -m 644 ${S}/examples/logrotate.conf ${D}${sysconfdir}/logrotate.conf
67 install -p -m 644 ${S}/examples/btmp ${D}${sysconfdir}/logrotate.d/btmp 67 install -p -m 644 ${S}/examples/btmp ${D}${sysconfdir}/logrotate.d/btmp
68 install -p -m 644 ${S}/examples/wtmp ${D}${sysconfdir}/logrotate.d/wtmp 68 install -p -m 644 ${S}/examples/wtmp ${D}${sysconfdir}/logrotate.d/wtmp
69 touch ${D}${localstatedir}/lib/logrotate.status
70 69
71 if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then 70 if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
72 install -d ${D}${systemd_system_unitdir} 71 install -d ${D}${systemd_system_unitdir}