Bug 1215179 - /run/lock no longer belongs to the "lock" group; it is now in "root"
Summary: /run/lock no longer belongs to the "lock" group; it is now in "root"
Status: RESOLVED WONTFIX
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Current
Hardware: aarch64 openSUSE Tumbleweed
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: E-mail List
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-09-10 07:04 UTC by David Walker
Modified: 2023-11-30 15:51 UTC (History)
2 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Walker 2023-09-10 07:04:51 UTC
Sometime in the past few weeks, the ownership of /var/lock in Tumbleweed changed from root:lock to root:root, breaking OpenHAB3's ability to create lock files within that directory, unless it's given membership in the root group by adding "SupplementaryGroups=root" in its systemd .service configuration (which isn't the best security strategy).

This problem is very similar to bug #552095, which was reported nearly 14 years ago and later resolved, although in a way that doesn't apply to my use case.

What this change deliberate? If not, could it be reversed? If it can't be reversed, suggestions for a workaround would be appreciated.
Comment 1 Thorsten Kukuk 2023-09-11 09:41:45 UTC
(In reply to David Walker from comment #0)

> What this change deliberate? 

Yes, this was necessary to fix a huge amount of problems and race conditions.

> If not, could it be reversed?

Not without introducing a huge amount of problems affecting everybody with every installation.

> If it can't be reversed, suggestions for a workaround would be appreciated.

Same as for any other package, create your own sub-directory with the permissions you need?
Comment 2 David Walker 2023-09-13 18:05:31 UTC
Thanks, Thorsten. I'll find another way.
Comment 3 Chenzi Cao 2023-10-08 13:29:42 UTC
Based on the comments above, I mark this bug report as WONTFIX, if I get wrong, please feel free to reopen it, thanks.
Comment 4 Alexander Kulemin 2023-11-30 15:51:13 UTC
Another inconvenience introduced: minicom can't create lock file in /run/lock without root permissions.