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.
This commit is contained in:
Holger Hans Peter Freyther 2015-02-15 12:02:53 +01:00
parent 08011e961e
commit d31db523c8
2 changed files with 3 additions and 1 deletions

View File

@ -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.

View File

@ -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/