After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 738954 - repo: When writing to a non-root owned repo, chown() objects to match
repo: When writing to a non-root owned repo, chown() objects to match
Status: RESOLVED WONTFIX
Product: ostree
Classification: Infrastructure
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: OSTree maintainer(s)
OSTree maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2014-10-21 18:38 UTC by Colin Walters
Modified: 2018-08-17 18:58 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
repo: When writing to a non-root owned repo, chown() objects to match (3.25 KB, patch)
2014-10-21 18:38 UTC, Colin Walters
committed Details | Review

Description Colin Walters 2014-10-21 18:38:34 UTC
Some package systems need to be run as root, so the process linking to
libostree may also be root.  However, it's reasonable to have the
target repository be owned by a uid other than root.

This patch makes it Just Work by chowning the file content to match.
Comment 1 Colin Walters 2014-10-21 18:38:36 UTC
Created attachment 289067 [details] [review]
repo: When writing to a non-root owned repo, chown() objects to match
Comment 2 Matthew Barnes 2014-10-21 19:32:36 UTC
Review of attachment 289067 [details] [review]:

Patch looks good to me as is.  I did have to take a moment to lookup why this is only applicable to "archive-z2" mode, but it makes sense now.  Maybe worth mentioning this at least in the commit message for posterity?
Comment 3 Colin Walters 2014-10-21 19:48:02 UTC
Attachment 289067 [details] pushed as 5fb8bb9 - repo: When writing to a non-root owned repo, chown() objects to match
Comment 4 Colin Walters 2015-03-31 17:23:56 UTC
We also need to do this for refs and in general any other data we write (such as the summary file, etc.)
Comment 5 Colin Walters 2015-04-09 01:59:45 UTC
I started on parts of this in https://github.com/GNOME/ostree/pull/88
Comment 6 Colin Walters 2015-04-13 13:10:46 UTC
I now think this is better addressed in https://github.com/projectatomic/rpm-ostree/issues/129
Comment 7 André Klapper 2018-08-17 18:58:23 UTC
OSTree has moved to Github a while ago.
Furthermore, GNOME Bugzilla will be shut down and replaced by gitlab.gnome.org.

If the problem reported in this Bugzilla ticket is still valid, please report it to https://github.com/ostreedev/ostree/issues instead. Thank you!

Closing this report as WONTFIX as part of Bugzilla Housekeeping.