From d31db523c89c0fd97711e9857da003b77b822cd1 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Sun, 15 Feb 2015 12:02:53 +0100 Subject: [PATCH] systemd: Modify legacy.conf to have 775 as file permission for /run/lock UUCP (cu, uux, uu*) attempts to create locks in /run/lock and it fails. It fails because the current permission of the directory is 0755 but the binary is owned by uucp:root. Modify the legacy.conf and change the permission to 0775. --- recipes-fixes/systemd/systemd/legacy.conf | 2 +- recipes-fixes/systemd/systemd_sysmocom.inc | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/recipes-fixes/systemd/systemd/legacy.conf b/recipes-fixes/systemd/systemd/legacy.conf index 3fff347..1cd8ec8 100644 --- a/recipes-fixes/systemd/systemd/legacy.conf +++ b/recipes-fixes/systemd/systemd/legacy.conf @@ -10,7 +10,7 @@ # These files are considered legacy and are unnecessary on legacy-free # systems. -d /run/lock 0755 root root - +d /run/lock 0775 root root - # /run/lock/subsys is used for serializing SysV service execution, and # hence without use on SysV-less systems. diff --git a/recipes-fixes/systemd/systemd_sysmocom.inc b/recipes-fixes/systemd/systemd_sysmocom.inc index 89720e9..43adddb 100644 --- a/recipes-fixes/systemd/systemd_sysmocom.inc +++ b/recipes-fixes/systemd/systemd_sysmocom.inc @@ -4,6 +4,7 @@ FILESPATH =. "${@base_set_filespath(["${S_THISDIR}/${PN}"], d)}:" PRINC="24" SRC_URI += "file://journald.conf \ + file://legacy.conf \ file://0001-Feature-switch-ListenDatagram-from-run-systemd-journ.patch \ " @@ -46,6 +47,7 @@ pkg_postinst_${PN}_append () { do_install_append() { install -m 0644 ${WORKDIR}/journald.conf ${D}${sysconfdir}/systemd/ + install -m 0644 ${WORKDIR}/legacy.conf ${D}/usr/lib/tmpfiles.d/ if [ -e ${WORKDIR}/system.conf ]; then install -m 0644 ${WORKDIR}/system.conf ${D}${sysconfdir}/systemd/