Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 576968 - sys-apps/gentoo-systemd-integration: make /run/lock perms consistent with non-systemd installs
Summary: sys-apps/gentoo-systemd-integration: make /run/lock perms consistent with non...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo systemd Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-10 15:53 UTC by Soren Harward
Modified: 2019-10-06 13:54 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Soren Harward 2016-03-10 15:53:19 UTC
/usr/lib/tmpfiles.d/gentoo-run.conf currently contains:

d /run/lock 0755 root root -

Non-systemd Gentoo installs set the directory to root:uucp 0770 (cf. https://bugs.gentoo.org/show_bug.cgi?id=17738).  The current settings are too strict because they prevent users in the uucp group, who have access to the serial ports, from creating lock files for those ports, which causes most serial terminal programs to fail or complain.

Please change /usr/lib/tmpfiles.d/gentoo-run.conf to

d /run/lock 0770 root uucp -
Comment 1 Mike Gilbert gentoo-dev 2016-03-10 16:00:26 UTC
What creates that directory on an openrc system? Just want to verify it against a reference implementation.
Comment 2 Soren Harward 2016-03-10 16:37:13 UTC
# grep -IHn '\block\b' `qlist sys-apps/openrc`
/lib64/rc/sh/init.sh:71:checkpath -d -m 0775 -o root:uucp /run/lock

So I guess the tmpfiles.d entry should actually be

d /run/lock 0775 root uucp -

1775 is probably a better idea (it's what I changed it to on my system), so that users can't go deleting each others' lock files.