lxc file push creates broken permissions
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxd (Ubuntu) |
Fix Released
|
High
|
Stéphane Graber |
Bug Description
Files in the container transferred with "lxc file push" have very bad default permissions:
$ lxc launch images:
$ echo hello | lxc file push - odontoid-
$ lxc exec odontoid-corinne -- ls -l /tmp/
total 4
---x--x--- 1 ubuntu ubuntu 6 Feb 23 15:40 hello.txt
Even specifying them explicitly with --mode is broken:
$ echo hello | lxc file push --mode=644 - odontoid-
$ lxc exec odontoid-corinne -- ls -l /tmp/
total 4
--w-r--r-- 1 ubuntu ubuntu 6 Feb 23 15:42 hello.txt
$ echo hello | lxc file push --mode=444 - odontoid-
$ lxc exec odontoid-corinne -- ls -l /tmp/
total 4
-rw-r-xr-- 1 ubuntu ubuntu 6 Feb 23 15:43 hello.txt
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: lxd 2.0.0~beta3-
ProcVersionSign
Uname: Linux 4.4.0-6-generic x86_64
ApportVersion: 2.20-0ubuntu3
Architecture: amd64
CurrentDesktop: i3
Date: Tue Feb 23 16:42:19 2016
EcryptfsInUse: Yes
SourcePackage: lxd
UpgradeStatus: No upgrade log present (probably fresh install)
This broke adt-virt-lxd, and I'm using this fairly recently, so this smells like a rather recent regression.