containers / containers/bubblewrap
Changing permissions inside a chroot
- Dominant language
- C
- Stars
- 8.7k
- Forks
- 386
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 11
Description
Setup:
```
mkdir -p ~/tmp/brw
cd ~/tmp/brw
wget http://cdimage.ubuntu.com/ubuntu-base/releases/trusty/release/ubuntu-base-14.04.5-base-amd64.tar.gz
tar xf ubuntu-base-14.04.5-base-amd64.tar.gz
bwrap --unshare-all --share-net --bind $(pwd) / \
--gid 0 --uid 0 --chdir / --dir /fs --dev /dev --proc /proc \
/bin/bash
```
Then execute the following:
```
chown root:adm ubuntu-base-14.04.5-base-amd64.tar.gz
```
Expected result:
Permissions were changed, no output
Result:
> chown: changing ownership of 'ubuntu-base-14.04.5-base-amd64.tar.gz': Invalid argument
This issue does not occur when using proot, and is specific to bubblewrap. It may not be bubblewrap that's at fault, but that does appear to be the case.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.