forked from ostreedev/ostree
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ostree commit: Add option --use-bare-user-xattrs
For our build-system we have a [patched version of `fakeroot`][1] which understands the `user.ostreemeta` xattr. It's intended for use with `ostree checkout --user-mode --require-hardlinks`. When programs are run with `LD_PRELOAD=libfakeroot...` they see the ownership and permissions that ostree understands, rather than the real ones. Our build system mostly consists of calls to: ostree checkout --user-mode --require-hardlinks $COMMIT root LD_PRELOAD=fakeroot <make some changes> ostree commit --tree=dir=root --link-checkout-speedup --devino-canonical in the past this seemed to work fine but at some point I started losing the setuid bit on `sudo`. I suspect the previous behaviour was a bug, possibly fixed in ostreedev#1170 (8fe4536). This commit makes the `ostreemeta` preserving behaviour explicit. If the user.ostreemeta xattr doesn't exist the file is given the sensible default uid/gid of 0:0. `--use-bare-user-xattrs` will currently be ignored when loading a commit from a tarball. This can be fixed in the future if there's any demand for it. [1]: https://github.com/stb-tester/fakeroot/tree/ostree
- Loading branch information
Showing
6 changed files
with
163 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters