before sys-apps/systemd-utils-252.4:, /run/lock was
drwxrwxr-x 2 root uucp 80
since thenm it is
drwxr-xr-x 2 root root 80
This lock folder is used by serial ports users (java), which are in uucp group.
With this new right, they cannot use a serial port anymore.
These rights are pushed by files/legacy.conf installed in /usr/lib/tmpfiles.d
Could it possible to change files/legacy.conf so that it was before?
java apps cannot use serial port anymore
java apps should be able to use serial ports
Created attachment 849405 [details, diff]
files/legacy.conf change request
This was changed intentionally by systemd upstream.
Notably, they never used the "uucp" group, and instead used a dedicated "lock" group.
However, that too has since been removed.
If you really want the old behavior, you can create your own "legacy.conf" file in /etc/tmpfiles.d.
> Expected Results:
> java apps should be able to use serial ports
What java apps are you referring to? The modern way to reserve a serial port is using flock(), so maybe your apps just need an update.
The bug has been closed via the following commit(s):
Author: Mike Gilbert <firstname.lastname@example.org>
AuthorDate: 2023-01-29 19:57:23 +0000
Commit: Mike Gilbert <email@example.com>
CommitDate: 2023-01-29 19:57:23 +0000
sys-apps/systemd-utils: use default permissions for /run/lock
If /run/lock does not exist, it will be created with owner root:root and
If /run/lock already exists, its permissions will not be altered.
Signed-off-by: Mike Gilbert <firstname.lastname@example.org>
sys-apps/systemd-utils/files/legacy.conf | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(In reply to Mike Gilbert from comment #3)
> > Expected Results:
> > java apps should be able to use serial ports
> What java apps are you referring to? The modern way to reserve a serial port
> is using flock(), so maybe your apps just need an update.
Hi, this is OpenHab, connected with 2 serial ports.
With the version you pushed, I could overwrite /run/lock with my "non-standard" config based on /etc/tmpfiles.d
Thank you very much!