Experienced with dev-libs/libcec-2.1.3 which uses lockdev to record lock in /var/lock but systemd creates /var/lock as root:root 0755 from /usr/lib/tmpfiles.d/gentoo-run.conf. lockdev modified by Arch and Fedora to use /run/lock/lockdev https://bugs.archlinux.org/task/31614 https://projects.archlinux.org/svntogit/community.git/commit/trunk?h=packages/lockdev&id=4c0c0c25eb1a5c77bd9f938886e9e582384ef119 (N.B. further modified in: https://projects.archlinux.org/svntogit/community.git/commit/trunk?h=packages/lockdev&id=d0796630d702e5e3951e17515a2dcf5934c2078c ) I have worked around by creating /etc/tmpfiles.d/gentoo-run.conf: d /run/lock 0775 root dialout -
Maintainer, are you ok with that change?
Until we enable whatever option is required to make systemd install its /usr/lib/tmpfiles.d/legacy.conf, this won't work properly. It looks like in order for systemd to install that file, you must tell systemd that you have the full legacy rc?.d setup just like Fedora/Red Hat used to.
Well, the Arch change should work as they are neither having the rc.d compat in their systemd package
/run/lock is created by the Gentoo rules, so we can fix the permissions ourselves if they're wrong.
The problem is that I am not sure if they are wrong :/, should /var/lock be changed to more relaxed permissions or lockdev should have its own subdir? I say that because looks like other distributions are also having that restrict permissions for /var/lock
What does OpenRC do here?
@openrc, any idea about how to deal with this? Thanks
Now (sys-apps/systemd-224-r1) using uucp group instead of dialout.
(In reply to Chris Mayo from comment #8) > Now (sys-apps/systemd-224-r1) using uucp group instead of dialout. Changed to uucp in systemd-208-r3 for bug #463376
What is the status of this with current systemd versions?
With sys-apps/systemd-226-r2: $ ls -ld /run/lock/ drwxr-xr-x 2 root root 60 May 25 19:44 /run/lock/ Not a problem for me any more as libcec-3.1.0 doesn't use lockdev. Apart from earlier versions of libcec, other user is USE="serial" media-libs/libgphoto2.