forked from rpm-software-management/rpm
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add experimental support for non-privileged chroot on Linux
If host kernel supports user namespaces, this allows non-privileged users to perform chrooted operations such as installations and verification. With caveats. Only root:root ownership is supported in the namespace, so packages with other file ownerships will fail to install properly, chown() fails with -EINVAL similarly to what happens on squashed NFS-mount. We don't handle that particularly gracefully. Also add the obligatory disabler, and use it for the test-suite for now. Only two tests (61 and 342) actually fail because of it, simply because things are ... different with user namespaces.
- Loading branch information
Showing
4 changed files
with
65 additions
and
1 deletion.
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